eslint-config-touch4it 9.0.0 → 13.0.0
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/.travis.yml +1 -1
- package/CHANGELOG.md +16 -0
- package/browser.js +3 -0
- package/index.js +21 -25
- package/node.js +5 -4
- package/package.json +10 -10
package/.travis.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 12.0.0 (2021-12-10)
|
|
4
|
+
|
|
5
|
+
- Updated dependencies
|
|
6
|
+
- Compatibility towards xo@0.47.0
|
|
7
|
+
|
|
8
|
+
## 11.0.0 (2021-08-12)
|
|
9
|
+
|
|
10
|
+
- ESM modules allowed by default
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- Compatibility towards xo@0.44.0
|
|
13
|
+
|
|
14
|
+
## 10.0.0 (2021-07-12)
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- Compatibility towards xo@0.41.0
|
|
18
|
+
|
|
3
19
|
## 9.0.0 (2021-05-27)
|
|
4
20
|
|
|
5
21
|
- Backported settings from `xo`
|
package/browser.js
CHANGED
package/index.js
CHANGED
|
@@ -63,28 +63,25 @@ module.exports = {
|
|
|
63
63
|
'always',
|
|
64
64
|
{
|
|
65
65
|
ignorePackages: true,
|
|
66
|
-
// TypeScript doesn't yet support using extensions and fails with error TS2691.
|
|
67
|
-
pattern: {
|
|
68
|
-
ts: 'never',
|
|
69
|
-
tsx: 'never'
|
|
70
|
-
}
|
|
71
66
|
}
|
|
72
67
|
],
|
|
73
68
|
'import/first': 'error',
|
|
69
|
+
'import/named': 'error',
|
|
74
70
|
'import/namespace': [
|
|
75
71
|
'error',
|
|
76
72
|
{
|
|
77
|
-
allowComputed: true
|
|
73
|
+
allowComputed: true,
|
|
78
74
|
}
|
|
79
75
|
],
|
|
76
|
+
'import/newline-after-import': 'error',
|
|
80
77
|
'import/no-absolute-path': 'error',
|
|
81
78
|
'import/no-self-import': 'error',
|
|
82
79
|
'import/no-cycle': [
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
'error',
|
|
81
|
+
{
|
|
82
|
+
ignoreExternal: true,
|
|
83
|
+
}
|
|
84
|
+
],
|
|
88
85
|
'import/no-useless-path-segments': 'error',
|
|
89
86
|
'import/no-webpack-loader-syntax': 'error',
|
|
90
87
|
'import/no-amd': 'error',
|
|
@@ -114,17 +111,17 @@ module.exports = {
|
|
|
114
111
|
'import/no-named-default': 'error',
|
|
115
112
|
|
|
116
113
|
// Promise
|
|
117
|
-
'promise/prefer-await-to-then': 'error',
|
|
118
|
-
'promise/param-names': 'error',
|
|
119
|
-
'promise/no-return-wrap': [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
],
|
|
125
|
-
'promise/no-new-statics': 'error',
|
|
126
|
-
'promise/no-return-in-finally': 'error',
|
|
127
|
-
'promise/valid-params': 'error',
|
|
114
|
+
// 'promise/prefer-await-to-then': 'error',
|
|
115
|
+
// 'promise/param-names': 'error',
|
|
116
|
+
// 'promise/no-return-wrap': [
|
|
117
|
+
// 'error',
|
|
118
|
+
// {
|
|
119
|
+
// allowReject: true
|
|
120
|
+
// }
|
|
121
|
+
// ],
|
|
122
|
+
// 'promise/no-new-statics': 'error',
|
|
123
|
+
// 'promise/no-return-in-finally': 'error',
|
|
124
|
+
// 'promise/valid-params': 'error',
|
|
128
125
|
|
|
129
126
|
// Unicorn
|
|
130
127
|
'unicorn/consistent-function-scoping': 'off',
|
|
@@ -139,7 +136,6 @@ module.exports = {
|
|
|
139
136
|
'unicorn/no-process-exit': 'error',
|
|
140
137
|
'no-process-exit': 'off',
|
|
141
138
|
'unicorn/prefer-flat-map': 'off',
|
|
142
|
-
'unicorn/prefer-module': 'off',
|
|
143
139
|
'unicorn/prevent-abbreviations': [
|
|
144
140
|
'error',
|
|
145
141
|
{
|
|
@@ -161,7 +157,7 @@ module.exports = {
|
|
|
161
157
|
array: true
|
|
162
158
|
},
|
|
163
159
|
blacklist: {
|
|
164
|
-
|
|
160
|
+
exclude: true
|
|
165
161
|
},
|
|
166
162
|
e: {
|
|
167
163
|
error: true,
|
|
@@ -229,7 +225,7 @@ module.exports = {
|
|
|
229
225
|
value: true
|
|
230
226
|
},
|
|
231
227
|
whitelist: {
|
|
232
|
-
|
|
228
|
+
include: true
|
|
233
229
|
}
|
|
234
230
|
},
|
|
235
231
|
allowList: {
|
package/node.js
CHANGED
|
@@ -11,7 +11,7 @@ module.exports = {
|
|
|
11
11
|
env: {
|
|
12
12
|
es6: true,
|
|
13
13
|
mocha: true,
|
|
14
|
-
node: true
|
|
14
|
+
node: true,
|
|
15
15
|
},
|
|
16
16
|
rules: {
|
|
17
17
|
// Node
|
|
@@ -35,7 +35,7 @@ module.exports = {
|
|
|
35
35
|
'node/no-deprecated-api': 'error',
|
|
36
36
|
'node/prefer-global/buffer': [
|
|
37
37
|
'error',
|
|
38
|
-
'
|
|
38
|
+
'never'
|
|
39
39
|
],
|
|
40
40
|
'node/prefer-global/console': [
|
|
41
41
|
'error',
|
|
@@ -43,7 +43,7 @@ module.exports = {
|
|
|
43
43
|
],
|
|
44
44
|
'node/prefer-global/process': [
|
|
45
45
|
'error',
|
|
46
|
-
'
|
|
46
|
+
'never'
|
|
47
47
|
],
|
|
48
48
|
'node/prefer-global/text-decoder': [
|
|
49
49
|
'error',
|
|
@@ -67,10 +67,11 @@ module.exports = {
|
|
|
67
67
|
'error',
|
|
68
68
|
{
|
|
69
69
|
grouping: true,
|
|
70
|
-
allowCall: true
|
|
70
|
+
allowCall: true,
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
73
|
'node/no-new-require': 'error',
|
|
74
74
|
'node/no-path-concat': 'error',
|
|
75
|
+
'node/no-unsupported-features/es-syntax': 'off',
|
|
75
76
|
}
|
|
76
77
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-touch4it",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "ESLint configuration for ES6+ projects based on XO",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
7
|
+
"node": ">=12"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -40,23 +40,23 @@
|
|
|
40
40
|
"main": "index.js",
|
|
41
41
|
"scripts": {
|
|
42
42
|
"format-package": "format-package -w",
|
|
43
|
-
"test": "npx eslint
|
|
43
|
+
"test": "npx eslint@8"
|
|
44
44
|
},
|
|
45
45
|
"maintainers": [
|
|
46
46
|
"Viktor Sulak <sulak@touch4it.com>"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"eslint-config-xo": "^0.
|
|
50
|
-
"eslint-plugin-ava": "^
|
|
49
|
+
"eslint-config-xo": "^0.39.0",
|
|
50
|
+
"eslint-plugin-ava": "^13.1.0",
|
|
51
51
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
52
|
-
"eslint-plugin-import": "^2.
|
|
53
|
-
"eslint-plugin-mocha": "^
|
|
52
|
+
"eslint-plugin-import": "^2.24.0",
|
|
53
|
+
"eslint-plugin-mocha": "^10.0.3",
|
|
54
54
|
"eslint-plugin-node": "^11.1.0",
|
|
55
|
-
"eslint-plugin-promise": "^
|
|
56
|
-
"eslint-plugin-unicorn": "^
|
|
55
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
56
|
+
"eslint-plugin-unicorn": "^39.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"eslint": ">=
|
|
59
|
+
"eslint": ">=8 <9"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"format-package": "^6.1.0"
|