@shgysk8zer0/eslint-config 1.0.6 → 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 +5 -0
- package/config.cjs +8 -8
- package/config.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
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$2 = {
|
|
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$
|
|
52
|
+
browser: browser$2,
|
|
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$
|
|
62
|
+
const browser$1 = {
|
|
63
63
|
ecmaVersion: 'latest',
|
|
64
64
|
sourceType: 'module',
|
|
65
|
-
globals: browser$
|
|
65
|
+
globals: browser$2,
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
var languageOptions = /*#__PURE__*/Object.freeze({
|
|
69
69
|
__proto__: null,
|
|
70
|
-
browser: browser$
|
|
70
|
+
browser: browser$1,
|
|
71
71
|
node: node$1
|
|
72
72
|
});
|
|
73
73
|
|
|
@@ -84,15 +84,15 @@ const rules = {
|
|
|
84
84
|
|
|
85
85
|
var nodeConfig = (config = {}) => ({ rules, languageOptions: node$1, ...config });
|
|
86
86
|
|
|
87
|
-
var
|
|
87
|
+
var browserConfig = (config = {}) => ({ rules, languageOptions: browser$1, ...config });
|
|
88
88
|
|
|
89
89
|
const ignoreFile = compat.includeIgnoreFile(`${process.cwd()}/.gitignore`);
|
|
90
90
|
|
|
91
91
|
const node = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] }, nodeConfig(config)];
|
|
92
|
-
const browser = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] },
|
|
92
|
+
const browser = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] }, browserConfig(config)];
|
|
93
93
|
|
|
94
94
|
exports.browser = browser;
|
|
95
|
-
exports.browserConfig =
|
|
95
|
+
exports.browserConfig = browserConfig;
|
|
96
96
|
exports.globals = globals;
|
|
97
97
|
exports.ignoreFile = ignoreFile;
|
|
98
98
|
exports.languageOptions = languageOptions;
|
package/config.js
CHANGED
|
@@ -6,5 +6,5 @@ export { rules } from './rules.js';
|
|
|
6
6
|
export * as globals from './globals.js';
|
|
7
7
|
export * as languageOptions from './languageOptions.js';
|
|
8
8
|
export const node = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] }, nodeConfig(config)];
|
|
9
|
-
export const browser = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] },
|
|
9
|
+
export const browser = ({ ignores = [], ...config } = {}) => [{ ignores: [...ignoreFile.ignores, ...ignores] }, browserConfig(config)];
|
|
10
10
|
export { ignoreFile, nodeConfig, browserConfig };
|