|
20 | 20 | "@typescript-eslint/await-thenable": "error",
|
21 | 21 |
|
22 | 22 | "camelcase": "off",
|
23 |
| - "@typescript-eslint/camelcase": ["error", { "properties": "never", "allow": ["^[A-Za-z][a-zA-Za-z]+_[A-Za-z]+$"] }], |
| 23 | + "@typescript-eslint/naming-convention": [ |
| 24 | + "error", |
| 25 | + { |
| 26 | + "selector": "default", |
| 27 | + "format": ["camelCase"] |
| 28 | + }, |
| 29 | + { |
| 30 | + "selector": "classProperty", |
| 31 | + "modifiers": ["private"], |
| 32 | + "format": ["camelCase"], |
| 33 | + "leadingUnderscore": "allow" |
| 34 | + }, |
| 35 | + { |
| 36 | + "selector": "classProperty", |
| 37 | + "modifiers": ["protected"], |
| 38 | + "format": ["camelCase"], |
| 39 | + "leadingUnderscore": "allow" |
| 40 | + }, |
| 41 | + { |
| 42 | + "selector": "objectLiteralProperty", |
| 43 | + "format": null |
| 44 | + }, |
| 45 | + { |
| 46 | + "selector": "typeProperty", |
| 47 | + "format": null |
| 48 | + }, |
| 49 | + { |
| 50 | + "selector": "variable", |
| 51 | + "format": ["PascalCase", "camelCase", "UPPER_CASE"] |
| 52 | + }, |
| 53 | + { |
| 54 | + "selector": "parameter", |
| 55 | + "format": ["camelCase"], |
| 56 | + "leadingUnderscore": "allow" |
| 57 | + }, |
| 58 | + { |
| 59 | + "selector": "enumMember", |
| 60 | + "format": ["snake_case", "camelCase", "PascalCase", "UPPER_CASE"] |
| 61 | + }, |
| 62 | + { |
| 63 | + "selector": "typeLike", |
| 64 | + "format": ["PascalCase"] |
| 65 | + }, |
| 66 | + { |
| 67 | + "selector": "interface", |
| 68 | + "format": ["PascalCase"], |
| 69 | + "custom": { |
| 70 | + "regex": "^I[A-Z]", |
| 71 | + "match": false |
| 72 | + } |
| 73 | + } |
| 74 | + ], |
24 | 75 |
|
25 |
| - "@typescript-eslint/class-name-casing": "error", |
26 | 76 | "@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
27 | 77 | "@typescript-eslint/consistent-type-assertions": ["error", { "assertionStyle": "as"}],
|
28 | 78 | "@typescript-eslint/explicit-function-return-type": ["error"],
|
29 |
| - "@typescript-eslint/interface-name-prefix": "error", |
30 |
| - "@typescript-eslint/no-extra-parens": ["error", "all", { |
31 |
| - "returnAssign": false, |
32 |
| - "nestedBinaryExpressions": false, |
33 |
| - "enforceForArrowConditionals": false |
34 |
| - }], |
35 | 79 | "@typescript-eslint/no-extra-semi": "error",
|
36 | 80 | "@typescript-eslint/no-floating-promises": "error",
|
37 | 81 | "@typescript-eslint/no-inferrable-types": "error",
|
|
0 commit comments