@w0s/eslint-config 7.0.0-rc.0 → 7.0.0-rc.1

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.
Files changed (2) hide show
  1. package/eslint.config.js +8 -0
  2. package/package.json +2 -1
package/eslint.config.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // @ts-check
2
2
 
3
3
  import pluginJsdoc from 'eslint-plugin-jsdoc';
4
+ import globals from 'globals';
4
5
  import tseslint from 'typescript-eslint';
5
6
  import { FlatCompat } from '@eslint/eslintrc';
6
7
  import eslintJs from '@eslint/js';
@@ -41,6 +42,12 @@ export default tseslint.config(
41
42
  /* TypeScript */
42
43
  ...tseslint.configs.recommended,
43
44
 
45
+ {
46
+ files: ['**/*.js', '**/*.mjs'],
47
+ languageOptions: {
48
+ globals: globals.nodeBuiltin,
49
+ },
50
+ },
44
51
  {
45
52
  files: ['**/*.ts'],
46
53
  languageOptions: {
@@ -54,6 +61,7 @@ export default tseslint.config(
54
61
  ...pluginTypeScript.configs['stylistic-type-checked'].rules,
55
62
  ...pluginJsdoc.configs['flat/recommended-typescript'].rules,
56
63
  'dot-notation': 'off',
64
+ 'import/no-unresolved': 'off',
57
65
  '@typescript-eslint/dot-notation': 'off',
58
66
  '@typescript-eslint/no-extraneous-class': 'off',
59
67
  '@typescript-eslint/no-non-null-assertion': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w0s/eslint-config",
3
- "version": "7.0.0-rc.0",
3
+ "version": "7.0.0-rc.1",
4
4
  "description": "ESLint configuration file used on w0s.jp",
5
5
  "keywords": [
6
6
  "eslint",
@@ -30,6 +30,7 @@
30
30
  "@typescript-eslint/parser": "^7.17.0",
31
31
  "eslint-plugin-import": "^2.29.1",
32
32
  "eslint-plugin-jsdoc": "^48.8.3",
33
+ "globals": "^15.8.0",
33
34
  "typescript-eslint": "^7.17.0"
34
35
  },
35
36
  "devDependencies": {