@origin-1/eslint-plugin
v1.0.0
Published
Origin₁ ESLint plugin
Maintainers
Readme
@origin-1/eslint-plugin · 
ESLint plugin for Origin₁ rules.
Installation
Install ESLint and @origin-1/eslint-plugin.
To use JSON rules such as @origin-1/package-json-fields, also install @eslint/json:
npm i --save-dev eslint @origin-1/eslint-plugin @eslint/jsonUsage
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.
import json from "@eslint/json";
import origin1 from "@origin-1/eslint-plugin";
export default
[
{
files: ["**/*.{,c,m}[jt]s"],
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",
},
},
{
files: ["**/package.json"],
language: "json/json",
plugins: { "@origin-1": origin1, json },
rules: { "@origin-1/package-json-fields": "error" },
},
];