Skip to content

Commit

Permalink
🔧 update eslint config
Browse files Browse the repository at this point in the history
🔧 Update eslint config
  • Loading branch information
itt828 committed Dec 7, 2023
1 parent fa0aa1e commit 950f09e
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 67 deletions.
10 changes: 3 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@ module.exports = {
node: true
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'plugin:vue/vue3-recommended',
'plugin:prettier/recommended',
'plugin:storybook/recommended'
],
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 2020,
parser: '@typescript-eslint/parser'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-undef': 'off',
'no-unused-vars': 'off'
}
rules: {}
}
129 changes: 72 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"build": "vue-tsc --noEmit && vite build",
"lint": "eslint --fix",
"lint": "eslint 'src/**/*.{ts,vue}' --fix",
"format": "prettier --write .",
"dev": "vite",
"dev:mock": "VITE_BACKEND=mock vite",
Expand Down Expand Up @@ -41,7 +41,7 @@
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"@vitejs/plugin-vue": "^4.3.1",
"eslint": "^8.47.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-storybook": "^0.6.15",
Expand All @@ -58,6 +58,7 @@
"typescript": "^5.1.6",
"vite": "^4.4.9",
"vitest": "^0.34.2",
"vue-eslint-parser": "^9.3.2",
"vue-tsc": "^1.8.8"
},
"lint-staged": {
Expand All @@ -68,4 +69,4 @@
"msw": {
"workerDirectory": "public"
}
}
}

0 comments on commit 950f09e

Please sign in to comment.