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

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/README.md CHANGED
@@ -8,7 +8,7 @@ ESLint configuration file used on my personal website ([w0s.jp](https://github.c
8
8
  ## Base rules & plugins
9
9
 
10
10
  - [eslint:recommended](https://eslint.org/docs/latest/user-guide/configuring/configuration-files#using-eslintrecommended)
11
- - [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import)
11
+ - [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import):recommended
12
12
  - [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc):recommended
13
13
 
14
14
  ### TypeScript
@@ -27,7 +27,6 @@ export default [
27
27
  ...w0sConfig,
28
28
  {
29
29
  // other options
30
- }
30
+ },
31
31
  ];
32
-
33
32
  ```
package/eslint.config.js CHANGED
@@ -2,10 +2,13 @@
2
2
 
3
3
  import pluginJsdoc from 'eslint-plugin-jsdoc';
4
4
  import globals from 'globals';
5
+ // eslint-disable-next-line import/no-unresolved
5
6
  import tseslint from 'typescript-eslint';
6
7
  import { FlatCompat } from '@eslint/eslintrc';
7
8
  import eslintJs from '@eslint/js';
9
+ // eslint-disable-next-line import/no-unresolved
8
10
  import pluginTypeScript from '@typescript-eslint/eslint-plugin';
11
+ // eslint-disable-next-line import/no-unresolved
9
12
  import parserTypeScript from '@typescript-eslint/parser';
10
13
  import configEslintLayoutFormatting from './rules/eslint/layout&formatting.js';
11
14
  import configEslintPossibleProblems from './rules/eslint/possible-problems.js';
@@ -62,14 +65,7 @@ export default tseslint.config(
62
65
  ...pluginJsdoc.configs['flat/recommended-typescript'].rules,
63
66
  'dot-notation': 'off',
64
67
  'import/no-unresolved': 'off',
65
- '@typescript-eslint/dot-notation': 'off',
66
68
  '@typescript-eslint/no-extraneous-class': 'off',
67
- '@typescript-eslint/no-non-null-assertion': 'off',
68
- '@typescript-eslint/no-unsafe-argument': 'off',
69
- '@typescript-eslint/no-unsafe-assignment': 'off',
70
- '@typescript-eslint/no-unsafe-call': 'off',
71
- '@typescript-eslint/no-unsafe-member-access': 'off',
72
- '@typescript-eslint/no-unsafe-return': 'off',
73
69
  '@typescript-eslint/strict-boolean-expressions': [
74
70
  'error',
75
71
  {
@@ -78,38 +74,6 @@ export default tseslint.config(
78
74
  ],
79
75
  },
80
76
  },
81
- {
82
- files: ['**/*.d.ts'],
83
- rules: {
84
- 'no-use-before-define': 'off',
85
- 'no-var': 'off',
86
- 'vars-on-top': 'off',
87
- '@typescript-eslint/no-explicit-any': 'off',
88
- },
89
- },
90
- {
91
- files: ['**/*.test.ts', '**/*.test.js'],
92
- rules: {
93
- 'no-new': 'off',
94
- 'no-tabs': 'off',
95
- 'no-unused-expressions': 'off',
96
- },
97
- },
98
- {
99
- files: ['**/*.test.ts'],
100
- rules: {
101
- '@typescript-eslint/ban-ts-comment': 'off',
102
- '@typescript-eslint/no-non-null-assertion': 'off',
103
- },
104
- },
105
- {
106
- files: ['**/*.test.js'],
107
- rules: {
108
- 'import/no-extraneous-dependencies': 'off',
109
- 'import/no-named-as-default': 'off',
110
- 'import/no-named-as-default-member': 'off',
111
- },
112
- },
113
77
  {
114
78
  files: ['**/*.config.js'],
115
79
  rules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w0s/eslint-config",
3
- "version": "7.0.0-rc.2",
3
+ "version": "7.0.0-rc.4",
4
4
  "description": "ESLint configuration file used on w0s.jp",
5
5
  "keywords": [
6
6
  "eslint",
@@ -21,20 +21,21 @@
21
21
  },
22
22
  "scripts": {
23
23
  "test": "node __tests__/index.test.js",
24
- "lint": "eslint eslint.config.js --rule {'import/no-unresolved':'off'}"
24
+ "lint": "eslint __tests__/*.js rules/**/*.js eslint.config.js"
25
25
  },
26
26
  "dependencies": {
27
27
  "@eslint/eslintrc": "^3.1.0",
28
28
  "@eslint/js": "^8.57.0",
29
- "@typescript-eslint/eslint-plugin": "^7.17.0",
30
- "@typescript-eslint/parser": "^7.17.0",
29
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
30
+ "@typescript-eslint/parser": "^7.18.0",
31
31
  "eslint-plugin-import": "^2.29.1",
32
- "eslint-plugin-jsdoc": "^48.8.3",
32
+ "eslint-plugin-jsdoc": "^48.9.2",
33
33
  "globals": "^15.8.0",
34
- "typescript-eslint": "^7.17.0"
34
+ "typescript-eslint": "^7.18.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/eslint": "^8.56.11",
38
+ "@types/node": "^22.0.0",
38
39
  "eslint": "^8.57.0"
39
40
  },
40
41
  "peerDependencies": {
package/rules/import.js CHANGED
@@ -17,8 +17,8 @@ export default {
17
17
  },
18
18
  ],
19
19
  'import/no-mutable-exports': 'error',
20
- 'import/no-named-as-default': 'off', // ✅ TODO: parserPath or languageOptions.parser is required!
21
- 'import/no-named-as-default-member': 'off', // ✅ TODO: parserPath or languageOptions.parser is required!
20
+ 'import/no-named-as-default': 'off', // ✅ TODO: parserPath or languageOptions.parser is required! / 有効にする際は *.test.js での無効化を検討
21
+ 'import/no-named-as-default-member': 'off', // ✅ TODO: parserPath or languageOptions.parser is required! / 有効にする際は *.test.js での無効化を検討
22
22
  // import/no-unused-modules
23
23
 
24
24
  /* Module systems */