@shgysk8zer0/eslint-config 1.0.4 → 1.0.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 +11 -0
- package/browser.cjs +6 -2
- package/browser.js +1 -1
- package/config.cjs +18 -11
- package/config.js +2 -2
- package/globals.cjs +7 -0
- package/globals.js +7 -0
- package/languageOptions.cjs +7 -0
- package/node.cjs +5 -2
- package/node.js +1 -1
- package/package.json +6 -4
- package/rules.cjs +1 -1
- package/rules.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [v1.0.6] - 2026-03-02
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Fix setting of `ignores` in config
|
|
14
|
+
|
|
15
|
+
## [v1.0.5] - 2026-02-18
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
- Update for eslint 10
|
|
19
|
+
- Update publishing
|
|
20
|
+
|
|
10
21
|
## [v1.0.4] - 2025-03-27
|
|
11
22
|
|
|
12
23
|
### Added
|
package/browser.cjs
CHANGED
|
@@ -26,6 +26,10 @@ const browser$2 = {
|
|
|
26
26
|
CloseWatcher: false,
|
|
27
27
|
TaskController: false,
|
|
28
28
|
TaskSignal: false,
|
|
29
|
+
navigation: false,
|
|
30
|
+
Signal: false,
|
|
31
|
+
DisposableStack: false,
|
|
32
|
+
AsyncDisposableStack: false,
|
|
29
33
|
...globals.browser,
|
|
30
34
|
};
|
|
31
35
|
|
|
@@ -41,7 +45,7 @@ const browser$1 = {
|
|
|
41
45
|
|
|
42
46
|
const rules = {
|
|
43
47
|
...js.configs.recommended.rules,
|
|
44
|
-
'indent': [2, 'tab', { 'SwitchCase': 1 }],
|
|
48
|
+
'indent': [2, 'tab', { 'SwitchCase': 1, 'ignoredNodes': ['TaggedTemplateExpression'] }],
|
|
45
49
|
'quotes': [2, 'single'],
|
|
46
50
|
'semi': [2, 'always'],
|
|
47
51
|
'no-console': 0,
|
|
@@ -50,6 +54,6 @@ const rules = {
|
|
|
50
54
|
'no-unused-vars': 'error',
|
|
51
55
|
};
|
|
52
56
|
|
|
53
|
-
var browser = (
|
|
57
|
+
var browser = (config = {}) => ({ rules, languageOptions: browser$1, ...config });
|
|
54
58
|
|
|
55
59
|
module.exports = browser;
|
package/browser.js
CHANGED
package/config.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var globals$1 = require('globals');
|
|
|
4
4
|
var js = require('@eslint/js');
|
|
5
5
|
var compat = require('@eslint/compat');
|
|
6
6
|
|
|
7
|
-
const browser$
|
|
7
|
+
const browser$3 = {
|
|
8
8
|
AggregateError: false,
|
|
9
9
|
ElementInternals: false,
|
|
10
10
|
Iterator: false,
|
|
@@ -27,6 +27,10 @@ const browser$2 = {
|
|
|
27
27
|
CloseWatcher: false,
|
|
28
28
|
TaskController: false,
|
|
29
29
|
TaskSignal: false,
|
|
30
|
+
navigation: false,
|
|
31
|
+
Signal: false,
|
|
32
|
+
DisposableStack: false,
|
|
33
|
+
AsyncDisposableStack: false,
|
|
30
34
|
...globals$1.browser,
|
|
31
35
|
};
|
|
32
36
|
|
|
@@ -37,12 +41,15 @@ const node$2 = {
|
|
|
37
41
|
URLPattern: false,
|
|
38
42
|
TaskController: false,
|
|
39
43
|
TaskSignal: false,
|
|
44
|
+
Signal: false,
|
|
45
|
+
DisposableStack: false,
|
|
46
|
+
AsyncDisposableStack: false,
|
|
40
47
|
...globals$1.node,
|
|
41
48
|
};
|
|
42
49
|
|
|
43
50
|
var globals = /*#__PURE__*/Object.freeze({
|
|
44
51
|
__proto__: null,
|
|
45
|
-
browser: browser$
|
|
52
|
+
browser: browser$3,
|
|
46
53
|
node: node$2
|
|
47
54
|
});
|
|
48
55
|
|
|
@@ -52,21 +59,21 @@ const node$1 = {
|
|
|
52
59
|
globals: node$2,
|
|
53
60
|
};
|
|
54
61
|
|
|
55
|
-
const browser$
|
|
62
|
+
const browser$2 = {
|
|
56
63
|
ecmaVersion: 'latest',
|
|
57
64
|
sourceType: 'module',
|
|
58
|
-
globals: browser$
|
|
65
|
+
globals: browser$3,
|
|
59
66
|
};
|
|
60
67
|
|
|
61
68
|
var languageOptions = /*#__PURE__*/Object.freeze({
|
|
62
69
|
__proto__: null,
|
|
63
|
-
browser: browser$
|
|
70
|
+
browser: browser$2,
|
|
64
71
|
node: node$1
|
|
65
72
|
});
|
|
66
73
|
|
|
67
74
|
const rules = {
|
|
68
75
|
...js.configs.recommended.rules,
|
|
69
|
-
'indent': [2, 'tab', { 'SwitchCase': 1 }],
|
|
76
|
+
'indent': [2, 'tab', { 'SwitchCase': 1, 'ignoredNodes': ['TaggedTemplateExpression'] }],
|
|
70
77
|
'quotes': [2, 'single'],
|
|
71
78
|
'semi': [2, 'always'],
|
|
72
79
|
'no-console': 0,
|
|
@@ -75,17 +82,17 @@ const rules = {
|
|
|
75
82
|
'no-unused-vars': 'error',
|
|
76
83
|
};
|
|
77
84
|
|
|
78
|
-
var nodeConfig = (
|
|
85
|
+
var nodeConfig = (config = {}) => ({ rules, languageOptions: node$1, ...config });
|
|
79
86
|
|
|
80
|
-
var
|
|
87
|
+
var browser$1 = (config = {}) => ({ rules, languageOptions: browser$2, ...config });
|
|
81
88
|
|
|
82
89
|
const ignoreFile = compat.includeIgnoreFile(`${process.cwd()}/.gitignore`);
|
|
83
90
|
|
|
84
|
-
const node = config => [ignoreFile, nodeConfig(config)];
|
|
85
|
-
const browser = config => [ignoreFile,
|
|
91
|
+
const node = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] }, nodeConfig(config)];
|
|
92
|
+
const browser = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] }, nodeConfig(config)];
|
|
86
93
|
|
|
87
94
|
exports.browser = browser;
|
|
88
|
-
exports.browserConfig =
|
|
95
|
+
exports.browserConfig = browser$1;
|
|
89
96
|
exports.globals = globals;
|
|
90
97
|
exports.ignoreFile = ignoreFile;
|
|
91
98
|
exports.languageOptions = languageOptions;
|
package/config.js
CHANGED
|
@@ -5,6 +5,6 @@ import { ignoreFile } from './ignoreFile.js';
|
|
|
5
5
|
export { rules } from './rules.js';
|
|
6
6
|
export * as globals from './globals.js';
|
|
7
7
|
export * as languageOptions from './languageOptions.js';
|
|
8
|
-
export const node = config => [ignoreFile, nodeConfig(config)];
|
|
9
|
-
export const browser = config => [ignoreFile,
|
|
8
|
+
export const node = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] }, nodeConfig(config)];
|
|
9
|
+
export const browser = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] }, nodeConfig(config)];
|
|
10
10
|
export { ignoreFile, nodeConfig, browserConfig };
|
package/globals.cjs
CHANGED
|
@@ -25,6 +25,10 @@ const browser = {
|
|
|
25
25
|
CloseWatcher: false,
|
|
26
26
|
TaskController: false,
|
|
27
27
|
TaskSignal: false,
|
|
28
|
+
navigation: false,
|
|
29
|
+
Signal: false,
|
|
30
|
+
DisposableStack: false,
|
|
31
|
+
AsyncDisposableStack: false,
|
|
28
32
|
...globals.browser,
|
|
29
33
|
};
|
|
30
34
|
|
|
@@ -35,6 +39,9 @@ const node = {
|
|
|
35
39
|
URLPattern: false,
|
|
36
40
|
TaskController: false,
|
|
37
41
|
TaskSignal: false,
|
|
42
|
+
Signal: false,
|
|
43
|
+
DisposableStack: false,
|
|
44
|
+
AsyncDisposableStack: false,
|
|
38
45
|
...globals.node,
|
|
39
46
|
};
|
|
40
47
|
|
package/globals.js
CHANGED
|
@@ -23,6 +23,10 @@ export const browser = {
|
|
|
23
23
|
CloseWatcher: false,
|
|
24
24
|
TaskController: false,
|
|
25
25
|
TaskSignal: false,
|
|
26
|
+
navigation: false,
|
|
27
|
+
Signal: false,
|
|
28
|
+
DisposableStack: false,
|
|
29
|
+
AsyncDisposableStack: false,
|
|
26
30
|
...globals.browser,
|
|
27
31
|
};
|
|
28
32
|
|
|
@@ -33,5 +37,8 @@ export const node = {
|
|
|
33
37
|
URLPattern: false,
|
|
34
38
|
TaskController: false,
|
|
35
39
|
TaskSignal: false,
|
|
40
|
+
Signal: false,
|
|
41
|
+
DisposableStack: false,
|
|
42
|
+
AsyncDisposableStack: false,
|
|
36
43
|
...globals.node,
|
|
37
44
|
};
|
package/languageOptions.cjs
CHANGED
|
@@ -25,6 +25,10 @@ const browser$1 = {
|
|
|
25
25
|
CloseWatcher: false,
|
|
26
26
|
TaskController: false,
|
|
27
27
|
TaskSignal: false,
|
|
28
|
+
navigation: false,
|
|
29
|
+
Signal: false,
|
|
30
|
+
DisposableStack: false,
|
|
31
|
+
AsyncDisposableStack: false,
|
|
28
32
|
...globals.browser,
|
|
29
33
|
};
|
|
30
34
|
|
|
@@ -35,6 +39,9 @@ const node$1 = {
|
|
|
35
39
|
URLPattern: false,
|
|
36
40
|
TaskController: false,
|
|
37
41
|
TaskSignal: false,
|
|
42
|
+
Signal: false,
|
|
43
|
+
DisposableStack: false,
|
|
44
|
+
AsyncDisposableStack: false,
|
|
38
45
|
...globals.node,
|
|
39
46
|
};
|
|
40
47
|
|
package/node.cjs
CHANGED
|
@@ -14,6 +14,9 @@ const node$2 = {
|
|
|
14
14
|
URLPattern: false,
|
|
15
15
|
TaskController: false,
|
|
16
16
|
TaskSignal: false,
|
|
17
|
+
Signal: false,
|
|
18
|
+
DisposableStack: false,
|
|
19
|
+
AsyncDisposableStack: false,
|
|
17
20
|
...globals.node,
|
|
18
21
|
};
|
|
19
22
|
|
|
@@ -25,7 +28,7 @@ const node$1 = {
|
|
|
25
28
|
|
|
26
29
|
const rules = {
|
|
27
30
|
...js.configs.recommended.rules,
|
|
28
|
-
'indent': [2, 'tab', { 'SwitchCase': 1 }],
|
|
31
|
+
'indent': [2, 'tab', { 'SwitchCase': 1, 'ignoredNodes': ['TaggedTemplateExpression'] }],
|
|
29
32
|
'quotes': [2, 'single'],
|
|
30
33
|
'semi': [2, 'always'],
|
|
31
34
|
'no-console': 0,
|
|
@@ -34,6 +37,6 @@ const rules = {
|
|
|
34
37
|
'no-unused-vars': 'error',
|
|
35
38
|
};
|
|
36
39
|
|
|
37
|
-
var node = (
|
|
40
|
+
var node = (config = {}) => ({ rules, languageOptions: node$1, ...config });
|
|
38
41
|
|
|
39
42
|
module.exports = node;
|
package/node.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shgysk8zer0/eslint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": " A shared ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -72,9 +72,11 @@
|
|
|
72
72
|
},
|
|
73
73
|
"homepage": "https://github.com/shgysk8zer0/eslint-config#readme",
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@eslint/compat": "^
|
|
75
|
+
"@eslint/compat": "^2.0.2",
|
|
76
|
+
"@eslint/js": "^10.0.1",
|
|
76
77
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
77
|
-
"eslint": "^
|
|
78
|
-
"
|
|
78
|
+
"eslint": "^10.0.0",
|
|
79
|
+
"globals": "^17.3.0",
|
|
80
|
+
"rollup": "^4.57.1"
|
|
79
81
|
}
|
|
80
82
|
}
|
package/rules.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var js = require('@eslint/js');
|
|
|
4
4
|
|
|
5
5
|
const rules = {
|
|
6
6
|
...js.configs.recommended.rules,
|
|
7
|
-
'indent': [2, 'tab', { 'SwitchCase': 1 }],
|
|
7
|
+
'indent': [2, 'tab', { 'SwitchCase': 1, 'ignoredNodes': ['TaggedTemplateExpression'] }],
|
|
8
8
|
'quotes': [2, 'single'],
|
|
9
9
|
'semi': [2, 'always'],
|
|
10
10
|
'no-console': 0,
|
package/rules.js
CHANGED
|
@@ -2,7 +2,7 @@ import js from '@eslint/js';
|
|
|
2
2
|
|
|
3
3
|
export const rules = {
|
|
4
4
|
...js.configs.recommended.rules,
|
|
5
|
-
'indent': [2, 'tab', { 'SwitchCase': 1 }],
|
|
5
|
+
'indent': [2, 'tab', { 'SwitchCase': 1, 'ignoredNodes': ['TaggedTemplateExpression'] }],
|
|
6
6
|
'quotes': [2, 'single'],
|
|
7
7
|
'semi': [2, 'always'],
|
|
8
8
|
'no-console': 0,
|