@ornikar/eslint-config 17.0.0 → 18.1.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 +35 -0
- package/_shared.js +3 -7
- package/package.json +6 -7
- package/rules/unicorn.js +4 -1
- package/utils.js +5 -0
- package/rules/filenames.js +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
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.1.0](https://github.com/ornikar/eslint-configs/compare/v18.0.0...v18.1.0) (2022-03-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **eslint-config:** enable unicorn/no-useless-fallback-in-spread [no issue] ([#251](https://github.com/ornikar/eslint-configs/issues/251)) ([0ed54ca](https://github.com/ornikar/eslint-configs/commit/0ed54ca201f1de83d69b03472c2b690f4a0e3f7d))
|
|
12
|
+
* prefer-array-some is now in error mode ([#254](https://github.com/ornikar/eslint-configs/issues/254)) ([8596e75](https://github.com/ornikar/eslint-configs/commit/8596e7561b421f9f61464ce0a2249d1131e23423))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [18.0.0](https://github.com/ornikar/eslint-configs/compare/v17.0.0...v18.0.0) (2022-03-01)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### chore
|
|
22
|
+
|
|
23
|
+
* **deps:** update dependency eslint to v8 ([#243](https://github.com/ornikar/eslint-configs/issues/243)) ([0789aee](https://github.com/ornikar/eslint-configs/commit/0789aee18b6a74673d187b3348faef8a792edae9))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **deps:** update dependency eslint-config-airbnb to v19 ([#208](https://github.com/ornikar/eslint-configs/issues/208)) ([89d1da2](https://github.com/ornikar/eslint-configs/commit/89d1da243d6c6e99a836e4164fed38be771536a4))
|
|
29
|
+
* disable naming convention when eslint is not ran from vscode extension [no issue] ([#247](https://github.com/ornikar/eslint-configs/issues/247)) ([b667a47](https://github.com/ornikar/eslint-configs/commit/b667a4778af7645b6d2e4d8f2fabcc375aff3e1a))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### BREAKING CHANGES
|
|
33
|
+
|
|
34
|
+
* **deps:** requires eslint 8
|
|
35
|
+
* **deps:** new rules added by the update of plugins and configs
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
# [17.0.0](https://github.com/ornikar/eslint-configs/compare/v16.5.1...v17.0.0) (2022-01-07)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @ornikar/eslint-config
|
package/_shared.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
extends: [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
'./rules/sort-imports-exports',
|
|
8
|
-
'./rules/filenames',
|
|
9
|
-
'./rules/unicorn',
|
|
10
|
-
].map(require.resolve),
|
|
4
|
+
extends: ['./rules/best-practices', './rules/style', './rules/sort-imports-exports', './rules/unicorn'].map(
|
|
5
|
+
require.resolve,
|
|
6
|
+
),
|
|
11
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ornikar/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.1.0",
|
|
4
4
|
"description": "eslint config files",
|
|
5
5
|
"repository": "ornikar/eslint-configs",
|
|
6
6
|
"main": "index.js",
|
|
@@ -12,22 +12,21 @@
|
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"eslint-config-airbnb-base": "^
|
|
15
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
16
16
|
"eslint-config-prettier": "^8.2.0",
|
|
17
|
-
"eslint-plugin-
|
|
18
|
-
"eslint-plugin-import": "^2.22.1",
|
|
17
|
+
"eslint-plugin-import": "^2.25.4",
|
|
19
18
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
20
19
|
"eslint-plugin-node": "^11.1.0",
|
|
21
20
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
22
21
|
"eslint-plugin-unicorn": "^39.0.0"
|
|
23
22
|
},
|
|
24
23
|
"peerDependencies": {
|
|
25
|
-
"eslint": "^
|
|
24
|
+
"eslint": "^8.9.0",
|
|
26
25
|
"prettier": "^2.2.1"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
|
-
"eslint": "
|
|
28
|
+
"eslint": "8.10.0",
|
|
30
29
|
"prettier": "2.5.1"
|
|
31
30
|
},
|
|
32
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "72efe24a22b80bbae94419a530a8010d2415aa04"
|
|
33
32
|
}
|
package/rules/unicorn.js
CHANGED
|
@@ -191,7 +191,7 @@ const formTree = shallow(tree.find(x => FormWithApiCall(x)).prop('children')());
|
|
|
191
191
|
'unicorn/prefer-date-now': 'error',
|
|
192
192
|
|
|
193
193
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-some.md
|
|
194
|
-
'unicorn/prefer-array-some': '
|
|
194
|
+
'unicorn/prefer-array-some': 'error',
|
|
195
195
|
|
|
196
196
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-default-parameters.md
|
|
197
197
|
'unicorn/prefer-default-parameters': 'error',
|
|
@@ -255,5 +255,8 @@ const formTree = shallow(tree.find(x => FormWithApiCall(x)).prop('children')());
|
|
|
255
255
|
|
|
256
256
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-length-check.md
|
|
257
257
|
'unicorn/no-useless-length-check': 'error',
|
|
258
|
+
|
|
259
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-fallback-in-spread.md
|
|
260
|
+
'unicorn/no-useless-fallback-in-spread': 'error',
|
|
258
261
|
},
|
|
259
262
|
};
|
package/utils.js
ADDED