@w0s/eslint-config 7.2.0 → 7.3.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.
Files changed (2) hide show
  1. package/eslint.config.js +3 -9
  2. package/package.json +4 -5
package/eslint.config.js CHANGED
@@ -1,10 +1,11 @@
1
1
  // @ts-check
2
2
 
3
+ // @ts-expect-error: ts(1192)
4
+ import pluginImport from 'eslint-plugin-import';
3
5
  import pluginJsdoc from 'eslint-plugin-jsdoc';
4
6
  import globals from 'globals';
5
7
  // eslint-disable-next-line import/no-unresolved
6
8
  import tseslint from 'typescript-eslint';
7
- import { FlatCompat } from '@eslint/eslintrc';
8
9
  import eslintJs from '@eslint/js';
9
10
  import configEslintLayoutFormatting from './rules/eslint/layout&formatting.js';
10
11
  import configEslintPossibleProblems from './rules/eslint/possible-problems.js';
@@ -12,8 +13,6 @@ import configEslintSuggestions from './rules/eslint/suggestions.js';
12
13
  import configImport from './rules/import.js';
13
14
  import configJsdoc from './rules/jsdoc.js';
14
15
 
15
- const compat = new FlatCompat();
16
-
17
16
  export default tseslint.config(
18
17
  {
19
18
  plugins: {
@@ -28,12 +27,7 @@ export default tseslint.config(
28
27
  configEslintLayoutFormatting,
29
28
 
30
29
  /* Plugins */
31
- // @ts-expect-error: ts(2345)
32
- ...compat.plugins('eslint-plugin-import'),
33
- ...compat.config({
34
- plugins: ['eslint-plugin-import'],
35
- extends: 'plugin:import/recommended',
36
- }),
30
+ pluginImport.flatConfigs.recommended,
37
31
  pluginJsdoc.configs['flat/recommended'],
38
32
  configImport,
39
33
  configJsdoc,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w0s/eslint-config",
3
- "version": "7.2.0",
3
+ "version": "7.3.0",
4
4
  "description": "ESLint configuration file used on `w0s.jp`",
5
5
  "keywords": [
6
6
  "eslint",
@@ -24,16 +24,15 @@
24
24
  "lint": "eslint __tests__/*.js rules/**/*.js eslint.config.js"
25
25
  },
26
26
  "dependencies": {
27
- "@eslint/eslintrc": "^3.1.0",
28
27
  "@eslint/js": "^8.57.0",
29
- "eslint-plugin-import": "^2.29.1",
28
+ "eslint-plugin-import": "^2.30.0",
30
29
  "eslint-plugin-jsdoc": "^50.2.2",
31
30
  "globals": "^15.9.0",
32
- "typescript-eslint": "^7.18.0"
31
+ "typescript-eslint": "^8.5.0"
33
32
  },
34
33
  "devDependencies": {
35
34
  "@types/eslint": "^8.56.11",
36
- "@types/node": "^22.4.0",
35
+ "@types/node": "^22.5.4",
37
36
  "eslint": "^8.57.0"
38
37
  },
39
38
  "peerDependencies": {