|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "parser": "@typescript-eslint/parser", |
| 4 | + "plugins": [ |
| 5 | + "@typescript-eslint" |
| 6 | + ], |
| 7 | + "env": { |
| 8 | + "node": true |
| 9 | + }, |
| 10 | + "extends": [ |
| 11 | + "eslint:recommended", |
| 12 | + "plugin:@typescript-eslint/recommended" |
| 13 | + ], |
| 14 | + "rules": { |
| 15 | + "@typescript-eslint/array-type": [ |
| 16 | + "error", |
| 17 | + { |
| 18 | + "default": "array-simple" |
| 19 | + } |
| 20 | + ], |
| 21 | + "@typescript-eslint/consistent-type-imports": "error", |
| 22 | + "@typescript-eslint/no-unused-vars": [ |
| 23 | + "error", |
| 24 | + { |
| 25 | + "argsIgnorePattern": "_" |
| 26 | + } |
| 27 | + ], |
| 28 | + "no-undef": "off", |
| 29 | + "no-redeclare": "off", |
| 30 | + "padded-blocks": "off", |
| 31 | + "no-unused-vars": "off", |
| 32 | + "no-dupe-class-members": "off", |
| 33 | + "newline-before-return": "error", |
| 34 | + "indent": [ |
| 35 | + "error", |
| 36 | + 4, |
| 37 | + { |
| 38 | + "SwitchCase": 1 |
| 39 | + } |
| 40 | + ], |
| 41 | + "max-len": [ |
| 42 | + "error", |
| 43 | + { |
| 44 | + "code": 180 |
| 45 | + } |
| 46 | + ], |
| 47 | + "quotes": [ |
| 48 | + "error", |
| 49 | + "single" |
| 50 | + ], |
| 51 | + "semi": [ |
| 52 | + "error", |
| 53 | + "always" |
| 54 | + ], |
| 55 | + "require-jsdoc": [ |
| 56 | + "warn", |
| 57 | + { |
| 58 | + "require": { |
| 59 | + "MethodDefinition": false, |
| 60 | + "ClassDeclaration": false, |
| 61 | + "FunctionExpression": false, |
| 62 | + "FunctionDeclaration": false, |
| 63 | + "ArrowFunctionExpression": false |
| 64 | + } |
| 65 | + } |
| 66 | + ], |
| 67 | + "linebreak-style": [ |
| 68 | + "error", |
| 69 | + "windows" |
| 70 | + ], |
| 71 | + "array-bracket-spacing": [ |
| 72 | + "error", |
| 73 | + "always", |
| 74 | + { |
| 75 | + "objectsInArrays": false, |
| 76 | + "arraysInArrays": false |
| 77 | + } |
| 78 | + ], |
| 79 | + "object-curly-spacing": [ |
| 80 | + 2, |
| 81 | + "always" |
| 82 | + ], |
| 83 | + "@typescript-eslint/no-explicit-any": "off", |
| 84 | + "@typescript-eslint/member-ordering": [ |
| 85 | + "error", |
| 86 | + { |
| 87 | + "default": [ |
| 88 | + // Fields |
| 89 | + "public-static-field", |
| 90 | + "public-decorated-field", |
| 91 | + "public-instance-field", |
| 92 | + "protected-static-field", |
| 93 | + "protected-decorated-field", |
| 94 | + "protected-instance-field", |
| 95 | + "private-static-field", |
| 96 | + "private-decorated-field", |
| 97 | + "private-instance-field", |
| 98 | + // Constructors |
| 99 | + "public-constructor", |
| 100 | + "protected-constructor", |
| 101 | + "private-constructor", |
| 102 | + // Methods |
| 103 | + "public-static-method", |
| 104 | + "public-decorated-method", |
| 105 | + "public-instance-method", |
| 106 | + "protected-static-method", |
| 107 | + "protected-decorated-method", |
| 108 | + "protected-instance-method", |
| 109 | + "private-static-method", |
| 110 | + "private-decorated-method", |
| 111 | + "private-instance-method" |
| 112 | + ] |
| 113 | + } |
| 114 | + ] |
| 115 | + }, |
| 116 | + "overrides": [ |
| 117 | + { |
| 118 | + "files": "*.json", |
| 119 | + "parser": "jsonc-eslint-parser", |
| 120 | + "rules": {} |
| 121 | + } |
| 122 | + ], |
| 123 | + "ignorePatterns": [ |
| 124 | + "**/*.js", |
| 125 | + "docs/*", |
| 126 | + "src/specs/*", |
| 127 | + "src/assets/*" |
| 128 | + ] |
| 129 | +} |
0 commit comments