@naturalcycles/dev-lib 15.4.2 → 15.5.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/cfg/eslint-rules.js +10 -17
- package/cfg/eslint.config.js +1 -1
- package/package.json +3 -3
package/cfg/eslint-rules.js
CHANGED
|
@@ -178,23 +178,16 @@ module.exports = {
|
|
|
178
178
|
},
|
|
179
179
|
],
|
|
180
180
|
'simple-import-sort/exports': 2,
|
|
181
|
-
'import/order':
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
'import/no-
|
|
190
|
-
|
|
191
|
-
// 'import/no-unresolved': 0, // breaks for type-aliases, e.g '@/store'
|
|
192
|
-
'import/no-duplicates': [2, { 'prefer-inline': false }],
|
|
193
|
-
'import/export': 2,
|
|
194
|
-
'import/no-empty-named-blocks': 2,
|
|
195
|
-
'import/no-cycle': 2,
|
|
196
|
-
'import/no-useless-path-segments': 2,
|
|
197
|
-
'import/no-default-export': 2,
|
|
181
|
+
// 'import-x/order': 0, // disabled in favor of `simple-import-sort`
|
|
182
|
+
// 'import-x/namespace': 0, // issues with e.g globby
|
|
183
|
+
// 'import-x/no-unresolved': 0, // breaks for type-aliases, e.g '@/store'
|
|
184
|
+
'import-x/no-anonymous-default-export': 2,
|
|
185
|
+
'import-x/no-duplicates': [2, { 'prefer-inline': false }],
|
|
186
|
+
'import-x/export': 2,
|
|
187
|
+
'import-x/no-empty-named-blocks': 2,
|
|
188
|
+
'import-x/no-cycle': 2,
|
|
189
|
+
'import-x/no-useless-path-segments': 2,
|
|
190
|
+
'import-x/no-default-export': 2,
|
|
198
191
|
'jsdoc/check-alignment': 2,
|
|
199
192
|
// "jsdoc/check-indentation": "error",
|
|
200
193
|
// 'jsdoc/newline-after-description': 2,
|
package/cfg/eslint.config.js
CHANGED
|
@@ -53,7 +53,7 @@ function getConfig() {
|
|
|
53
53
|
return {
|
|
54
54
|
plugins: {
|
|
55
55
|
'@typescript-eslint': tseslint.plugin,
|
|
56
|
-
import: require('eslint-plugin-import'),
|
|
56
|
+
'import-x': require('eslint-plugin-import-x'),
|
|
57
57
|
'unused-imports': require('eslint-plugin-unused-imports'),
|
|
58
58
|
'simple-import-sort': require('eslint-plugin-simple-import-sort'),
|
|
59
59
|
jsdoc: require('eslint-plugin-jsdoc'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/dev-lib",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.5.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepare": "husky",
|
|
6
6
|
"tsn-debug": "tsn testScript.ts",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"@types/yargs": "^16.0.0",
|
|
30
30
|
"eslint": "^9.0.0",
|
|
31
31
|
"eslint-config-prettier": "^9.0.0",
|
|
32
|
-
"eslint-plugin-import": "^
|
|
32
|
+
"eslint-plugin-import-x": "^3.1.0",
|
|
33
33
|
"eslint-plugin-jest": "^28.0.0",
|
|
34
34
|
"eslint-plugin-jsdoc": "^50.0.0",
|
|
35
35
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
36
36
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
37
|
-
"eslint-plugin-unused-imports": "
|
|
37
|
+
"eslint-plugin-unused-imports": "4.0.1",
|
|
38
38
|
"eslint-plugin-vue": "^9.0.0",
|
|
39
39
|
"expect-type": "^0.19.0",
|
|
40
40
|
"globals": "^15.8.0",
|