fix: inconsistent rule and update dependencies #8
@ -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"],
|
||||||
|
1183
package-lock.json
generated
1183
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user