|
| 1 | +{ |
| 2 | + "extends": ["eslint:recommended", "plugin:node/recommended", "prettier"], |
| 3 | + "plugins": ["node", "prettier"], |
| 4 | + "rules": { |
| 5 | + "prettier/prettier": "error", |
| 6 | + "block-scoped-var": "error", |
| 7 | + "eqeqeq": "error", |
| 8 | + "no-var": "error", |
| 9 | + "prefer-const": "error", |
| 10 | + "eol-last": "error", |
| 11 | + "prefer-arrow-callback": "error", |
| 12 | + "no-trailing-spaces": "error", |
| 13 | + "quotes": ["warn", "single", { "avoidEscape": true }], |
| 14 | + "no-restricted-properties": [ |
| 15 | + "error", |
| 16 | + { |
| 17 | + "object": "describe", |
| 18 | + "property": "only" |
| 19 | + }, |
| 20 | + { |
| 21 | + "object": "it", |
| 22 | + "property": "only" |
| 23 | + } |
| 24 | + ] |
| 25 | + }, |
| 26 | + "overrides": [ |
| 27 | + { |
| 28 | + "files": ["**/*.ts", "**/*.tsx"], |
| 29 | + "parser": "@typescript-eslint/parser", |
| 30 | + "extends": ["plugin:@typescript-eslint/recommended"], |
| 31 | + "rules": { |
| 32 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 33 | + "@typescript-eslint/no-use-before-define": "off", |
| 34 | + "@typescript-eslint/no-warning-comments": "off", |
| 35 | + "@typescript-eslint/no-empty-function": "off", |
| 36 | + "@typescript-eslint/no-var-requires": "off", |
| 37 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 38 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 39 | + "@typescript-eslint/ban-types": "off", |
| 40 | + "@typescript-eslint/camelcase": "off", |
| 41 | + "node/no-missing-import": "off", |
| 42 | + "node/no-empty-function": "off", |
| 43 | + "node/no-unsupported-features/es-syntax": "off", |
| 44 | + "node/no-missing-require": "off", |
| 45 | + "node/shebang": "off", |
| 46 | + "no-dupe-class-members": "off", |
| 47 | + "require-atomic-updates": "off" |
| 48 | + }, |
| 49 | + "parserOptions": { |
| 50 | + "ecmaVersion": 2018, |
| 51 | + "sourceType": "module" |
| 52 | + } |
| 53 | + } |
| 54 | + ] |
| 55 | +} |
0 commit comments