@origin-1/eslint-config 0.1.0 → 0.2.0

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/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './lib/create-config';
1
+ export * from './lib/create-config.js';
@@ -14,7 +14,15 @@ function createBaseConfig(configData) {
14
14
  const { env, parser, parserOptions, plugins: overridePlugins, rules: overrideRules } = createBaseOverride(configData);
15
15
  plugins.push(...overridePlugins);
16
16
  Object.assign(rules, overrideRules);
17
- const baseConfig = { env, parser, parserOptions, plugins, reportUnusedDisableDirectives: true, rules };
17
+ const baseConfig = {
18
+ env,
19
+ globals: configData.globals,
20
+ parser,
21
+ parserOptions,
22
+ plugins,
23
+ reportUnusedDisableDirectives: true,
24
+ rules,
25
+ };
18
26
  return baseConfig;
19
27
  }
20
28
  exports.createBaseConfig = createBaseConfig;
@@ -137,8 +145,8 @@ function createConfig(...configDataList) {
137
145
  exports.createConfig = createConfig;
138
146
  function createOverride(configData) {
139
147
  const baseOverride = createBaseOverride(configData);
140
- const { excludedFiles, files } = configData;
141
- const override = { ...baseOverride, excludedFiles, files };
148
+ const { excludedFiles, files, globals } = configData;
149
+ const override = { ...baseOverride, excludedFiles, files, globals };
142
150
  return override;
143
151
  }
144
152
  function findRuleEntry(versionedList, jsVersion, tsVersion) {
package/lib/rules.js CHANGED
@@ -442,11 +442,11 @@ exports.RULES = {
442
442
  'no-exports-assign': 'error',
443
443
  'no-extraneous-import': jsts('error', 'off'),
444
444
  'no-extraneous-require': 'error',
445
- 'no-missing-import': 'off',
446
- 'no-missing-require': 'off',
445
+ 'no-missing-import': 'error',
446
+ 'no-missing-require': 'error',
447
447
  'no-unpublished-bin': 'error',
448
448
  'no-unpublished-import': 'error',
449
- 'no-unpublished-require': 'off',
449
+ 'no-unpublished-require': 'error',
450
450
  'no-unsupported-features/es-builtins': 'off',
451
451
  'no-unsupported-features/es-syntax': 'off',
452
452
  'no-unsupported-features/node-builtins': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@origin-1/eslint-config",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "ESLint configuration generator with origin-1 presets",
5
5
  "homepage": "https://github.com/origin-1/eslint-config#readme",
6
6
  "license": "ISC",