@w0s/eslint-config 7.3.1 → 8.0.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.
package/README.md CHANGED
@@ -22,7 +22,7 @@ ESLint configuration file used on my personal website ([`w0s.jp`](https://github
22
22
  ```javascript
23
23
  import w0sConfig from '@w0s/eslint-config';
24
24
 
25
- /** @type {import("eslint").Linter.FlatConfig[]} */
25
+ /** @type {import("eslint").Linter.Config[]} */
26
26
  export default [
27
27
  ...w0sConfig,
28
28
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w0s/eslint-config",
3
- "version": "7.3.1",
3
+ "version": "8.0.0",
4
4
  "description": "ESLint configuration file used on `w0s.jp`",
5
5
  "keywords": [
6
6
  "eslint",
@@ -24,19 +24,18 @@
24
24
  "lint": "eslint __tests__/*.js rules/**/*.js eslint.config.js"
25
25
  },
26
26
  "dependencies": {
27
- "@eslint/js": "^8.57.0",
28
- "eslint-plugin-import": "^2.30.0",
29
- "eslint-plugin-jsdoc": "^50.2.2",
30
- "globals": "^15.9.0",
31
- "typescript-eslint": "^8.5.0"
27
+ "@eslint/js": "^9.12.0",
28
+ "eslint-plugin-import": "^2.31.0",
29
+ "eslint-plugin-jsdoc": "^50.3.1",
30
+ "globals": "^15.10.0",
31
+ "typescript-eslint": "^8.8.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@types/eslint": "^8.56.11",
35
- "@types/node": "^22.5.4",
36
- "eslint": "^8.57.0"
34
+ "@types/node": "^22.7.4",
35
+ "eslint": "^9.12.0"
37
36
  },
38
37
  "peerDependencies": {
39
- "eslint": "^8.57.0"
38
+ "eslint": "^9.12.0"
40
39
  },
41
40
  "publishConfig": {
42
41
  "access": "public"
@@ -1,6 +1,6 @@
1
1
  // @ts-check
2
2
 
3
- /** @type {import("eslint").Linter.FlatConfig} */
3
+ /** @type {import("eslint").Linter.Config} */
4
4
  export default {
5
5
  rules: {
6
6
  'line-comment-position': [
@@ -1,6 +1,6 @@
1
1
  // @ts-check
2
2
 
3
- /** @type {import("eslint").Linter.FlatConfig} */
3
+ /** @type {import("eslint").Linter.Config} */
4
4
  export default {
5
5
  rules: {
6
6
  'array-callback-return': [
@@ -1,6 +1,6 @@
1
1
  // @ts-check
2
2
 
3
- /** @type {import("eslint").Linter.FlatConfig} */
3
+ /** @type {import("eslint").Linter.Config} */
4
4
  export default {
5
5
  rules: {
6
6
  'arrow-body-style': 'error', // eslint-config-airbnb-base@15.0.0; es6
package/rules/import.js CHANGED
@@ -1,14 +1,14 @@
1
1
  // @ts-check
2
2
  /* eslint-disable jsdoc/lines-before-block */
3
3
 
4
- /** @type {import("eslint").Linter.FlatConfig} */
4
+ /** @type {import("eslint").Linter.Config} */
5
5
  export default {
6
6
  rules: {
7
7
  /**
8
8
  * Helpful warnings
9
9
  */
10
10
  /* ✅ import/export */
11
- /* import/no-deprecated TODO: parserPath or languageOptions.parser is required! */
11
+ 'import/no-deprecated': 'error',
12
12
  'import/no-empty-named-blocks': 'error',
13
13
  'import/no-extraneous-dependencies': [
14
14
  'error',
@@ -20,8 +20,8 @@ export default {
20
20
  },
21
21
  ],
22
22
  'import/no-mutable-exports': 'error',
23
- 'import/no-named-as-default': 'off', // ✅ TODO: parserPath or languageOptions.parser is required! / 有効にする際は *.test.js での無効化を検討
24
- 'import/no-named-as-default-member': 'off', // ✅ TODO: parserPath or languageOptions.parser is required! / 有効にする際は *.test.js での無効化を検討
23
+ /* ✅ import/no-named-as-default */
24
+ /* ✅ import/no-named-as-default-member */
25
25
  /* import/no-unused-modules */
26
26
 
27
27
  /**
@@ -36,9 +36,9 @@ export default {
36
36
  /**
37
37
  * Static analysis
38
38
  */
39
- 'import/default': 'off', // ✅ TODO: parserPath or languageOptions.parser is required!
39
+ /* ✅ import/default */
40
40
  /* ✅ import/named */
41
- 'import/namespace': 'off', // ✅ TODO: parserPath or languageOptions.parser is required!
41
+ /* ✅ import/namespace */
42
42
  'import/no-absolute-path': 'error',
43
43
  /* import/no-cycle ⚠ This rule is comparatively computationally expensive */
44
44
  /* import/no-dynamic-require */
package/rules/jsdoc.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @ts-check
2
2
 
3
- /** @type {import("eslint").Linter.FlatConfig} */
3
+ /** @type {import("eslint").Linter.Config} */
4
4
  export default {
5
5
  rules: {
6
6
  'jsdoc/lines-before-block': 'warn',