fix: inconsistent rule and update dependencies (#8)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing

Reviewed-on: #8
Co-authored-by: EndMove <superjeremi1302@gmail.com>
Co-committed-by: EndMove <superjeremi1302@gmail.com>
This commit is contained in:
Jérémi N ‘EndMove’ 2023-09-02 15:46:46 +02:00 committed by Jérémi N ‘EndMove’
parent 37eb0ae673
commit da8ebf2936
3 changed files with 1040 additions and 183 deletions

View File

@ -17,23 +17,17 @@
"extends": [ "extends": [
"eslint:recommended", "eslint:recommended",
"plugin:vue/vue3-essential", "plugin:vue/vue3-essential",
"plugin:@typescript-eslint/recommended", "plugin:prettier/recommended",
"plugin:prettier/recommended" "plugin:@typescript-eslint/recommended"
], ],
"plugins": [ "plugins": [
"jest", "jest",
"cypress", "cypress",
"import", "import",
"@typescript-eslint", "prettier",
"prettier" "@typescript-eslint"
], ],
"overrides": [ "overrides": [
{
"files": ["test/**"],
"plugins": ["jest"],
"extends": ["plugin:jest/recommended", "plugin:jest/style"],
"rules": { "jest/prefer-expect-assertions": "off" }
},
{ {
"files": ["*.ts", "*.tsx"], "files": ["*.ts", "*.tsx"],
"plugins": [ "plugins": [
@ -60,7 +54,7 @@
], ],
"no-unused-expressions": "off", "no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": [ "@typescript-eslint/no-unused-expressions": [
"error", "warn",
{ {
"allowShortCircuit": true, "allowShortCircuit": true,
"allowTernary": true, "allowTernary": true,
@ -79,6 +73,12 @@
"@typescript-eslint/no-useless-constructor": ["warn"] "@typescript-eslint/no-useless-constructor": ["warn"]
} }
}, },
{
"files": ["test/**"],
"plugins": ["jest"],
"extends": ["plugin:jest/recommended", "plugin:jest/style"],
"rules": { "jest/prefer-expect-assertions": "off" }
},
{ {
"files": ["cypress/e2e/**/*.cy.ts"], "files": ["cypress/e2e/**/*.cy.ts"],
"extends": ["plugin:cypress/recommended"], "extends": ["plugin:cypress/recommended"],

1179
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -9,16 +9,16 @@
".eslintrc.json" ".eslintrc.json"
], ],
"dependencies": { "dependencies": {
"@typescript-eslint/eslint-plugin": "^5.60.1", "@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^5.60.1", "@typescript-eslint/parser": "^6.5.0",
"eslint": "^8.43.0", "eslint": "^8.48.0",
"eslint-config-prettier": "^8.8.0", "eslint-config-prettier": "^8.8.0",
"eslint-plugin-cypress": "^2.13.3", "eslint-plugin-cypress": "^2.14.0",
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.28.1",
"eslint-plugin-jest": "^27.2.2", "eslint-plugin-jest": "^27.2.3",
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-vue": "^9.15.1", "eslint-plugin-vue": "^9.17.0",
"prettier": "^2.8.8" "prettier": "^3.0.3"
}, },
"repository": { "repository": {
"type": "git", "type": "git",