@shgysk8zer0/eslint-config 1.0.5 → 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 CHANGED
@@ -7,6 +7,11 @@ 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
+
10
15
  ## [v1.0.5] - 2026-02-18
11
16
 
12
17
  ### Changed
package/browser.cjs CHANGED
@@ -54,6 +54,6 @@ const rules = {
54
54
  'no-unused-vars': 'error',
55
55
  };
56
56
 
57
- var browser = ({ ...config } = {}) => ({ rules, languageOptions: browser$1, ...config });
57
+ var browser = (config = {}) => ({ rules, languageOptions: browser$1, ...config });
58
58
 
59
59
  module.exports = browser;
package/browser.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { browser as languageOptions} from './languageOptions.js';
2
2
  import { rules } from './rules.js';
3
3
 
4
- export default ({ ...config } = {}) => ({ rules, languageOptions, ...config });
4
+ export default (config = {}) => ({ rules, languageOptions, ...config });
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$2 = {
7
+ const browser$3 = {
8
8
  AggregateError: false,
9
9
  ElementInternals: false,
10
10
  Iterator: false,
@@ -49,7 +49,7 @@ const node$2 = {
49
49
 
50
50
  var globals = /*#__PURE__*/Object.freeze({
51
51
  __proto__: null,
52
- browser: browser$2,
52
+ browser: browser$3,
53
53
  node: node$2
54
54
  });
55
55
 
@@ -59,15 +59,15 @@ const node$1 = {
59
59
  globals: node$2,
60
60
  };
61
61
 
62
- const browser$1 = {
62
+ const browser$2 = {
63
63
  ecmaVersion: 'latest',
64
64
  sourceType: 'module',
65
- globals: browser$2,
65
+ globals: browser$3,
66
66
  };
67
67
 
68
68
  var languageOptions = /*#__PURE__*/Object.freeze({
69
69
  __proto__: null,
70
- browser: browser$1,
70
+ browser: browser$2,
71
71
  node: node$1
72
72
  });
73
73
 
@@ -82,17 +82,17 @@ const rules = {
82
82
  'no-unused-vars': 'error',
83
83
  };
84
84
 
85
- var nodeConfig = ({ ...config } = {}) => ({ rules, languageOptions: node$1, ...config });
85
+ var nodeConfig = (config = {}) => ({ rules, languageOptions: node$1, ...config });
86
86
 
87
- var browserConfig = ({ ...config } = {}) => ({ rules, languageOptions: browser$1, ...config });
87
+ var browser$1 = (config = {}) => ({ rules, languageOptions: browser$2, ...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] }, nodeConfig(config)];
93
93
 
94
94
  exports.browser = browser;
95
- exports.browserConfig = browserConfig;
95
+ exports.browserConfig = browser$1;
96
96
  exports.globals = globals;
97
97
  exports.ignoreFile = ignoreFile;
98
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, browserConfig(config)];
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/node.cjs CHANGED
@@ -37,6 +37,6 @@ const rules = {
37
37
  'no-unused-vars': 'error',
38
38
  };
39
39
 
40
- var node = ({ ...config } = {}) => ({ rules, languageOptions: node$1, ...config });
40
+ var node = (config = {}) => ({ rules, languageOptions: node$1, ...config });
41
41
 
42
42
  module.exports = node;
package/node.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { node as languageOptions} from './languageOptions.js';
2
2
  import { rules } from './rules.js';
3
3
 
4
- export default ({ ...config } = {}) => ({ rules, languageOptions, ...config });
4
+ export default (config = {}) => ({ rules, languageOptions, ...config });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shgysk8zer0/eslint-config",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": " A shared ESLint config",
5
5
  "keywords": [
6
6
  "eslint",