Created
February 26, 2021 12:15
-
-
Save ghaiklor/45c6e5b46767ed20ec3a97befc276860 to your computer and use it in GitHub Desktop.
ESLint Strict Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"commonjs": true, | |
"es6": true, | |
"jest": true, | |
"node": true | |
}, | |
"extends": [ | |
"eslint:all", | |
"plugin:@typescript-eslint/all", | |
"plugin:import/errors", | |
"plugin:import/warnings", | |
"plugin:import/typescript", | |
"plugin:jest/all", | |
"plugin:node/recommended", | |
"plugin:promise/recommended", | |
"standard-with-typescript" | |
], | |
"globals": { | |
"Atomics": "readonly", | |
"SharedArrayBuffer": "readonly" | |
}, | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"ecmaVersion": 2019, | |
"sourceType": "module", | |
"project": "tsconfig.eslint.json" | |
}, | |
"plugins": [ | |
"@typescript-eslint", | |
"import", | |
"jest", | |
"node", | |
"promise", | |
"standard" | |
], | |
"rules": { | |
"@typescript-eslint/indent": [ | |
"error", | |
2 | |
], | |
"@typescript-eslint/no-magic-numbers": [ | |
"off" | |
], | |
"@typescript-eslint/no-shadow": [ | |
"off" | |
], | |
"no-duplicate-imports": [ | |
"off" | |
], | |
"sort-imports": [ | |
"error", | |
{ | |
"ignoreDeclarationSort": true | |
} | |
], | |
"@typescript-eslint/no-type-alias": [ | |
"error", | |
{ | |
"allowAliases": "always", | |
"allowConditionalTypes": "always" | |
} | |
], | |
"@typescript-eslint/prefer-readonly-parameter-types": [ | |
"off" | |
], | |
"@typescript-eslint/semi": [ | |
"error", | |
"always" | |
], | |
"@typescript-eslint/typedef": [ | |
"off" | |
], | |
"array-bracket-newline": [ | |
"error", | |
"consistent" | |
], | |
"array-element-newline": [ | |
"error", | |
"consistent" | |
], | |
"function-call-argument-newline": [ | |
"error", | |
"consistent" | |
], | |
"function-paren-newline": [ | |
"error", | |
"consistent" | |
], | |
"id-length": [ | |
"error", | |
{ | |
"exceptions": [ | |
"x", | |
"y" | |
] | |
} | |
], | |
"max-len": [ | |
"error", | |
120 | |
], | |
"max-lines": [ | |
"off" | |
], | |
"max-lines-per-function": [ | |
"off" | |
], | |
"max-statements": [ | |
"off" | |
], | |
"multiline-comment-style": [ | |
"error", | |
"separate-lines" | |
], | |
"multiline-ternary": [ | |
"error", | |
"always-multiline" | |
], | |
"newline-per-chained-call": [ | |
"error", | |
{ | |
"ignoreChainWithDepth": 3 | |
} | |
], | |
"no-console": [ | |
"off" | |
], | |
"no-sync": [ | |
"off" | |
], | |
"no-ternary": [ | |
"off" | |
], | |
"node/no-missing-import": [ | |
"error", | |
{ | |
"tryExtensions": [ | |
".js", | |
".ts", | |
".json", | |
".node" | |
] | |
} | |
], | |
"@typescript-eslint/quotes": [ | |
"error", | |
"single" | |
], | |
"node/no-unsupported-features/es-syntax": [ | |
"error", | |
{ | |
"ignores": [ | |
"modules" | |
] | |
} | |
], | |
"semi": [ | |
"error", | |
"always" | |
], | |
"sort-keys": [ | |
"error", | |
"asc", | |
{ | |
"minKeys": 5, | |
"natural": true | |
} | |
] | |
}, | |
"overrides": [ | |
{ | |
"files": [ | |
"*.js" | |
], | |
"rules": { | |
"@typescript-eslint/no-require-imports": "off", | |
"@typescript-eslint/no-unsafe-assignment": "off" | |
} | |
} | |
], | |
"settings": { | |
"jest": { | |
"version": 26 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment