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

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 +18 -4
  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',
@@ -71,7 +79,7 @@ export default tseslint.config(
71
79
  },
72
80
  },
73
81
  {
74
- files: ['**/**.d.ts'],
82
+ files: ['**/*.d.ts'],
75
83
  rules: {
76
84
  'no-use-before-define': 'off',
77
85
  'no-var': 'off',
@@ -80,7 +88,7 @@ export default tseslint.config(
80
88
  },
81
89
  },
82
90
  {
83
- files: ['**/**.test.ts', '**/**.test.js'],
91
+ files: ['**/*.test.ts', '**/*.test.js'],
84
92
  rules: {
85
93
  'no-new': 'off',
86
94
  'no-tabs': 'off',
@@ -88,18 +96,24 @@ export default tseslint.config(
88
96
  },
89
97
  },
90
98
  {
91
- files: ['**/**.test.ts'],
99
+ files: ['**/*.test.ts'],
92
100
  rules: {
93
101
  '@typescript-eslint/ban-ts-comment': 'off',
94
102
  '@typescript-eslint/no-non-null-assertion': 'off',
95
103
  },
96
104
  },
97
105
  {
98
- files: ['**/**.test.js'],
106
+ files: ['**/*.test.js'],
99
107
  rules: {
100
108
  'import/no-extraneous-dependencies': 'off',
101
109
  'import/no-named-as-default': 'off',
102
110
  'import/no-named-as-default-member': 'off',
103
111
  },
104
112
  },
113
+ {
114
+ files: ['**/*.config.js'],
115
+ rules: {
116
+ 'import/no-extraneous-dependencies': 'off',
117
+ },
118
+ },
105
119
  );
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.2",
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": {