|
1 | 1 | {
|
2 |
| - "extends": "eslint:recommended", |
| 2 | + "extends": "plugin:prettier/recommended", |
3 | 3 | "parser": "typescript-eslint-parser",
|
4 | 4 | "plugins": [
|
| 5 | + "prettier", |
| 6 | + "import", |
5 | 7 | "typescript",
|
6 | 8 | "mocha"
|
7 | 9 | ],
|
|
22 | 24 | {
|
23 | 25 | "files": ["*/src/**/*.*spec.ts"],
|
24 | 26 | "rules": {
|
| 27 | + "mocha/no-exclusive-tests": "error", |
25 | 28 | "no-magic-numbers": "off"
|
26 | 29 | }
|
27 | 30 | },
|
|
41 | 44 | ],
|
42 | 45 | "rules": {
|
43 | 46 | "array-bracket-newline": ["error", "consistent"],
|
44 |
| - "array-bracket-spacing": ["error", "always"], |
45 | 47 | "block-spacing": ["error", "always"],
|
46 | 48 | "brace-style": ["error", "1tbs"],
|
47 | 49 | "camelcase": ["error", { "properties": "always" }],
|
|
56 | 58 | "curly": ["error", "all"],
|
57 | 59 | "eqeqeq": ["error", "always"],
|
58 | 60 | "eol-last": ["error", "always"],
|
59 |
| - "implicit-arrow-linebreak": ["error", "beside"], |
60 |
| - "indent": ["error", 4, { |
61 |
| - "FunctionExpression": { "parameters": "first" }, |
62 |
| - "CallExpression": { "arguments": "first" }, |
63 |
| - "flatTernaryExpressions": false |
64 |
| - }], |
| 61 | + "import/order": ["error"], |
65 | 62 | "key-spacing": ["warn", {
|
66 | 63 | "beforeColon": false,
|
67 | 64 | "afterColon": true,
|
|
76 | 73 | "exceptAfterSingleLine": true
|
77 | 74 | }],
|
78 | 75 | "max-statements-per-line": ["error", { "max": 1 }],
|
79 |
| - "mocha/no-exclusive-tests": "error", |
80 | 76 | "multiline-ternary": ["error", "always-multiline"],
|
81 | 77 | "new-cap": ["error", { "newIsCap": true, "capIsNew": true, "properties": true }],
|
82 | 78 | "new-parens": ["error"],
|
|
103 | 99 | "no-lonely-if": ["error"],
|
104 | 100 | "no-multi-assign": ["error"],
|
105 | 101 | "no-redeclare": "off", // doesn't play nice with decorators in constructors
|
106 |
| - "no-tabs": ["error"], |
107 |
| - "no-trailing-spaces": ["error"], |
108 | 102 | "no-unneeded-ternary": ["error"],
|
109 | 103 | "no-var": ["error"],
|
110 | 104 | "no-whitespace-before-property": ["error"],
|
111 | 105 | "object-curly-newline": ["error", { "multiline": true, "consistent": true }],
|
112 | 106 | "one-var-declaration-per-line": ["error", "initializations"],
|
113 | 107 | "operator-linebreak": ["error", "after"],
|
114 |
| - "quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }], |
115 | 108 | "semi-spacing": ["error", { "before": false, "after": true }],
|
116 | 109 |
|
117 |
| - "space-before-blocks": ["error", "always"], |
118 |
| - "space-before-function-paren": ["error", { "anonymous": "always", "named": "never", "asyncArrow": "always" }], |
119 |
| - "space-in-parens": ["error", "never"], |
120 |
| - "spaced-comment": ["error", "always", { "block": { "balanced": true } }], |
121 |
| - |
122 | 110 | "typescript/no-unused-vars": ["error"]
|
123 | 111 | }
|
124 | 112 | }
|
0 commit comments