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

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/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';
@@ -78,38 +81,6 @@ export default tseslint.config(
78
81
  ],
79
82
  },
80
83
  },
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
84
  {
114
85
  files: ['**/*.config.js'],
115
86
  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.3",
4
4
  "description": "ESLint configuration file used on w0s.jp",
5
5
  "keywords": [
6
6
  "eslint",
@@ -21,7 +21,7 @@
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 eslint.config.js"
25
25
  },
26
26
  "dependencies": {
27
27
  "@eslint/eslintrc": "^3.1.0",
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 */