Bump @typescript-eslint/parser to v8 and add eslint-plugin

This commit is contained in:
Riccardo Rigutini 2024-08-16 18:12:25 +00:00 committed by GitHub
parent f16b780442
commit c9c137822f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 575 additions and 381 deletions

View File

@ -1,6 +1,12 @@
{ {
"plugins": ["jest", "@typescript-eslint"], "plugins": [
"extends": ["plugin:github/recommended"], "jest",
"@typescript-eslint",
"@stylistic"
],
"extends": [
"plugin:github/recommended"
],
"parser": "@typescript-eslint/parser", "parser": "@typescript-eslint/parser",
"parserOptions": { "parserOptions": {
"ecmaVersion": 9, "ecmaVersion": 9,
@ -13,15 +19,28 @@
"import/no-namespace": "off", "import/no-namespace": "off",
"no-unused-vars": "off", "no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error", "@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}], "@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "no-public"
}
],
"@typescript-eslint/no-require-imports": "error", "@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/array-type": "error", "@typescript-eslint/array-type": "error",
"@typescript-eslint/await-thenable": "error", "@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-comment": "error", "@typescript-eslint/ban-ts-comment": "error",
"camelcase": "off", "camelcase": "off",
"@typescript-eslint/consistent-type-assertions": "error", "@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}], "@typescript-eslint/explicit-function-return-type": [
"@typescript-eslint/func-call-spacing": ["error", "never"], "error",
{
"allowExpressions": true
}
],
"@stylistic/func-call-spacing": [
"error",
"never"
],
"@typescript-eslint/no-array-constructor": "error", "@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-interface": "error", "@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "error", "@typescript-eslint/no-explicit-any": "error",
@ -43,10 +62,13 @@
"@typescript-eslint/require-array-sort-compare": "error", "@typescript-eslint/require-array-sort-compare": "error",
"@typescript-eslint/restrict-plus-operands": "error", "@typescript-eslint/restrict-plus-operands": "error",
"semi": "off", "semi": "off",
"@typescript-eslint/semi": ["error", "always"], "@stylistic/semi": [
"@typescript-eslint/type-annotation-spacing": "error", "error",
"@typescript-eslint/unbound-method": "error", "always"
"@typescript-eslint/trailingComma": "off" ],
"@typescript-eslint/trailingComma": "off",
"@stylistic/type-annotation-spacing": "error",
"@typescript-eslint/unbound-method": "error"
}, },
"env": { "env": {
"node": true, "node": true,

802
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -28,10 +28,12 @@
"glob": "^10.4.3" "glob": "^10.4.3"
}, },
"devDependencies": { "devDependencies": {
"@stylistic/eslint-plugin": "^2.6.4",
"@types/jest": "^29.5.12", "@types/jest": "^29.5.12",
"@types/lodash": "^4.17.7", "@types/lodash": "^4.17.7",
"@types/node": "^22.1.0", "@types/node": "^22.1.0",
"@typescript-eslint/parser": "^5.62.0", "@typescript-eslint/eslint-plugin": "^8.1.0",
"@typescript-eslint/parser": "^8.1.0",
"@vercel/ncc": "^0.38.1", "@vercel/ncc": "^0.38.1",
"eslint": "^8.57.0", "eslint": "^8.57.0",
"eslint-plugin-github": "^5.0.1", "eslint-plugin-github": "^5.0.1",