@w5s/eslint-config 2.0.25 → 2.0.26
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/dist/rules/typescript.js
CHANGED
|
@@ -34,7 +34,6 @@ const config = dev_1.ESLintConfig.concat(
|
|
|
34
34
|
'ts-nocheck': true,
|
|
35
35
|
},
|
|
36
36
|
],
|
|
37
|
-
'@typescript-eslint/ban-types': 'error',
|
|
38
37
|
'@typescript-eslint/brace-style': baseRules['brace-style'],
|
|
39
38
|
'@typescript-eslint/comma-dangle': [
|
|
40
39
|
baseRules['comma-dangle'][0],
|
|
@@ -57,7 +56,7 @@ const config = dev_1.ESLintConfig.concat(
|
|
|
57
56
|
'@typescript-eslint/func-call-spacing': baseRules['func-call-spacing'],
|
|
58
57
|
'@typescript-eslint/indent': baseRules.indent,
|
|
59
58
|
'@typescript-eslint/keyword-spacing': baseRules['keyword-spacing'],
|
|
60
|
-
'@typescript-eslint/lines-between-class-members': baseRules['lines-between-class-members'],
|
|
59
|
+
// '@typescript-eslint/lines-between-class-members': baseRules['lines-between-class-members'],
|
|
61
60
|
'@typescript-eslint/member-delimiter-style': 'error',
|
|
62
61
|
'@typescript-eslint/naming-convention': [
|
|
63
62
|
'error',
|
|
@@ -89,6 +88,7 @@ const config = dev_1.ESLintConfig.concat(
|
|
|
89
88
|
'@typescript-eslint/no-dupe-class-members': baseRules['no-dupe-class-members'],
|
|
90
89
|
'@typescript-eslint/no-empty-function': baseRules['no-empty-function'],
|
|
91
90
|
'@typescript-eslint/no-empty-interface': ['error', { allowSingleExtends: true }],
|
|
91
|
+
'@typescript-eslint/no-empty-object-type': 'off',
|
|
92
92
|
'@typescript-eslint/no-explicit-any': 'off', // if any is explicit then it's wanted
|
|
93
93
|
'@typescript-eslint/no-extra-parens': baseRules['no-extra-parens'],
|
|
94
94
|
'@typescript-eslint/no-extra-semi': baseRules['no-extra-semi'],
|
|
@@ -103,7 +103,6 @@ const config = dev_1.ESLintConfig.concat(
|
|
|
103
103
|
'@typescript-eslint/no-require-imports': 'error',
|
|
104
104
|
'@typescript-eslint/no-shadow': baseRules['no-shadow'],
|
|
105
105
|
'@typescript-eslint/no-this-alias': 'error',
|
|
106
|
-
'@typescript-eslint/no-throw-literal': baseRules['no-throw-literal'],
|
|
107
106
|
'@typescript-eslint/no-unnecessary-condition': 'error',
|
|
108
107
|
'@typescript-eslint/no-unsafe-argument': 'error',
|
|
109
108
|
'@typescript-eslint/no-unused-expressions': baseRules['no-unused-expressions'],
|
|
@@ -111,7 +110,10 @@ const config = dev_1.ESLintConfig.concat(
|
|
|
111
110
|
'@typescript-eslint/no-use-before-define': baseRules['no-use-before-define'],
|
|
112
111
|
'@typescript-eslint/no-useless-constructor': baseRules['no-useless-constructor'],
|
|
113
112
|
'@typescript-eslint/no-var-requires': 'error',
|
|
113
|
+
'@typescript-eslint/no-wrapper-object-types': 'error',
|
|
114
114
|
'@typescript-eslint/object-curly-spacing': baseRules['object-curly-spacing'],
|
|
115
|
+
// '@typescript-eslint/no-throw-literal': baseRules['no-throw-literal'],
|
|
116
|
+
'@typescript-eslint/only-throw-error': baseRules['no-throw-literal'],
|
|
115
117
|
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
116
118
|
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
|
|
117
119
|
'@typescript-eslint/quotes': baseRules.quotes,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/eslint-config",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.26",
|
|
4
4
|
"description": "ESLint configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@rushstack/eslint-patch": "^1.1.0",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
38
|
-
"@typescript-eslint/parser": "^
|
|
39
|
-
"@w5s/dev": "^2.2.
|
|
40
|
-
"@w5s/prettier-config": "^2.0.
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
38
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
39
|
+
"@w5s/dev": "^2.2.7",
|
|
40
|
+
"@w5s/prettier-config": "^2.0.20",
|
|
41
41
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
42
42
|
"eslint-config-prettier": "^9.0.0",
|
|
43
43
|
"eslint-plugin-import": "^2.25.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "114c1aa56da01c4ad5cc775ff4df717eb90614b4"
|
|
74
74
|
}
|
package/src/rules/typescript.ts
CHANGED
|
@@ -35,7 +35,6 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
|
|
|
35
35
|
'ts-nocheck': true,
|
|
36
36
|
},
|
|
37
37
|
],
|
|
38
|
-
'@typescript-eslint/ban-types': 'error',
|
|
39
38
|
'@typescript-eslint/brace-style': baseRules['brace-style'],
|
|
40
39
|
'@typescript-eslint/comma-dangle': [
|
|
41
40
|
baseRules['comma-dangle'][0],
|
|
@@ -58,7 +57,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
|
|
|
58
57
|
'@typescript-eslint/func-call-spacing': baseRules['func-call-spacing'],
|
|
59
58
|
'@typescript-eslint/indent': baseRules.indent,
|
|
60
59
|
'@typescript-eslint/keyword-spacing': baseRules['keyword-spacing'],
|
|
61
|
-
'@typescript-eslint/lines-between-class-members': baseRules['lines-between-class-members'],
|
|
60
|
+
// '@typescript-eslint/lines-between-class-members': baseRules['lines-between-class-members'],
|
|
62
61
|
'@typescript-eslint/member-delimiter-style': 'error',
|
|
63
62
|
'@typescript-eslint/naming-convention': [
|
|
64
63
|
'error',
|
|
@@ -90,6 +89,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
|
|
|
90
89
|
'@typescript-eslint/no-dupe-class-members': baseRules['no-dupe-class-members'],
|
|
91
90
|
'@typescript-eslint/no-empty-function': baseRules['no-empty-function'],
|
|
92
91
|
'@typescript-eslint/no-empty-interface': ['error', { allowSingleExtends: true }],
|
|
92
|
+
'@typescript-eslint/no-empty-object-type': 'off',
|
|
93
93
|
'@typescript-eslint/no-explicit-any': 'off', // if any is explicit then it's wanted
|
|
94
94
|
'@typescript-eslint/no-extra-parens': baseRules['no-extra-parens'],
|
|
95
95
|
'@typescript-eslint/no-extra-semi': baseRules['no-extra-semi'],
|
|
@@ -104,7 +104,6 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
|
|
|
104
104
|
'@typescript-eslint/no-require-imports': 'error',
|
|
105
105
|
'@typescript-eslint/no-shadow': baseRules['no-shadow'],
|
|
106
106
|
'@typescript-eslint/no-this-alias': 'error',
|
|
107
|
-
'@typescript-eslint/no-throw-literal': baseRules['no-throw-literal'],
|
|
108
107
|
'@typescript-eslint/no-unnecessary-condition': 'error',
|
|
109
108
|
'@typescript-eslint/no-unsafe-argument': 'error',
|
|
110
109
|
'@typescript-eslint/no-unused-expressions': baseRules['no-unused-expressions'],
|
|
@@ -112,7 +111,10 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
|
|
|
112
111
|
'@typescript-eslint/no-use-before-define': baseRules['no-use-before-define'],
|
|
113
112
|
'@typescript-eslint/no-useless-constructor': baseRules['no-useless-constructor'],
|
|
114
113
|
'@typescript-eslint/no-var-requires': 'error',
|
|
114
|
+
'@typescript-eslint/no-wrapper-object-types': 'error',
|
|
115
115
|
'@typescript-eslint/object-curly-spacing': baseRules['object-curly-spacing'],
|
|
116
|
+
// '@typescript-eslint/no-throw-literal': baseRules['no-throw-literal'],
|
|
117
|
+
'@typescript-eslint/only-throw-error': baseRules['no-throw-literal'],
|
|
116
118
|
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
117
119
|
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
|
|
118
120
|
'@typescript-eslint/quotes': baseRules.quotes,
|