chore(eslint-config): use modern plugins alternatives (#724)
* chore(eslint-config): use modern plugins alternatives * chore: migrate missing ones * chore: migrate eslint plugin comments * fix(eslint): update configuration * chore: bump eslint dev deps * chore: add changesetpull/731/head
parent
c5fb51f783
commit
f7a950a649
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@hono/eslint-config': minor
|
||||
---
|
||||
|
||||
Migrate to maintained and improved plugin alternatives
|
12
package.json
12
package.json
|
@ -53,14 +53,14 @@
|
|||
"@cloudflare/workers-types": "^4.20230307.0",
|
||||
"@types/jest": "^29.5.11",
|
||||
"@types/node": "^20.10.4",
|
||||
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
||||
"@typescript-eslint/parser": "^6.14.0",
|
||||
"eslint": "^8.55.0",
|
||||
"eslint-plugin-import": "^2.29.0",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
||||
"@typescript-eslint/parser": "^6.21.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-plugin-import-x": "^4.1.1",
|
||||
"eslint-plugin-n": "^17.10.2",
|
||||
"jest": "^29.5.0",
|
||||
"jest-environment-miniflare": "^2.14.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"npm-run-all2": "^6.2.2",
|
||||
"prettier": "^2.7.1",
|
||||
"ts-jest": "^29.1.1",
|
||||
"typescript": "^5.2.2"
|
||||
|
|
|
@ -4,7 +4,7 @@ module.exports = defineConfig({
|
|||
root: true,
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:node/recommended',
|
||||
'plugin:n/recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'prettier',
|
||||
],
|
||||
|
@ -13,7 +13,7 @@ module.exports = defineConfig({
|
|||
sourceType: 'module',
|
||||
ecmaVersion: 2021,
|
||||
},
|
||||
plugins: ['@typescript-eslint', 'import'],
|
||||
plugins: ['@typescript-eslint', 'import-x'],
|
||||
globals: {
|
||||
fetch: false,
|
||||
Response: false,
|
||||
|
@ -44,15 +44,15 @@ module.exports = defineConfig({
|
|||
},
|
||||
],
|
||||
|
||||
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
|
||||
'import/no-duplicates': 'error',
|
||||
'import-x/consistent-type-specifier-style': ['error', 'prefer-top-level'],
|
||||
'import-x/no-duplicates': 'error',
|
||||
|
||||
'node/no-missing-import': 'off',
|
||||
'node/no-missing-require': 'off',
|
||||
'node/no-deprecated-api': 'off',
|
||||
'node/no-unpublished-import': 'off',
|
||||
'node/no-unpublished-require': 'off',
|
||||
'node/no-unsupported-features/es-syntax': 'off',
|
||||
'n/no-missing-import': 'off',
|
||||
'n/no-missing-require': 'off',
|
||||
'n/no-deprecated-api': 'off',
|
||||
'n/no-unpublished-import': 'off',
|
||||
'n/no-unpublished-require': 'off',
|
||||
'n/no-unsupported-features/es-syntax': 'off',
|
||||
|
||||
'@typescript-eslint/ban-types': [
|
||||
'error',
|
||||
|
|
|
@ -14,21 +14,21 @@
|
|||
},
|
||||
"homepage": "https://github.com/honojs/middleware",
|
||||
"peerDependencies": {
|
||||
"eslint": "^8.0.0",
|
||||
"eslint": "^8.57.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
||||
"@typescript-eslint/parser": "^6.14.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
||||
"@typescript-eslint/parser": "^6.21.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-define-config": "^2.0.0",
|
||||
"eslint-import-resolver-typescript": "^3.6.1",
|
||||
"eslint-plugin-import": "^2.29.0",
|
||||
"eslint-plugin-node": "^11.1.0"
|
||||
"eslint-define-config": "^2.1.0",
|
||||
"eslint-import-resolver-typescript": "^3.6.3",
|
||||
"eslint-plugin-import-x": "^4.1.1",
|
||||
"eslint-plugin-n": "^17.10.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/eslint": "^8",
|
||||
"eslint": "^8.55.0",
|
||||
"eslint": "^8.57.0",
|
||||
"typescript": "^5.3.3"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,17 +30,17 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@cloudflare/workers-types": "^3.14.0",
|
||||
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
||||
"@types/jest": "^28.1.4",
|
||||
"@typescript-eslint/eslint-plugin": "^5.21.0",
|
||||
"@typescript-eslint/parser": "^5.21.0",
|
||||
"eslint": "^8.14.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-define-config": "^1.4.0",
|
||||
"eslint-import-resolver-typescript": "^2.7.1",
|
||||
"eslint-plugin-eslint-comments": "^3.2.0",
|
||||
"eslint-plugin-flowtype": "^8.0.3",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-import-x": "^4.1.1",
|
||||
"eslint-plugin-n": "^17.10.2",
|
||||
"hono": "^4.0.2",
|
||||
"jest": "^28.1.2",
|
||||
"jest-environment-miniflare": "^2.6.0",
|
||||
|
|
|
@ -40,17 +40,17 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@cloudflare/workers-types": "^3.14.0",
|
||||
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
||||
"@types/jest": "^28.1.4",
|
||||
"@typescript-eslint/eslint-plugin": "^5.32.0",
|
||||
"@typescript-eslint/parser": "^5.32.0",
|
||||
"eslint": "^8.21.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-define-config": "^1.6.0",
|
||||
"eslint-import-resolver-typescript": "^3.4.0",
|
||||
"eslint-plugin-eslint-comments": "^3.2.0",
|
||||
"eslint-plugin-flowtype": "^8.0.3",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-import-x": "^4.1.1",
|
||||
"eslint-plugin-n": "^17.10.2",
|
||||
"hono": "^3.11.7",
|
||||
"jest": "^28.1.2",
|
||||
"jest-environment-miniflare": "^2.6.0",
|
||||
|
|
Loading…
Reference in New Issue