@soleil-se/eslint-config 6.2.4 → 6.2.6
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 +9 -0
- package/node-config.js +11 -1
- package/package.json +1 -1
- package/rules/js/imports.js +1 -1
- package/typescript.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ All changes in this repository are noted here.
|
|
|
7
7
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
8
8
|
and the project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
9
9
|
|
|
10
|
+
## [6.2.6] - 2025-05-23
|
|
11
|
+
|
|
12
|
+
* Add node globals to node config.
|
|
13
|
+
* Turn off `no-console` and `no-process-exit` in node config.
|
|
14
|
+
|
|
15
|
+
## [6.2.5] - 2025-05-23
|
|
16
|
+
|
|
17
|
+
* Put types first in the import sort order.
|
|
18
|
+
|
|
10
19
|
## [6.2.4] - 2025-05-23
|
|
11
20
|
|
|
12
21
|
* Add import settings for typescript config.
|
package/node-config.js
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
|
+
import globals from 'globals';
|
|
1
2
|
import base from './config/base.js';
|
|
2
3
|
|
|
3
4
|
export default [
|
|
4
5
|
...base(),
|
|
5
6
|
{
|
|
7
|
+
name: 'soleil/node',
|
|
8
|
+
languageOptions: {
|
|
9
|
+
ecmaVersion: 'latest',
|
|
10
|
+
sourceType: 'module',
|
|
11
|
+
globals: globals.node,
|
|
12
|
+
},
|
|
6
13
|
rules: {
|
|
7
14
|
'import/extensions': ['error', 'ignorePackages', {
|
|
8
15
|
js: 'always',
|
|
9
16
|
}],
|
|
17
|
+
'no-console': 0,
|
|
18
|
+
'no-process-exit': 0,
|
|
10
19
|
},
|
|
11
|
-
}
|
|
20
|
+
},
|
|
21
|
+
];
|
package/package.json
CHANGED
package/rules/js/imports.js
CHANGED
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
// ensure absolute imports are above relative imports and that unassigned imports are ignored
|
|
112
112
|
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/order.md
|
|
113
113
|
// TODO: enforce a stricter convention in module import order?
|
|
114
|
-
'import/order': ['error', { groups: [['builtin', 'external', 'internal']] }],
|
|
114
|
+
'import/order': ['error', { groups: [['type', 'builtin', 'external', 'internal']] }],
|
|
115
115
|
|
|
116
116
|
// Require a newline after the last import/require in a group
|
|
117
117
|
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
|