|
| 1 | +{ |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "plugins": ["@angular-eslint/eslint-plugin", "@typescript-eslint"], |
| 4 | + "extends": [ |
| 5 | + "eslint:recommended", |
| 6 | + "plugin:@typescript-eslint/recommended", |
| 7 | + "plugin:@typescript-eslint/recommended-requiring-type-checking", |
| 8 | + "plugin:@angular-eslint/recommended", |
| 9 | + "prettier", |
| 10 | + "eslint-config-prettier" |
| 11 | + ], |
| 12 | + "env": { |
| 13 | + "browser": true, |
| 14 | + "es6": true, |
| 15 | + "commonjs": true |
| 16 | + }, |
| 17 | + "parserOptions": { |
| 18 | + "ecmaVersion": 2018, |
| 19 | + "sourceType": "module", |
| 20 | + "project": "./tsconfig.json" |
| 21 | + }, |
| 22 | + "rules": { |
| 23 | + "@angular-eslint/component-selector": [ |
| 24 | + "error", |
| 25 | + { |
| 26 | + "type": "element", |
| 27 | + "prefix": "jhi", |
| 28 | + "style": "kebab-case" |
| 29 | + } |
| 30 | + ], |
| 31 | + "@angular-eslint/directive-selector": [ |
| 32 | + "error", |
| 33 | + { |
| 34 | + "type": "attribute", |
| 35 | + "prefix": "jhi", |
| 36 | + "style": "camelCase" |
| 37 | + } |
| 38 | + ], |
| 39 | + "@angular-eslint/relative-url-prefix": "error", |
| 40 | + "@typescript-eslint/ban-types": [ |
| 41 | + "error", |
| 42 | + { |
| 43 | + "extendDefaults": true, |
| 44 | + "types": { |
| 45 | + "{}": false |
| 46 | + } |
| 47 | + } |
| 48 | + ], |
| 49 | + "@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }], |
| 50 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 51 | + "@typescript-eslint/member-ordering": [ |
| 52 | + "error", |
| 53 | + { |
| 54 | + "default": [ |
| 55 | + "public-static-field", |
| 56 | + "protected-static-field", |
| 57 | + "private-static-field", |
| 58 | + "public-instance-field", |
| 59 | + "protected-instance-field", |
| 60 | + "private-instance-field", |
| 61 | + "constructor", |
| 62 | + "public-static-method", |
| 63 | + "protected-static-method", |
| 64 | + "private-static-method", |
| 65 | + "public-instance-method", |
| 66 | + "protected-instance-method", |
| 67 | + "private-instance-method" |
| 68 | + ] |
| 69 | + } |
| 70 | + ], |
| 71 | + "@typescript-eslint/no-explicit-any": "off", |
| 72 | + "@typescript-eslint/no-floating-promises": "off", |
| 73 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 74 | + "@typescript-eslint/no-parameter-properties": ["warn", { "allows": ["public", "private", "protected"] }], |
| 75 | + "@typescript-eslint/no-shadow": ["error"], |
| 76 | + "@typescript-eslint/no-unnecessary-condition": "error", |
| 77 | + "@typescript-eslint/no-unsafe-argument": "off", |
| 78 | + "@typescript-eslint/no-unsafe-assignment": "off", |
| 79 | + "@typescript-eslint/no-unsafe-call": "off", |
| 80 | + "@typescript-eslint/no-unsafe-member-access": "off", |
| 81 | + "@typescript-eslint/prefer-nullish-coalescing": "error", |
| 82 | + "@typescript-eslint/prefer-optional-chain": "error", |
| 83 | + "@typescript-eslint/unbound-method": "off", |
| 84 | + "arrow-body-style": "error", |
| 85 | + "curly": "error", |
| 86 | + "eqeqeq": ["error", "always", { "null": "ignore" }], |
| 87 | + "guard-for-in": "error", |
| 88 | + "no-bitwise": "error", |
| 89 | + "no-caller": "error", |
| 90 | + "no-console": ["error", { "allow": ["warn", "error"] }], |
| 91 | + "no-eval": "error", |
| 92 | + "no-labels": "error", |
| 93 | + "no-new": "error", |
| 94 | + "no-new-wrappers": "error", |
| 95 | + "object-shorthand": ["error", "always", { "avoidExplicitReturnArrows": true }], |
| 96 | + "radix": "error", |
| 97 | + "spaced-comment": ["warn", "always"] |
| 98 | + } |
| 99 | +} |
0 commit comments