@shgysk8zer0/eslint-config 1.0.5 → 1.0.7
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 +10 -0
- package/browser.cjs +1 -1
- package/browser.js +1 -1
- package/config.cjs +4 -4
- package/config.js +2 -2
- package/node.cjs +1 -1
- package/node.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [v1.0.7] - 2026-03-02
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Export correct environment config
|
|
14
|
+
|
|
15
|
+
## [v1.0.6] - 2026-03-02
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- Fix setting of `ignores` in config
|
|
19
|
+
|
|
10
20
|
## [v1.0.5] - 2026-02-18
|
|
11
21
|
|
|
12
22
|
### Changed
|
package/browser.cjs
CHANGED
|
@@ -54,6 +54,6 @@ const rules = {
|
|
|
54
54
|
'no-unused-vars': 'error',
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
var browser = (
|
|
57
|
+
var browser = (config = {}) => ({ rules, languageOptions: browser$1, ...config });
|
|
58
58
|
|
|
59
59
|
module.exports = browser;
|
package/browser.js
CHANGED
package/config.cjs
CHANGED
|
@@ -82,14 +82,14 @@ const rules = {
|
|
|
82
82
|
'no-unused-vars': 'error',
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
var nodeConfig = (
|
|
85
|
+
var nodeConfig = (config = {}) => ({ rules, languageOptions: node$1, ...config });
|
|
86
86
|
|
|
87
|
-
var browserConfig = (
|
|
87
|
+
var browserConfig = (config = {}) => ({ rules, languageOptions: browser$1, ...config });
|
|
88
88
|
|
|
89
89
|
const ignoreFile = compat.includeIgnoreFile(`${process.cwd()}/.gitignore`);
|
|
90
90
|
|
|
91
|
-
const node = config => [ignoreFile, nodeConfig(config)];
|
|
92
|
-
const browser = config => [ignoreFile, browserConfig(config)];
|
|
91
|
+
const node = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] }, nodeConfig(config)];
|
|
92
|
+
const browser = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] }, browserConfig(config)];
|
|
93
93
|
|
|
94
94
|
exports.browser = browser;
|
|
95
95
|
exports.browserConfig = browserConfig;
|
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, browserConfig(config)];
|
|
8
|
+
export const node = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] }, nodeConfig(config)];
|
|
9
|
+
export const browser = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] }, browserConfig(config)];
|
|
10
10
|
export { ignoreFile, nodeConfig, browserConfig };
|
package/node.cjs
CHANGED
package/node.js
CHANGED