|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "parser": "@typescript-eslint/parser", |
| 4 | + "plugins": ["@typescript-eslint", "@stylistic", "prettier"], |
| 5 | + "extends": [ |
| 6 | + "eslint:recommended", |
| 7 | + "plugin:@typescript-eslint/strict-type-checked", |
| 8 | + "plugin:@typescript-eslint/stylistic-type-checked", |
| 9 | + "airbnb-base", |
| 10 | + "airbnb-typescript/base", |
| 11 | + "prettier", |
| 12 | + "plugin:@stylistic/disable-legacy" |
| 13 | + ], |
| 14 | + "parserOptions": { |
| 15 | + "project": "./tsconfig.json" |
| 16 | + }, |
| 17 | + "rules": { |
| 18 | + // Below this line rule exist to remove overlap with prettify |
| 19 | + "@stylistic/brace-style": "off", |
| 20 | + "@stylistic/indent": "off", |
| 21 | + // Above this line rule exist to remove overlap with prettify |
| 22 | + "@stylistic/lines-between-class-members": ["error", "always", { "exceptAfterOverload": true }], |
| 23 | + "class-methods-use-this": "off", |
| 24 | + "no-param-reassign": [ |
| 25 | + "error", |
| 26 | + { |
| 27 | + "props": false |
| 28 | + } |
| 29 | + ], |
| 30 | + "no-underscore-dangle": "error", |
| 31 | + "import/extensions": ["error", "always", { "ignorePackages": true }], |
| 32 | + "import/prefer-default-export": "off", |
| 33 | + "@typescript-eslint/no-use-before-define": [ |
| 34 | + "error", |
| 35 | + { |
| 36 | + "functions": false // functions are hoisted |
| 37 | + } |
| 38 | + ], |
| 39 | + "@typescript-eslint/consistent-type-definitions": "off", |
| 40 | + "@typescript-eslint/prefer-nullish-coalescing": "off", |
| 41 | + "@typescript-eslint/prefer-readonly": "error", |
| 42 | + "@typescript-eslint/consistent-type-imports": "error", |
| 43 | + "@typescript-eslint/explicit-function-return-type": "error", |
| 44 | + "@typescript-eslint/naming-convention": [ |
| 45 | + "error", |
| 46 | + { |
| 47 | + "selector": "default", |
| 48 | + "format": ["camelCase"] |
| 49 | + }, |
| 50 | + { |
| 51 | + "selector": "property", |
| 52 | + "format": ["camelCase", "PascalCase"] |
| 53 | + }, |
| 54 | + { |
| 55 | + "selector": "variable", |
| 56 | + "format": ["camelCase", "UPPER_CASE", "PascalCase"] |
| 57 | + }, |
| 58 | + { |
| 59 | + "selector": "parameter", |
| 60 | + "format": ["camelCase", "PascalCase"], |
| 61 | + "leadingUnderscore": "allow" |
| 62 | + }, |
| 63 | + { |
| 64 | + "selector": "typeLike", |
| 65 | + "format": ["PascalCase"] |
| 66 | + }, |
| 67 | + { |
| 68 | + "selector": "enumMember", |
| 69 | + "format": ["PascalCase"] |
| 70 | + }, |
| 71 | + { |
| 72 | + "selector": "objectLiteralProperty", |
| 73 | + "format": ["camelCase", "PascalCase"] |
| 74 | + }, |
| 75 | + { |
| 76 | + "selector": "import", |
| 77 | + "format": ["camelCase", "PascalCase"] |
| 78 | + }, |
| 79 | + { |
| 80 | + "selector": "classProperty", |
| 81 | + "format": ["camelCase"], |
| 82 | + "leadingUnderscore": "allow" |
| 83 | + } |
| 84 | + ], |
| 85 | + "@typescript-eslint/array-type": [ |
| 86 | + "error", |
| 87 | + { |
| 88 | + "default": "array" |
| 89 | + } |
| 90 | + ], |
| 91 | + "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "args": "all" }] |
| 92 | + } |
| 93 | +} |
0 commit comments