Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/origin-1/eslint-plugin
Origin₁ ESLint plugin
https://github.com/origin-1/eslint-plugin
eslint eslint-plugin eslintplugin
Last synced: 8 days ago
JSON representation
Origin₁ ESLint plugin
- Host: GitHub
- URL: https://github.com/origin-1/eslint-plugin
- Owner: origin-1
- License: isc
- Created: 2017-01-15T20:34:48.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2024-05-18T15:48:30.000Z (8 months ago)
- Last Synced: 2024-12-24T11:56:01.049Z (about 1 month ago)
- Topics: eslint, eslint-plugin, eslintplugin
- Language: JavaScript
- Homepage:
- Size: 96.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# `@origin-1/eslint-plugin` · [![npm version][npm badge]][npm url]
[ESLint](https://eslint.org/) plugin for [Origin₁](https://github.com/origin-1) rules.
## Installation
Install ESLint and `@origin-1/eslint-plugin`:
```console
npm i --save-dev eslint @origin-1/eslint-plugin
```### Note
If you installed ESLint globally (using the `-g` flag) then you must also install plugins globally:
```console
npm i -g @origin-1/eslint-plugin
```## Usage
Add `"@origin-1"` to the `"plugins"` section of your `.eslintrc` configuration file.
Then configure the rules defined by this plugin under the `"rules"` section.```json
{
"plugins": [
"@origin-1"
],
"rules": {
"@origin-1/bracket-layout": "error",
"@origin-1/indent": "error",
"@origin-1/nice-space-before-function-paren": "error",
"@origin-1/no-extra-new": "error",
"@origin-1/no-spaces-in-call-expression": "error",
"@origin-1/no-spaces-in-tagged-template": "error",
"@origin-1/property-colon-spacing": "error"
}
}
```## Rules
* [`bracket-layout`](rule-docs/bracket-layout.md)
* [`indent`](rule-docs/indent.md)
* [`nice-space-before-function-paren`](rule-docs/nice-space-before-function-paren.md)
* [`no-extra-new`](rule-docs/no-extra-new.md)
* [`no-spaces-in-call-expression`](rule-docs/no-spaces-in-call-expression.md)
* [`no-spaces-in-tagged-template`](rule-docs/no-spaces-in-tagged-template.md)
* [`property-colon-spacing`](rule-docs/property-colon-spacing.md)[npm badge]: https://img.shields.io/npm/v/@origin-1%2Feslint-plugin?logo=npm
[npm url]: https://www.npmjs.com/package/@origin-1/eslint-plugin