mirror of
https://github.com/kihashi/stardew_community_checklist.git
synced 2025-10-19 08:03:17 +00:00
Update eslint
This commit is contained in:
parent
9fa58ec4be
commit
1779246fc0
28
.eslintrc.js
28
.eslintrc.js
@ -1,28 +1,18 @@
|
|||||||
// https://eslint.org/docs/user-guide/configuring
|
/* eslint-env node */
|
||||||
|
require('@rushstack/eslint-patch/modern-module-resolution')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
parserOptions: {
|
|
||||||
parser: 'babel-eslint'
|
|
||||||
},
|
|
||||||
env: {
|
|
||||||
browser: true,
|
|
||||||
},
|
|
||||||
extends: [
|
extends: [
|
||||||
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
|
'plugin:vue/vue3-essential',
|
||||||
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
|
'eslint:recommended',
|
||||||
'plugin:vue/essential',
|
'@vue/eslint-config-typescript',
|
||||||
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
|
'@vue/eslint-config-prettier/skip-formatting'
|
||||||
'standard'
|
|
||||||
],
|
],
|
||||||
// required to lint *.vue files
|
parserOptions: {
|
||||||
plugins: [
|
ecmaVersion: 'latest'
|
||||||
'vue'
|
},
|
||||||
],
|
|
||||||
// add your custom rules here
|
|
||||||
rules: {
|
rules: {
|
||||||
// allow async-await
|
|
||||||
'generator-star-spacing': 'off',
|
|
||||||
// allow debugger during development
|
// allow debugger during development
|
||||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
||||||
}
|
}
|
||||||
|
|||||||
17
package.json
17
package.json
@ -7,7 +7,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"lint": "eslint . --ext .js,.vue"
|
"lint": "eslint . --ext .js,.vue,.ts --ignore-path .gitignore",
|
||||||
|
"lint:fix": "lint --fix"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-free-brands": "^5.0.13",
|
"@fortawesome/fontawesome-free-brands": "^5.0.13",
|
||||||
@ -26,21 +27,17 @@
|
|||||||
"vuex-persistedstate": "^2.5.4"
|
"vuex-persistedstate": "^2.5.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@rushstack/eslint-patch": "^1.2.0",
|
||||||
"@types/jsdom": "^21.1.1",
|
"@types/jsdom": "^21.1.1",
|
||||||
"@types/node": "^18.16.8",
|
"@types/node": "^18.16.8",
|
||||||
"@vitejs/plugin-vue": "^4.2.3",
|
"@vitejs/plugin-vue": "^4.2.3",
|
||||||
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
||||||
|
"@vue/eslint-config-prettier": "^7.1.0",
|
||||||
|
"@vue/eslint-config-typescript": "^11.0.3",
|
||||||
"@vue/tsconfig": "^0.4.0",
|
"@vue/tsconfig": "^0.4.0",
|
||||||
"autoprefixer": "^7.1.2",
|
"autoprefixer": "^7.1.2",
|
||||||
"eslint": "^4.18.2",
|
"eslint": "^8.39.0",
|
||||||
"eslint-config-standard": "^10.2.1",
|
"eslint-plugin-vue": "^9.11.0",
|
||||||
"eslint-friendly-formatter": "^3.0.0",
|
|
||||||
"eslint-loader": "^1.7.1",
|
|
||||||
"eslint-plugin-import": "^2.7.0",
|
|
||||||
"eslint-plugin-node": "^5.2.0",
|
|
||||||
"eslint-plugin-promise": "^3.4.0",
|
|
||||||
"eslint-plugin-standard": "^3.0.1",
|
|
||||||
"eslint-plugin-vue": "^4.0.0",
|
|
||||||
"postcss-import": "^11.0.0",
|
"postcss-import": "^11.0.0",
|
||||||
"postcss-url": "^7.2.1",
|
"postcss-url": "^7.2.1",
|
||||||
"typescript": "^5.1.3",
|
"typescript": "^5.1.3",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user