https://github.com/origin-1/eslint-plugin
Origin₁ ESLint plugin
https://github.com/origin-1/eslint-plugin
eslint eslint-plugin eslintplugin
Last synced: 3 months 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 (over 9 years ago)
- Default Branch: main
- Last Pushed: 2026-02-13T23:46:11.000Z (5 months ago)
- Last Synced: 2026-02-23T22:58:59.382Z (4 months ago)
- Topics: eslint, eslint-plugin, eslintplugin
- Language: JavaScript
- Homepage:
- Size: 119 KB
- Stars: 1
- Watchers: 1
- 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
```
## Usage
Add `"@origin-1"` to the `plugins` section of a configuration object in your ESLint configuration
file.
Then configure the rules defined by this plugin under the `rules` section.
```js
import origin1 from "@origin-1/eslint-plugin";
export default
{
plugins: { "@origin-1": origin1 },
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-leading-binary-operator": "error",
"@origin-1/no-spaces-in-call-expression": "error",
"@origin-1/no-spaces-in-tagged-template": "error",
"@origin-1/property-colon-spacing": "error",
"@origin-1/property-shorthand": "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-leading-binary-operator`](rule-docs/no-leading-binary-operator.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)
* [`property-shorthand`](rule-docs/property-shorthand.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