diff --git a/.eslintrc.js b/.eslintrc.js index 2224e6c..f9f3c61 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -26,7 +26,7 @@ module.exports = { }, ecmaVersion: 'latest', }, - plugins: ['react', 'import', 'jest', '@typescript-eslint', 'prettier'], + plugins: ['check-file', 'react', 'import', 'jest', '@typescript-eslint', 'prettier'], rules: { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-unused-vars': ['error'], diff --git a/package-lock.json b/package-lock.json index dcbcea5..2fab2a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@typescript-eslint/eslint-plugin": "^6.17.0", "@typescript-eslint/parser": "^6.17.0", "eslint-config-prettier": "^9.1.0", + "eslint-plugin-check-file": "^2.6.2", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jest": "^27.6.1", "eslint-plugin-prettier": "^5.1.2", @@ -2126,6 +2127,25 @@ "ms": "^2.1.1" } }, + "node_modules/eslint-plugin-check-file": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-check-file/-/eslint-plugin-check-file-2.6.2.tgz", + "integrity": "sha512-z3Rur4JjOdNH0fia1IH7JQseo9NLuFVtw9j8P6z2c5XmXWemH7/qGpmMB8XbOt9bJBNpmPlNAGJty9b3EervPw==", + "dependencies": { + "is-glob": "^4.0.3", + "micromatch": "^4.0.5" + }, + "engines": { + "node": "14.x || >= 16" + }, + "funding": { + "type": "ko_fi", + "url": "https://ko-fi.com/huanluo" + }, + "peerDependencies": { + "eslint": ">=7.28.0" + } + }, "node_modules/eslint-plugin-import": { "version": "2.29.1", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", @@ -8412,7 +8432,8 @@ "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "peer": true }, "node_modules/through": { "version": "2.3.8", diff --git a/package.json b/package.json index 6dd34e8..fe0dc18 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "@typescript-eslint/eslint-plugin": "^6.17.0", "@typescript-eslint/parser": "^6.17.0", "eslint-config-prettier": "^9.1.0", + "eslint-plugin-check-file": "^2.6.2", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jest": "^27.6.1", "eslint-plugin-prettier": "^5.1.2",