@gruzf/eslint-config
v4.0.0
Published
Set of eslint rules for a typescript project
Downloads
1,045
Readme
@gruzf/eslint-config
Install
npm install @gruzf/numen-cli
or
yarn add @gruzf/numen-cli
Usage
// .eslintrc
{
"extends": ["@gruzf/eslint-config"]
}
Included plugins
- regexp/recommended
- unicorn/recommended
- eslint:recommended
- @typescript-eslint
- const-case
Included parser
Included rules
{
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
vars: "all",
varsIgnorePattern: "^_",
args: "after-used",
argsIgnorePattern: "^_",
},
],
"@typescript-eslint/ban-types": [
"error",
{
types: {
"{}": false,
},
},
],
"@typescript-eslint/no-explicit-any": "off",
"const-case/uppercase": "error",
"unicorn/filename-case": "off",
"unicorn/no-process-exit": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prevent-abbreviations": [
"error",
{
ignore: [".*Props.*", ".*props.*", ".*ref", ".*Ref"],
},
],
}