Origin₁ ESLint plugin
npm install @origin-1/eslint-plugin@origin-1/eslint-plugin · [![npm version][npm badge]][npm url]ESLint plugin for Origin₁ rules.
Install ESLint and @origin-1/eslint-plugin:
``console`
npm i --save-dev eslint @origin-1/eslint-plugin
Add "@origin-1" to the plugins section of a configuration object in your ESLint configurationrules
file.
Then configure the rules defined by this plugin under the 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",
},
};
`
* bracket-layout
* indent
* nice-space-before-function-paren
* no-extra-new
* no-leading-binary-operator
* no-spaces-in-call-expression
* no-spaces-in-tagged-template
* property-colon-spacing`
[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