@ornikar/eslint-config 18.3.0 → 18.6.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/.vscode/settings.json +3 -0
- package/CHANGELOG.md +30 -0
- package/package.json +5 -5
- package/rules/node.js +9 -0
- package/rules/unicorn.js +27 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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
|
+
# [18.6.0](https://github.com/ornikar/eslint-configs/compare/v18.5.0...v18.6.0) (2022-04-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **eslint-config-typescript:** disable node/no-unsupported-features for typescript ([481cf34](https://github.com/ornikar/eslint-configs/commit/481cf34f221138b5c6691dc9031571c34f703651))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [18.5.0](https://github.com/ornikar/eslint-configs/compare/v18.4.0...v18.5.0) (2022-04-26)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **eslint-config:** configure ecmaVersion ([e72397c](https://github.com/ornikar/eslint-configs/commit/e72397c55e328216119048c192fac316ece7c6e8))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [18.4.0](https://github.com/ornikar/eslint-configs/compare/v18.3.0...v18.4.0) (2022-04-22)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @ornikar/eslint-config
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [18.3.0](https://github.com/ornikar/eslint-configs/compare/v18.2.1...v18.3.0) (2022-03-23)
|
|
7
37
|
|
|
8
38
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ornikar/eslint-config",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.6.0",
|
|
4
4
|
"description": "eslint config files",
|
|
5
5
|
"repository": "ornikar/eslint-configs",
|
|
6
6
|
"main": "index.js",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
19
19
|
"eslint-plugin-node": "^11.1.0",
|
|
20
20
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
21
|
-
"eslint-plugin-unicorn": "^
|
|
21
|
+
"eslint-plugin-unicorn": "^42.0.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"eslint": "^8.9.0",
|
|
25
25
|
"prettier": "^2.2.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"eslint": "8.
|
|
29
|
-
"prettier": "2.6.
|
|
28
|
+
"eslint": "8.13.0",
|
|
29
|
+
"prettier": "2.6.2"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "d0cfb5dce199eb6ec58c04a145f68fb46266bc2e"
|
|
32
32
|
}
|
package/rules/node.js
CHANGED
|
@@ -4,6 +4,11 @@ module.exports = {
|
|
|
4
4
|
plugins: ['node'],
|
|
5
5
|
extends: ['plugin:node/recommended', require.resolve('./node-override')],
|
|
6
6
|
|
|
7
|
+
parserOptions: {
|
|
8
|
+
// top level await is introduced in ecmaVersion: 2022 but supported since node 14
|
|
9
|
+
ecmaVersion: 2022,
|
|
10
|
+
},
|
|
11
|
+
|
|
7
12
|
env: {
|
|
8
13
|
browser: false,
|
|
9
14
|
node: true,
|
|
@@ -18,6 +23,10 @@ module.exports = {
|
|
|
18
23
|
{
|
|
19
24
|
files: ['*.mjs'],
|
|
20
25
|
extends: ['plugin:node/recommended-module', require.resolve('./node-override')],
|
|
26
|
+
parserOptions: {
|
|
27
|
+
// top level await is introduced in ecmaVersion: 2022 but supported since node 14
|
|
28
|
+
ecmaVersion: 2022,
|
|
29
|
+
},
|
|
21
30
|
},
|
|
22
31
|
],
|
|
23
32
|
};
|
package/rules/unicorn.js
CHANGED
|
@@ -261,5 +261,32 @@ const formTree = shallow(tree.find(x => FormWithApiCall(x)).prop('children')());
|
|
|
261
261
|
|
|
262
262
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-array-join-separator.md
|
|
263
263
|
'unicorn/require-array-join-separator': 'error',
|
|
264
|
+
|
|
265
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-thenable.md
|
|
266
|
+
'unicorn/no-thenable': 'off',
|
|
267
|
+
|
|
268
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-promise-resolve-reject.md
|
|
269
|
+
'unicorn/no-useless-promise-resolve-reject': 'off',
|
|
270
|
+
|
|
271
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/relative-url-style.md
|
|
272
|
+
'unicorn/relative-url-style': 'off',
|
|
273
|
+
|
|
274
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-json-parse-buffer.md
|
|
275
|
+
'unicorn/prefer-json-parse-buffer': 'off',
|
|
276
|
+
|
|
277
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/text-encoding-identifier-case.md
|
|
278
|
+
'unicorn/text-encoding-identifier-case': 'off',
|
|
279
|
+
|
|
280
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-switch-case.md
|
|
281
|
+
'unicorn/no-useless-switch-case': 'off',
|
|
282
|
+
|
|
283
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-math-apis.md
|
|
284
|
+
'unicorn/prefer-modern-math-apis': 'off',
|
|
285
|
+
|
|
286
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-iife.md
|
|
287
|
+
'unicorn/no-unreadable-iife': 'off',
|
|
288
|
+
|
|
289
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-native-coercion-functions.md
|
|
290
|
+
'unicorn/prefer-native-coercion-functions': 'off',
|
|
264
291
|
},
|
|
265
292
|
};
|