@ornikar/eslint-config 15.4.0 → 16.2.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/CHANGELOG.md +60 -0
- package/package.json +5 -5
- package/rules/node-override.js +3 -0
- package/rules/unicorn.js +90 -73
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,66 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [16.2.0](https://github.com/ornikar/eslint-configs/compare/v16.1.1...v16.2.0) (2021-12-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* downgrade node requirement [no issue] ([#204](https://github.com/ornikar/eslint-configs/issues/204)) ([a2ee3e0](https://github.com/ornikar/eslint-configs/commit/a2ee3e01d6a135520be4730581e540e6b33da5c9))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [16.0.0](https://github.com/ornikar/eslint-configs/compare/v15.5.1...v16.0.0) (2021-12-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **eslint-config:** really disable unicorn/prefer-at for node [no issue] ([#191](https://github.com/ornikar/eslint-configs/issues/191)) ([26733f2](https://github.com/ornikar/eslint-configs/commit/26733f2e5a10fd5b50539e44189da954383cae23))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### chore
|
|
26
|
+
|
|
27
|
+
* **deps:** update frontend orb to v4 ([#127](https://github.com/ornikar/eslint-configs/issues/127)) ([786c9bb](https://github.com/ornikar/eslint-configs/commit/786c9bbe02613864b5f87e7295a8fdaf42c8b8d7))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* **eslint-config:** enable unicorn/no-new-array [no issue] ([#196](https://github.com/ornikar/eslint-configs/issues/196)) ([f0c4495](https://github.com/ornikar/eslint-configs/commit/f0c4495142ca5acf9ec6636c0fd4b235ce468aa0))
|
|
33
|
+
* **eslint-config:** enable unicorn/prefer-object-from-entries [no issue] ([#197](https://github.com/ornikar/eslint-configs/issues/197)) ([e10edbf](https://github.com/ornikar/eslint-configs/commit/e10edbf686fd05d0d88a7448242c3184c9fdccc3))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### BREAKING CHANGES
|
|
37
|
+
|
|
38
|
+
* **deps:** unicorn/prefer-array-flat-map is enabled. Make sure you have the right polyfills if needed ; requires node >= 14.17.6 ; ; #
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
## [15.5.1](https://github.com/ornikar/eslint-configs/compare/v15.5.0...v15.5.1) (2021-12-02)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
* disable unicorn/prefer-at for node [no issue] ([#182](https://github.com/ornikar/eslint-configs/issues/182)) ([61bc652](https://github.com/ornikar/eslint-configs/commit/61bc6528494aa2af92482d56c2bc06fa94b0dfda))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# [15.5.0](https://github.com/ornikar/eslint-configs/compare/v15.4.0...v15.5.0) (2021-11-22)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Features
|
|
59
|
+
|
|
60
|
+
* set unicorn/prefer-at rule to error ([#173](https://github.com/ornikar/eslint-configs/issues/173)) ([1ab6894](https://github.com/ornikar/eslint-configs/commit/1ab6894a486f7bd7f8b6e172eb0ac41fad37f3ed))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
6
66
|
# [15.4.0](https://github.com/ornikar/eslint-configs/compare/v15.3.0...v15.4.0) (2021-11-15)
|
|
7
67
|
|
|
8
68
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ornikar/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.2.0",
|
|
4
4
|
"description": "eslint config files",
|
|
5
5
|
"repository": "ornikar/eslint-configs",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=
|
|
9
|
+
"node": ">=14.17.5"
|
|
10
10
|
},
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
20
20
|
"eslint-plugin-node": "^11.1.0",
|
|
21
21
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
22
|
-
"eslint-plugin-unicorn": "^
|
|
22
|
+
"eslint-plugin-unicorn": "^39.0.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"eslint": "^7.32.0",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"eslint": "7.32.0",
|
|
30
|
-
"prettier": "2.
|
|
30
|
+
"prettier": "2.5.1"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "02bf5db91f4847a3b3672c67012864ce7f28ac78"
|
|
33
33
|
}
|
package/rules/node-override.js
CHANGED
package/rules/unicorn.js
CHANGED
|
@@ -3,56 +3,55 @@
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
plugins: ['unicorn'],
|
|
5
5
|
rules: {
|
|
6
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/catch-error-name.md
|
|
7
7
|
'unicorn/catch-error-name': ['error', { name: 'err' }],
|
|
8
8
|
|
|
9
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/explicit-length-check.md
|
|
10
10
|
'unicorn/explicit-length-check': 'error',
|
|
11
11
|
|
|
12
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/filename-case.md
|
|
13
13
|
'unicorn/filename-case': 'off',
|
|
14
14
|
|
|
15
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
15
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-abusive-eslint-disable.md
|
|
16
16
|
'unicorn/no-abusive-eslint-disable': 'error',
|
|
17
17
|
|
|
18
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
18
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-process-exit.md
|
|
19
19
|
'unicorn/no-process-exit': 'error',
|
|
20
20
|
|
|
21
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
21
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/throw-new-error.md
|
|
22
22
|
'unicorn/throw-new-error': 'error',
|
|
23
23
|
|
|
24
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
24
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/number-literal-case.md
|
|
25
25
|
'unicorn/number-literal-case': 'error',
|
|
26
26
|
|
|
27
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
27
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/escape-case.md
|
|
28
28
|
'unicorn/escape-case': 'error',
|
|
29
29
|
|
|
30
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
30
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-instanceof-array.md
|
|
31
31
|
'unicorn/no-instanceof-array': 'error',
|
|
32
32
|
|
|
33
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
33
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-new-buffer.md
|
|
34
34
|
'unicorn/no-new-buffer': 'error',
|
|
35
35
|
|
|
36
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
36
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-hex-escape.md
|
|
37
37
|
'unicorn/no-hex-escape': 'error',
|
|
38
38
|
|
|
39
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
39
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/custom-error-definition.md
|
|
40
40
|
'unicorn/custom-error-definition': 'error',
|
|
41
41
|
|
|
42
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
42
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-starts-ends-with.md
|
|
43
43
|
'unicorn/prefer-string-starts-ends-with': 'error',
|
|
44
44
|
|
|
45
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
45
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-type-error.md
|
|
46
46
|
'unicorn/prefer-type-error': 'error',
|
|
47
47
|
|
|
48
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
48
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-keyboard-event-key.md
|
|
49
49
|
'unicorn/prefer-keyboard-event-key': 'off',
|
|
50
50
|
|
|
51
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
52
|
-
|
|
53
|
-
'unicorn/prefer-array-flat-map': 'off',
|
|
51
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat-map.md
|
|
52
|
+
'unicorn/prefer-array-flat-map': 'error',
|
|
54
53
|
|
|
55
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
54
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-callback-reference.md
|
|
56
55
|
/* Can cause issues:
|
|
57
56
|
```
|
|
58
57
|
const formTree = shallow(tree.find(FormWithApiCall).prop('children')());
|
|
@@ -66,52 +65,52 @@ const formTree = shallow(tree.find(x => FormWithApiCall(x)).prop('children')());
|
|
|
66
65
|
*/
|
|
67
66
|
'unicorn/no-array-callback-reference': 'off',
|
|
68
67
|
|
|
69
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
68
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/import-index.md
|
|
70
69
|
'unicorn/import-index': 'error',
|
|
71
70
|
|
|
72
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
71
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/new-for-builtins.md
|
|
73
72
|
'unicorn/new-for-builtins': 'error',
|
|
74
73
|
|
|
75
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
74
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/regex-shorthand.md
|
|
76
75
|
'unicorn/regex-shorthand': 'error',
|
|
77
76
|
|
|
78
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
77
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-spread.md
|
|
79
78
|
'unicorn/prefer-spread': 'error',
|
|
80
79
|
|
|
81
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
80
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/error-message.md
|
|
82
81
|
'unicorn/error-message': 'error',
|
|
83
82
|
|
|
84
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
83
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unsafe-regex.md
|
|
85
84
|
'unicorn/no-unsafe-regex': 'error',
|
|
86
85
|
|
|
87
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
86
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-add-event-listener.md
|
|
88
87
|
'unicorn/prefer-add-event-listener': 'error',
|
|
89
88
|
|
|
90
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
89
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-exponentiation-operator.md
|
|
91
90
|
'unicorn/prefer-exponentiation-operator': 'error',
|
|
92
91
|
|
|
93
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
92
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prevent-abbreviations.md
|
|
94
93
|
'unicorn/prevent-abbreviations': 'off',
|
|
95
94
|
|
|
96
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
95
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-for-loop.md
|
|
97
96
|
'unicorn/no-for-loop': 'off',
|
|
98
97
|
|
|
99
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
98
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-zero-fractions.md
|
|
100
99
|
'unicorn/no-zero-fractions': 'error',
|
|
101
100
|
|
|
102
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
101
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-includes.md
|
|
103
102
|
'unicorn/prefer-includes': 'error',
|
|
104
103
|
|
|
105
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
104
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-text-content.md
|
|
106
105
|
'unicorn/prefer-dom-node-text-content': 'error',
|
|
107
106
|
|
|
108
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
107
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-node-remove.md
|
|
109
108
|
'unicorn/prefer-node-remove': 'error',
|
|
110
109
|
|
|
111
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
110
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-keyword-prefix.md
|
|
112
111
|
'unicorn/no-keyword-prefix': 'off',
|
|
113
112
|
|
|
114
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
113
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/expiring-todo-comments.md
|
|
115
114
|
'unicorn/expiring-todo-comments': [
|
|
116
115
|
'error',
|
|
117
116
|
{
|
|
@@ -119,118 +118,136 @@ const formTree = shallow(tree.find(x => FormWithApiCall(x)).prop('children')());
|
|
|
119
118
|
},
|
|
120
119
|
],
|
|
121
120
|
|
|
122
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
121
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-nested-ternary.md
|
|
123
122
|
'no-nested-ternary': 'off',
|
|
124
123
|
'unicorn/no-nested-ternary': 'error',
|
|
125
124
|
|
|
126
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
125
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-function-scoping.md
|
|
127
126
|
'unicorn/consistent-function-scoping': 'off',
|
|
128
127
|
|
|
129
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
128
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-reflect-apply.md
|
|
130
129
|
'unicorn/prefer-reflect-apply': 'off',
|
|
131
130
|
|
|
132
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
131
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-dataset.md
|
|
133
132
|
'unicorn/prefer-dom-node-dataset': 'error',
|
|
134
133
|
|
|
135
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
134
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-slice.md
|
|
136
135
|
'unicorn/prefer-string-slice': 'error',
|
|
137
136
|
|
|
138
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
137
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-trim-start-end.md
|
|
139
138
|
'unicorn/prefer-string-trim-start-end': 'error',
|
|
140
139
|
|
|
141
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
140
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-negative-index.md
|
|
142
141
|
'unicorn/prefer-negative-index': 'error',
|
|
143
142
|
|
|
144
143
|
/* Decide to enable or not */
|
|
145
144
|
|
|
146
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
145
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-dom-apis.md
|
|
147
146
|
'unicorn/prefer-modern-dom-apis': 'off',
|
|
148
147
|
|
|
149
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
148
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-replace-all.md
|
|
150
149
|
'unicorn/prefer-string-replace-all': 'off',
|
|
151
150
|
|
|
152
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
151
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/string-content.md
|
|
153
152
|
'unicorn/string-content': 'off',
|
|
154
153
|
|
|
155
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
154
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-number-properties.md
|
|
156
155
|
'unicorn/prefer-number-properties': 'off',
|
|
157
156
|
|
|
158
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
157
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-has.md
|
|
159
158
|
'unicorn/prefer-set-has': 'off',
|
|
160
159
|
|
|
161
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
160
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-optional-catch-binding.md
|
|
162
161
|
'unicorn/prefer-optional-catch-binding': 'off',
|
|
163
162
|
|
|
164
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
163
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-undefined.md
|
|
165
164
|
'unicorn/no-useless-undefined': 'off',
|
|
166
165
|
|
|
167
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
166
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-find.md
|
|
168
167
|
'unicorn/prefer-array-find': 'off',
|
|
169
168
|
|
|
170
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
169
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-reduce.md
|
|
171
170
|
'unicorn/no-array-reduce': 'warn',
|
|
172
171
|
|
|
173
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
172
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/import-style.md
|
|
174
173
|
'unicorn/import-style': 'off',
|
|
175
174
|
|
|
176
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
175
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-trunc.md
|
|
177
176
|
'unicorn/prefer-math-trunc': 'off',
|
|
178
177
|
|
|
179
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
178
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/numeric-separators-style.md
|
|
180
179
|
'unicorn/numeric-separators-style': 'off',
|
|
181
180
|
|
|
182
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
181
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-ternary.md
|
|
183
182
|
'unicorn/prefer-ternary': 'off',
|
|
184
183
|
|
|
185
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
184
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-lonely-if.md
|
|
186
185
|
'unicorn/no-lonely-if': 'off',
|
|
187
186
|
|
|
188
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
187
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/empty-brace-spaces.md
|
|
189
188
|
'unicorn/empty-brace-spaces': 'off',
|
|
190
189
|
|
|
191
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
190
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-date-now.md
|
|
192
191
|
'unicorn/prefer-date-now': 'error',
|
|
193
192
|
|
|
194
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
193
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-some.md
|
|
195
194
|
'unicorn/prefer-array-some': 'warn',
|
|
196
195
|
|
|
197
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
196
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-default-parameters.md
|
|
198
197
|
'unicorn/prefer-default-parameters': 'error',
|
|
199
198
|
|
|
200
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
201
|
-
'unicorn/no-new-array': '
|
|
199
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-new-array.md
|
|
200
|
+
'unicorn/no-new-array': 'error',
|
|
202
201
|
|
|
203
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
202
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-index-of.md
|
|
204
203
|
'unicorn/prefer-array-index-of': 'error',
|
|
205
204
|
|
|
206
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
205
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-regexp-test.md
|
|
207
206
|
'unicorn/prefer-regexp-test': 'error',
|
|
208
207
|
|
|
209
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
208
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-destructuring.md
|
|
210
209
|
'unicorn/consistent-destructuring': 'off',
|
|
211
210
|
|
|
212
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
211
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-for-each.md
|
|
213
212
|
'unicorn/no-array-for-each': 'off',
|
|
214
213
|
|
|
215
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
214
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-push-push.md
|
|
216
215
|
'unicorn/no-array-push-push': 'off',
|
|
217
216
|
|
|
218
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
217
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-this-assignment.md
|
|
219
218
|
'unicorn/no-this-assignment': 'off',
|
|
220
219
|
|
|
221
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
220
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-static-only-class.md
|
|
222
221
|
'unicorn/no-static-only-class': 'off',
|
|
223
222
|
|
|
224
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
223
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat.md
|
|
225
224
|
'unicorn/prefer-array-flat': 'off',
|
|
226
225
|
|
|
227
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
226
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-switch.md
|
|
228
227
|
'unicorn/prefer-switch': 'error',
|
|
229
228
|
|
|
230
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
229
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-node-protocol.md
|
|
231
230
|
'unicorn/prefer-node-protocol': 'off',
|
|
232
231
|
|
|
233
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
232
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-module.md
|
|
234
233
|
'unicorn/prefer-module': 'off',
|
|
234
|
+
|
|
235
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-at.md
|
|
236
|
+
'unicorn/prefer-at': 'error',
|
|
237
|
+
|
|
238
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-empty-file.md
|
|
239
|
+
'unicorn/no-empty-file': 'off',
|
|
240
|
+
|
|
241
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-export-from.md
|
|
242
|
+
'unicorn/prefer-export-from': 'off',
|
|
243
|
+
|
|
244
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-code-point.md
|
|
245
|
+
'unicorn/prefer-code-point': 'error',
|
|
246
|
+
|
|
247
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-expression-member.md
|
|
248
|
+
'unicorn/no-await-expression-member': 'off',
|
|
249
|
+
|
|
250
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-from-entries.md
|
|
251
|
+
'unicorn/prefer-object-from-entries': 'error',
|
|
235
252
|
},
|
|
236
253
|
};
|