|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "eslint:recommended", |
| 4 | + "plugin:@typescript-eslint/eslint-recommended", |
| 5 | + "plugin:@typescript-eslint/recommended" |
| 6 | + ], |
| 7 | + "parser": "@typescript-eslint/parser", |
| 8 | + "parserOptions": { |
| 9 | + "sourceType": "module", |
| 10 | + "ecmaVersion": 2017 |
| 11 | + }, |
| 12 | + "env": { |
| 13 | + "node": true, |
| 14 | + "es6": true |
| 15 | + }, |
| 16 | + "plugins": [ |
| 17 | + "@typescript-eslint" |
| 18 | + ], |
| 19 | + "rules": { |
| 20 | + "arrow-parens": ["error", "as-needed"], |
| 21 | + "@typescript-eslint/indent": ["warn", 4], |
| 22 | + "@typescript-eslint/naming-convention": [ |
| 23 | + "error", |
| 24 | + { |
| 25 | + "selector": "interface", |
| 26 | + "format": ["PascalCase"], |
| 27 | + "custom": { |
| 28 | + "regex": "^I[A-Z]", |
| 29 | + "match": false |
| 30 | + } |
| 31 | + }, |
| 32 | + { |
| 33 | + "selector": "variableLike", |
| 34 | + "format": ["camelCase", "UPPER_CASE"], |
| 35 | + "leadingUnderscore": "allow" |
| 36 | + } |
| 37 | + ], |
| 38 | + "max-len": ["error", {"code": 130, "ignoreComments": true}], |
| 39 | + "curly": "off", |
| 40 | + "no-fallthrough": "off", |
| 41 | + "no-constant-condition": "off", |
| 42 | + "@typescript-eslint/no-unused-vars": "off", |
| 43 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 44 | + "@typescript-eslint/no-explicit-any": "off", |
| 45 | + "@typescript-eslint/ban-ts-comment": "off", |
| 46 | + "no-unused-vars": "off", |
| 47 | + "no-console": "off" |
| 48 | + } |
| 49 | +} |
0 commit comments