@wistia/eslint-config 0.17.1 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rules/eslint/typescript.js +66 -3
package/package.json
CHANGED
|
@@ -5,9 +5,59 @@ module.exports = {
|
|
|
5
5
|
plugins: ['@typescript-eslint'],
|
|
6
6
|
|
|
7
7
|
rules: {
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
|
|
8
|
+
// the following rules are deliberately disabled (as they may be inherited from other rulesets (eg. best-practices.js)) because
|
|
9
|
+
// they have equivalent rules below that are considered "extension rules" by @typescript-eslint
|
|
10
|
+
|
|
11
|
+
// prefer @typescript-eslint/default-param-last
|
|
12
|
+
'default-param-last': 'off',
|
|
13
|
+
|
|
14
|
+
// prefer @typescript-eslint/dot-notation
|
|
15
|
+
'dot-notation': 'off',
|
|
16
|
+
|
|
17
|
+
// prefer @typescript-eslint/init-declarations
|
|
18
|
+
'init-declarations': 'off',
|
|
19
|
+
|
|
20
|
+
// prefer @typescript-eslint/no-array-constructor
|
|
21
|
+
'no-array-constructor': 'off',
|
|
22
|
+
|
|
23
|
+
// prefer @typescript-eslint/no-dupe-class-members
|
|
24
|
+
'no-dupe-class-members': 'off',
|
|
25
|
+
|
|
26
|
+
// prefer @typescript-eslint/no-empty-function
|
|
27
|
+
'no-empty-function': 'off',
|
|
28
|
+
|
|
29
|
+
// prefer @typescript-eslint/no-extra-semi
|
|
30
|
+
'no-extra-semi': 'off',
|
|
31
|
+
|
|
32
|
+
// prefer @typescript-eslint/no-implied-eval
|
|
33
|
+
'no-implied-eval': 'off',
|
|
34
|
+
|
|
35
|
+
// prefer @typescript-eslint/no-invalid-this
|
|
36
|
+
'no-invalid-this': 'off',
|
|
37
|
+
|
|
38
|
+
// prefer @typescript-eslint/no-loop-func
|
|
39
|
+
'no-loop-func': 'off',
|
|
40
|
+
|
|
41
|
+
// prefer @typescript-eslint/no-loss-of-precision
|
|
42
|
+
'no-loss-of-precision': 'off',
|
|
43
|
+
|
|
44
|
+
// prefer @typescript-eslint/no-magic-numbers
|
|
45
|
+
'no-magic-numbers': 'off',
|
|
46
|
+
|
|
47
|
+
// prefer @typescript-eslint/no-redeclare
|
|
48
|
+
'no-redeclare': 'off',
|
|
49
|
+
|
|
50
|
+
// prefer @typescript-eslint/no-restricted-imports
|
|
51
|
+
'no-restricted-imports': 'off',
|
|
52
|
+
|
|
53
|
+
// prefer @typescript-eslint/no-shadow
|
|
54
|
+
'no-shadow': 'off',
|
|
55
|
+
|
|
56
|
+
// prefer @typescript-eslint/no-throw-literal
|
|
57
|
+
'no-throw-literal': 'off',
|
|
58
|
+
|
|
59
|
+
// prefer @typescript-eslint/no-unused-expressions
|
|
60
|
+
'no-unused-expressions': 'off',
|
|
11
61
|
|
|
12
62
|
// prefer @typescript-eslint/no-unused-vars
|
|
13
63
|
'no-unused-vars': 'off',
|
|
@@ -15,6 +65,19 @@ module.exports = {
|
|
|
15
65
|
// prefer @typescript-eslint/no-use-before-define
|
|
16
66
|
'no-use-before-define': 'off',
|
|
17
67
|
|
|
68
|
+
// prefer @typescript-eslint/no-useless-constructor
|
|
69
|
+
'no-useless-constructor': 'off',
|
|
70
|
+
|
|
71
|
+
// prefer @typescript-eslint/require-await
|
|
72
|
+
'require-await': 'off',
|
|
73
|
+
|
|
74
|
+
// prefer @typescript-eslint/return-await
|
|
75
|
+
'no-return-await': 'off',
|
|
76
|
+
|
|
77
|
+
// recommended to be disabled for TypeScript projects
|
|
78
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/docs/linting/TROUBLESHOOTING.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
|
|
79
|
+
'no-undef': 'off',
|
|
80
|
+
|
|
18
81
|
// Require that member overloads be consecutive
|
|
19
82
|
// https://typescript-eslint.io/rules/adjacent-overload-signatures
|
|
20
83
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|