eslint-config-henderea 1.0.17 → 1.1.1
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/.eslintrc.js +22 -8
- package/package.json +9 -7
package/.eslintrc.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
parser: '@
|
|
2
|
+
parser: '@typescript-eslint/parser',
|
|
3
3
|
env: {
|
|
4
4
|
node: true,
|
|
5
5
|
commonjs: true,
|
|
@@ -7,7 +7,13 @@ module.exports = {
|
|
|
7
7
|
jquery: true,
|
|
8
8
|
es6: true
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
plugins: [
|
|
11
|
+
'@typescript-eslint'
|
|
12
|
+
],
|
|
13
|
+
extends: [
|
|
14
|
+
'eslint:recommended',
|
|
15
|
+
'plugin:@typescript-eslint/recommended'
|
|
16
|
+
],
|
|
11
17
|
parserOptions: {
|
|
12
18
|
ecmaVersion: 2020,
|
|
13
19
|
requireConfigFile: false
|
|
@@ -21,7 +27,8 @@ module.exports = {
|
|
|
21
27
|
'error',
|
|
22
28
|
'unix'
|
|
23
29
|
],
|
|
24
|
-
semi:
|
|
30
|
+
semi: 0,
|
|
31
|
+
'@typescript-eslint/semi': [
|
|
25
32
|
'error',
|
|
26
33
|
'always'
|
|
27
34
|
],
|
|
@@ -42,7 +49,8 @@ module.exports = {
|
|
|
42
49
|
'no-underscore-dangle': 0,
|
|
43
50
|
'consistent-return': 0,
|
|
44
51
|
radix: 0,
|
|
45
|
-
quotes:
|
|
52
|
+
quotes: 0,
|
|
53
|
+
'@typescript-eslint/quotes': [
|
|
46
54
|
2,
|
|
47
55
|
'single',
|
|
48
56
|
{
|
|
@@ -60,7 +68,8 @@ module.exports = {
|
|
|
60
68
|
'no-trailing-spaces': [
|
|
61
69
|
'error'
|
|
62
70
|
],
|
|
63
|
-
'space-before-function-paren':
|
|
71
|
+
'space-before-function-paren': 0,
|
|
72
|
+
'@typescript-eslint/space-before-function-paren': [
|
|
64
73
|
'error',
|
|
65
74
|
{
|
|
66
75
|
anonymous: 'never',
|
|
@@ -68,7 +77,8 @@ module.exports = {
|
|
|
68
77
|
asyncArrow: 'always'
|
|
69
78
|
}
|
|
70
79
|
],
|
|
71
|
-
'keyword-spacing':
|
|
80
|
+
'keyword-spacing': 0,
|
|
81
|
+
'@typescript-eslint/keyword-spacing': [
|
|
72
82
|
'error',
|
|
73
83
|
{
|
|
74
84
|
overrides: {
|
|
@@ -87,7 +97,8 @@ module.exports = {
|
|
|
87
97
|
}
|
|
88
98
|
}
|
|
89
99
|
],
|
|
90
|
-
'object-curly-spacing':
|
|
100
|
+
'object-curly-spacing': 0,
|
|
101
|
+
'@typescript-eslint/object-curly-spacing': [
|
|
91
102
|
'error',
|
|
92
103
|
'always'
|
|
93
104
|
],
|
|
@@ -95,6 +106,9 @@ module.exports = {
|
|
|
95
106
|
'error',
|
|
96
107
|
'always'
|
|
97
108
|
],
|
|
98
|
-
'no-constant-condition': 0
|
|
109
|
+
'no-constant-condition': 0,
|
|
110
|
+
'@typescript-eslint/no-var-requires': 0,
|
|
111
|
+
'@typescript-eslint/no-explicit-any': 0,
|
|
112
|
+
'@typescript-eslint/ban-ts-comment': 0
|
|
99
113
|
}
|
|
100
114
|
};
|
package/package.json
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-henderea",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "ESLint Config used by henderea",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "henderea",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": "https://github.com/henderea/eslint-config-henderea.git",
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@
|
|
11
|
-
"@
|
|
10
|
+
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
|
11
|
+
"@typescript-eslint/parser": "^5.48.1",
|
|
12
12
|
"eslint": "^8.31.0",
|
|
13
|
-
"eslint-plugin-import": "^2.26.0"
|
|
13
|
+
"eslint-plugin-import": "^2.26.0",
|
|
14
|
+
"typescript": "^4.9.4"
|
|
14
15
|
},
|
|
15
16
|
"devDependencies": {
|
|
16
|
-
"@
|
|
17
|
-
"@
|
|
17
|
+
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
|
18
|
+
"@typescript-eslint/parser": "^5.48.1",
|
|
18
19
|
"eslint": "^8.31.0",
|
|
19
|
-
"eslint-plugin-import": "^2.26.0"
|
|
20
|
+
"eslint-plugin-import": "^2.26.0",
|
|
21
|
+
"typescript": "^4.9.4"
|
|
20
22
|
},
|
|
21
23
|
"scripts": {
|
|
22
24
|
"lint": "eslint .",
|