@w0s/eslint-config 8.0.0 → 8.0.1

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
@@ -1,7 +1,7 @@
1
1
  # eslint-config
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/%40w0s%2Feslint-config.svg)](https://www.npmjs.com/package/@w0s/eslint-config)
4
- [![test status](https://github.com/SaekiTominaga/w0s/actions/workflows/eslint-test.yml/badge.svg)](https://github.com/SaekiTominaga/w0s/actions/workflows/eslint-test.yml)
4
+ [![Workflow status](https://github.com/SaekiTominaga/w0s/actions/workflows/eslint.yml/badge.svg)](https://github.com/SaekiTominaga/w0s/actions/workflows/eslint.yml)
5
5
 
6
6
  ESLint configuration file used on my personal website ([`w0s.jp`](https://github.com/SaekiTominaga/w0s.jp)).
7
7
 
package/eslint.config.js CHANGED
@@ -1,6 +1,4 @@
1
- // @ts-check
2
-
3
- // @ts-expect-error: ts(1192)
1
+ // @ts-expect-error: ts(7016)
4
2
  import pluginImport from 'eslint-plugin-import';
5
3
  import pluginJsdoc from 'eslint-plugin-jsdoc';
6
4
  import globals from 'globals';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w0s/eslint-config",
3
- "version": "8.0.0",
3
+ "version": "8.0.1",
4
4
  "description": "ESLint configuration file used on `w0s.jp`",
5
5
  "keywords": [
6
6
  "eslint",
@@ -21,7 +21,8 @@
21
21
  },
22
22
  "scripts": {
23
23
  "test": "node __tests__/index.test.js",
24
- "lint": "eslint __tests__/*.js rules/**/*.js eslint.config.js"
24
+ "prelint": "tsc",
25
+ "lint": "eslint __tests__/valid/**/*.{js,ts} __tests__/*.test.js rules/**/*.js eslint.config.js"
25
26
  },
26
27
  "dependencies": {
27
28
  "@eslint/js": "^9.12.0",
@@ -31,6 +32,7 @@
31
32
  "typescript-eslint": "^8.8.0"
32
33
  },
33
34
  "devDependencies": {
35
+ "@types/eslint__js": "^8.42.3",
34
36
  "@types/node": "^22.7.4",
35
37
  "eslint": "^9.12.0"
36
38
  },
@@ -1,5 +1,3 @@
1
- // @ts-check
2
-
3
1
  /** @type {import("eslint").Linter.Config} */
4
2
  export default {
5
3
  rules: {
@@ -1,5 +1,3 @@
1
- // @ts-check
2
-
3
1
  /** @type {import("eslint").Linter.Config} */
4
2
  export default {
5
3
  rules: {
@@ -1,5 +1,3 @@
1
- // @ts-check
2
-
3
1
  /** @type {import("eslint").Linter.Config} */
4
2
  export default {
5
3
  rules: {
package/rules/import.js CHANGED
@@ -1,4 +1,3 @@
1
- // @ts-check
2
1
  /* eslint-disable jsdoc/lines-before-block */
3
2
 
4
3
  /** @type {import("eslint").Linter.Config} */
package/rules/jsdoc.js CHANGED
@@ -1,5 +1,3 @@
1
- // @ts-check
2
-
3
1
  /** @type {import("eslint").Linter.Config} */
4
2
  export default {
5
3
  rules: {