|
1 | 1 | module.exports = { |
2 | | - plugins: ["matrix-org"], |
3 | | - extends: ["plugin:matrix-org/babel"], |
4 | | - parserOptions: { |
5 | | - project: ["./tsconfig-dev.json"], |
6 | | - }, |
7 | | - env: { |
8 | | - browser: true, |
| 2 | + plugins: ["matrix-org"], |
| 3 | + extends: [ |
| 4 | + "plugin:matrix-org/babel", |
| 5 | + "plugin:matrix-org/typescript", |
| 6 | + "prettier", |
| 7 | + ], |
| 8 | + parserOptions: { |
| 9 | + project: ["./tsconfig-dev.json"], |
| 10 | + }, |
| 11 | + env: { |
| 12 | + browser: true, |
| 13 | + }, |
| 14 | + rules: { |
| 15 | + "no-var": ["warn"], |
| 16 | + "prefer-rest-params": ["warn"], |
| 17 | + "prefer-spread": ["warn"], |
| 18 | + "one-var": ["warn"], |
| 19 | + "padded-blocks": ["warn"], |
| 20 | + "no-extend-native": ["warn"], |
| 21 | + camelcase: ["warn"], |
| 22 | + "no-multi-spaces": ["error", { ignoreEOLComments: true }], |
| 23 | + "space-before-function-paren": [ |
| 24 | + "error", |
| 25 | + { |
| 26 | + anonymous: "never", |
| 27 | + named: "never", |
| 28 | + asyncArrow: "always", |
| 29 | + }, |
| 30 | + ], |
| 31 | + "arrow-parens": "off", |
| 32 | + "prefer-promise-reject-errors": "off", |
| 33 | + quotes: "off", |
| 34 | + indent: "off", |
| 35 | + "no-constant-condition": "off", |
| 36 | + "no-async-promise-executor": "off", |
| 37 | + }, |
| 38 | + overrides: [ |
| 39 | + { |
| 40 | + files: ["src/**/*.ts", "test/**/*.ts"], |
| 41 | + extends: ["plugin:matrix-org/typescript"], |
| 42 | + rules: { |
| 43 | + // TypeScript has its own version of this |
| 44 | + "babel/no-invalid-this": "off", |
| 45 | + |
| 46 | + quotes: "off", |
| 47 | + }, |
9 | 48 | }, |
10 | | - rules: { |
11 | | - "no-var": ["warn"], |
12 | | - "prefer-rest-params": ["warn"], |
13 | | - "prefer-spread": ["warn"], |
14 | | - "one-var": ["warn"], |
15 | | - "padded-blocks": ["warn"], |
16 | | - "no-extend-native": ["warn"], |
17 | | - "camelcase": ["warn"], |
18 | | - "no-multi-spaces": ["error", { ignoreEOLComments: true }], |
19 | | - "space-before-function-paren": [ |
20 | | - "error", |
21 | | - { |
22 | | - anonymous: "never", |
23 | | - named: "never", |
24 | | - asyncArrow: "always", |
25 | | - }, |
26 | | - ], |
27 | | - "arrow-parens": "off", |
28 | | - "prefer-promise-reject-errors": "off", |
29 | | - "quotes": "off", |
30 | | - "indent": "off", |
31 | | - "no-constant-condition": "off", |
32 | | - "no-async-promise-executor": "off", |
| 49 | + { |
| 50 | + files: ["src/interfaces/**/*.ts"], |
| 51 | + rules: { |
| 52 | + "@typescript-eslint/no-empty-object-type": "off", |
| 53 | + }, |
33 | 54 | }, |
34 | | - overrides: [ |
35 | | - { |
36 | | - files: ["src/**/*.ts", "test/**/*.ts"], |
37 | | - extends: ["plugin:matrix-org/typescript"], |
38 | | - rules: { |
39 | | - // TypeScript has its own version of this |
40 | | - "babel/no-invalid-this": "off", |
41 | | - |
42 | | - "quotes": "off", |
43 | | - }, |
44 | | - }, |
45 | | - { |
46 | | - files: ["src/interfaces/**/*.ts"], |
47 | | - rules: { |
48 | | - "@typescript-eslint/no-empty-object-type": "off", |
49 | | - }, |
50 | | - }, |
51 | | - ], |
| 55 | + ], |
52 | 56 | }; |
0 commit comments