|
| 1 | +{ |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "plugins": ["@typescript-eslint", "prettier"], |
| 4 | + "env": { |
| 5 | + "es6": true, |
| 6 | + "node": true |
| 7 | + }, |
| 8 | + "extends": [ |
| 9 | + "plugin:@typescript-eslint/recommended", |
| 10 | + "prettier/@typescript-eslint", |
| 11 | + "plugin:prettier/recommended" |
| 12 | + ], |
| 13 | + "globals": { |
| 14 | + "Atomics": "readonly", |
| 15 | + "SharedArrayBuffer": "readonly" |
| 16 | + }, |
| 17 | + "parserOptions": { |
| 18 | + "ecmaVersion": 2018, |
| 19 | + "sourceType": "module", |
| 20 | + "project": "./tsconfig.json" |
| 21 | + }, |
| 22 | + "rules": { |
| 23 | + "quotes": [ |
| 24 | + "error" |
| 25 | + ], |
| 26 | + "eqeqeq": [ |
| 27 | + "warn", "always" |
| 28 | + ], |
| 29 | + "no-process-env": [ |
| 30 | + "warn" |
| 31 | + ], |
| 32 | + "no-var": [ |
| 33 | + "warn" |
| 34 | + ], |
| 35 | + "sort-imports": [ |
| 36 | + "off" |
| 37 | + ], |
| 38 | + "func-style": [ |
| 39 | + "error", |
| 40 | + "expression" |
| 41 | + ], |
| 42 | + "prefer-arrow-callback": [ |
| 43 | + "error" |
| 44 | + ], |
| 45 | + "@typescript-eslint/explicit-function-return-type": [ |
| 46 | + "off", |
| 47 | + { |
| 48 | + "allowTypedFunctionExpressions": true, |
| 49 | + "allowExpressions": true |
| 50 | + } |
| 51 | + ], |
| 52 | + "@typescript-eslint/await-thenable": [ |
| 53 | + "warn" |
| 54 | + ], |
| 55 | + "@typescript-eslint/no-use-before-define": [ |
| 56 | + "off" |
| 57 | + ], |
| 58 | + "@typescript-eslint/explicit-module-boundary-types": [ |
| 59 | + "off" |
| 60 | + ], |
| 61 | + "@typescript-eslint/no-angle-bracket-type-assertion": [ |
| 62 | + "off" |
| 63 | + ], |
| 64 | + "@typescript-eslint/no-require-imports": [ |
| 65 | + "warn" |
| 66 | + ], |
| 67 | + "@typescript-eslint/no-unnecessary-type-assertion": [ |
| 68 | + "warn" |
| 69 | + ], |
| 70 | + "@typescript-eslint/prefer-string-starts-ends-with": [ |
| 71 | + "warn" |
| 72 | + ], |
| 73 | + "@typescript-eslint/interface-name-prefix": [ |
| 74 | + "off" |
| 75 | + ], |
| 76 | + "@typescript-eslint/prefer-interface": ["off"], |
| 77 | + "@typescript-eslint/explicit-member-accessibility": [ |
| 78 | + "warn", |
| 79 | + { |
| 80 | + "accessibility": "no-public" |
| 81 | + } |
| 82 | + ], |
| 83 | + "@typescript-eslint/no-misused-promises": [ |
| 84 | + "error" |
| 85 | + ], |
| 86 | + "@typescript-eslint/no-floating-promises": [ |
| 87 | + "error" |
| 88 | + ], |
| 89 | + "@typescript-eslint/consistent-type-assertions": ["off"], |
| 90 | + "@typescript-eslint/no-non-null-assertion": ["off"], |
| 91 | + "prettier/prettier": [ |
| 92 | + "warn", |
| 93 | + { |
| 94 | + "trailingComma": "all", |
| 95 | + "singleQuote": true, |
| 96 | + "printWidth": 140, |
| 97 | + "tabWidth": 2, |
| 98 | + "arrowParens": "always" |
| 99 | + }, |
| 100 | + { |
| 101 | + "usePrettierrc": false |
| 102 | + } |
| 103 | + ] |
| 104 | + }, |
| 105 | + "overrides": [ |
| 106 | + { |
| 107 | + "files": ["*.spec.ts", "src/**/*.ts", "types/**/*.ts"], |
| 108 | + "excludedFiles": ["lib/*"], |
| 109 | + "rules": { |
| 110 | + "@typescript-eslint/explicit-function-return-type": "off" |
| 111 | + } |
| 112 | + } |
| 113 | + ] |
| 114 | +} |
0 commit comments