|
35 | 35 | "multiline-ternary": 0, |
36 | 36 | "new-cap": 0, // babel/new-cap |
37 | 37 | "array-element-newline": [1, "consistent"], |
38 | | - "comma-dangle": [1, "always-multiline"], |
| 38 | + "comma-dangle": 0, // using typescript-eslint/comma-dangle |
39 | 39 | "function-call-argument-newline": [1, "consistent"], |
40 | 40 | "max-len": [1, { "code": 120, "ignorePattern": "http?s:\/\/", "ignoreTrailingComments": true}], // override 80 that is too low |
41 | 41 | "padded-blocks": [1, "never"], |
|
68 | 68 | "enforceConst": true |
69 | 69 | } |
70 | 70 | ], |
| 71 | + "@typescript-eslint/comma-dangle": [1, "always-multiline"], |
| 72 | + "@typescript-eslint/method-signature-style": [1, "method"], |
| 73 | + "@typescript-eslint/init-declarations": 0, // let a ; try {a = funct()} catch (e) throw e; if a.sdfsd . In this example we can't have instant init |
| 74 | + "@typescript-eslint/prefer-readonly-parameter-types": 0, // too many issues, we can't mofidy arguments, we can' use type like number[], because rule @typescript-eslint/array-type |
| 75 | + "@typescript-eslint/naming-convention": [1, |
| 76 | + { |
| 77 | + "selector": "property", |
| 78 | + "format": ["PascalCase", "camelCase"] // PascalCase for Vue-property-decorator components: {AppAlert} |
| 79 | + } |
| 80 | + ], |
71 | 81 | "babel/object-curly-spacing": 1, |
72 | 82 | "babel/quotes": 1, |
73 | 83 | "babel/semi": 1, |
74 | 84 | "babel/no-unused-expressions": 1, |
75 | 85 | "babel/valid-typeof": 1, |
76 | 86 | "babel/new-cap": 1, |
77 | | - "babel/camelcase": 1, |
| 87 | + "babel/camelcase": 0, // use typescript-eslint/naming-convention |
78 | 88 | "babel/no-invalid-this": 1, |
79 | 89 | "import/no-named-as-default": 1, //is not part of default sert |
80 | 90 | "import/no-unresolved": 0, |
|
154 | 164 | ], |
155 | 165 | "vuetify/grid-unknown-attributes": 1, |
156 | 166 | "vuetify/no-legacy-grid": 0, |
157 | | - "vuetify/no-deprecated-classes": 1 |
| 167 | + "vuetify/no-deprecated-classes": 1, |
| 168 | + "class-methods-use-this": 0, |
| 169 | + "@typescript-eslint/no-unnecessary-condition": 0 // too many times we want to make sure that variable that is not null is present or not. Let's say window.RTPConnection is declaread as non-nullable but we still check it in runtime |
158 | 170 | }, |
159 | 171 | "overrides": [ |
160 | 172 | { |
161 | 173 | "files": ["*.vue", "*.d.ts"], |
162 | 174 | "rules": { |
163 | | - "import/no-default-export": 0, |
164 | | - "class-methods-use-this": 0 |
| 175 | + "import/no-default-export": 0 |
| 176 | + |
165 | 177 | } |
166 | 178 | }, |
167 | 179 | { |
168 | 180 | "files": ["*.vue"], |
169 | 181 | "rules": { |
170 | 182 | "@typescript-eslint/prefer-readonly": 0, // can be used in template |
171 | | - "class-methods-use-this": 0, |
172 | 183 | "import/unambiguous": 0 // vue SFC can miss script tags |
173 | 184 | } |
174 | 185 | } |
|
0 commit comments