npm install -D @hrbrain/eslint-plugin eslint
# or
yarn add -D @hrbrain/eslint-plugin eslint
// use plugin:
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: { sourceType: "module" },
plugins: ["@hrbrain"],
ecmaFeatures: {
jsx: true,
},
rules: {
"@hrbrain/no-multiple-named-imports": "warn",
// ...
},
};
// use config:
module.exports = {
extends: ["plugin:@hrbrain/recommended"],
};
This projects use yarn
.๐บ
yarn gen:rule
Sandbox means environment that running ESLint as actual.
yarn gen:sandbox
Then, you can run ESLint.
yarn sandbox
See LICENSE