|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "eslint-config-airbnb", |
| 4 | + "plugin:angular/johnpapa" |
| 5 | + ], |
| 6 | + "plugins": [ |
| 7 | + "@typescript-eslint", |
| 8 | + "jasmine" |
| 9 | + ], |
| 10 | + "parser": "@typescript-eslint/parser", |
| 11 | + "parserOptions": { |
| 12 | + "project": "./tsconfig.json" |
| 13 | + }, |
| 14 | + "env": { |
| 15 | + "browser": true, |
| 16 | + "jasmine": true |
| 17 | + }, |
| 18 | + "settings": { |
| 19 | + "react": { |
| 20 | + "version": "latest" |
| 21 | + } |
| 22 | + }, |
| 23 | + "rules": { |
| 24 | + "indent": [ |
| 25 | + "error", |
| 26 | + 4, |
| 27 | + { |
| 28 | + "SwitchCase": 1 |
| 29 | + } |
| 30 | + ], |
| 31 | + "no-prototype-builtins": "off", |
| 32 | + "yoda": "off", |
| 33 | + "prefer-const": "off", |
| 34 | + "no-unused-vars": "off", |
| 35 | + "no-underscore-dangle": "off", |
| 36 | + "no-plusplus": "off", |
| 37 | + "no-multi-spaces": [ |
| 38 | + "error", |
| 39 | + { |
| 40 | + "exceptions": { |
| 41 | + "Property": true, |
| 42 | + "VariableDeclarator": true, |
| 43 | + "ImportDeclaration": true, |
| 44 | + "AssignmentExpression": true |
| 45 | + } |
| 46 | + } |
| 47 | + ], |
| 48 | + "key-spacing": [ |
| 49 | + "error", |
| 50 | + { |
| 51 | + "align": "value" |
| 52 | + } |
| 53 | + ], |
| 54 | + "max-len": [ |
| 55 | + "error", |
| 56 | + { |
| 57 | + "code": 120, |
| 58 | + "ignoreStrings": true |
| 59 | + } |
| 60 | + ], |
| 61 | + "padded-blocks": [ |
| 62 | + "error", |
| 63 | + { |
| 64 | + "classes": "always" |
| 65 | + } |
| 66 | + ], |
| 67 | + "object-curly-newline": [ |
| 68 | + "error", |
| 69 | + { |
| 70 | + "ObjectExpression": { |
| 71 | + "multiline": true, |
| 72 | + "minProperties": 2 |
| 73 | + }, |
| 74 | + "ObjectPattern": { |
| 75 | + "multiline": true |
| 76 | + }, |
| 77 | + "ImportDeclaration": { |
| 78 | + "multiline": true, |
| 79 | + "minProperties": 2 |
| 80 | + }, |
| 81 | + "ExportDeclaration": { |
| 82 | + "multiline": true, |
| 83 | + "minProperties": 2 |
| 84 | + } |
| 85 | + } |
| 86 | + ], |
| 87 | + "no-multiple-empty-lines": [ |
| 88 | + "error", |
| 89 | + { |
| 90 | + "max": 1 |
| 91 | + } |
| 92 | + ], |
| 93 | + "object-shorthand": [ |
| 94 | + "error", |
| 95 | + "never" |
| 96 | + ], |
| 97 | + "semi": "off", |
| 98 | + "no-extra-semi": "off", |
| 99 | + "@typescript-eslint/semi": "error", |
| 100 | + "@typescript-eslint/no-extra-semi": "error", |
| 101 | + "@typescript-eslint/no-unused-vars": [ |
| 102 | + "error", |
| 103 | + { |
| 104 | + "varsIgnorePattern": "h" |
| 105 | + } |
| 106 | + ], |
| 107 | + "@typescript-eslint/no-unused-vars-experimental": "error", |
| 108 | + "@typescript-eslint/explicit-function-return-type": "error", |
| 109 | + "@typescript-eslint/explicit-member-accessibility": "error", |
| 110 | + "@typescript-eslint/typedef": [ |
| 111 | + "error", |
| 112 | + { |
| 113 | + "variableDeclaration": true, |
| 114 | + "arrayDestructuring": true, |
| 115 | + "objectDestructuring": true, |
| 116 | + "arrowParameter": true, |
| 117 | + "memberVariableDeclaration": true, |
| 118 | + "parameter": true, |
| 119 | + "propertyDeclaration": true, |
| 120 | + "variableDeclarationIgnoreFunction": true |
| 121 | + } |
| 122 | + ], |
| 123 | + "import/prefer-default-export": "off", |
| 124 | + "import/no-unresolved": "off", |
| 125 | + "import/extensions": "off", |
| 126 | + "react/no-unknown-property": [ |
| 127 | + "error", |
| 128 | + { |
| 129 | + "ignore": [ |
| 130 | + "class" |
| 131 | + ] |
| 132 | + } |
| 133 | + ], |
| 134 | + "angular/window-service": "off" |
| 135 | + } |
| 136 | +} |
0 commit comments