Skip to content

Commit

Permalink
[web] Upgrade to eslint 9.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hacketiwack committed Apr 21, 2024
1 parent b8373a4 commit d639162
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 80 deletions.
11 changes: 0 additions & 11 deletions web-src/.eslintrc.cjs

This file was deleted.

51 changes: 51 additions & 0 deletions web-src/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import eslintConfigPrettier from 'eslint-config-prettier'
import globals from 'globals'
import js from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'

export default [
{
files: ['src/**/*.js', 'src/**/.vue'],
languageOptions: {
globals: {
...globals.node
}
}
},
eslintConfigPrettier,
js.configs.all,
...pluginVue.configs['flat/recommended'],
{
rules: {
camelcase: 'off',
'consistent-this': 'off',
'default-param-last': 'off',
'id-length': 'off',
'max-lines': 'off',
'max-lines-per-function': 'off',
'max-statements': 'off',
'no-bitwise': 'off',
'no-magic-numbers': 'off',
'no-negated-condition': 'off',
'no-nested-ternary': 'off',
'no-plusplus': 'off',
'no-shadow': 'off',
'no-ternary': 'off',
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'none' }],
'no-undef': 'off',
'no-undefined': 'off',
'no-unused-expressions': 'off',
'no-useless-assignment': 'off',
'one-var': 'off',
'prefer-destructuring': 'off',
'prefer-named-capture-group': 'off',
'sort-keys': 'off',
'sort-vars': 'off',
'vue/html-self-closing': 'off',
'vue/max-attributes-per-line': 'off',
'vue/no-unused-vars': 'off',
'vue/prop-name-casing': 'off',
'vue/singleline-html-element-content-newline': 'off'
}
}
]
134 changes: 67 additions & 67 deletions web-src/package-lock.json

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

4 changes: 2 additions & 2 deletions web-src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"serve": "vite --port 3000",
"build": "vite build --base='./'",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src",
"lint": "eslint",
"dev": "vite",
"format": "prettier . --write",
"i18n:report": "vue-cli-service i18n:report --src \"./src/**/*.?(js|vue)\" --locales \"./src/i18n/**/*.json\"",
Expand Down Expand Up @@ -33,7 +33,7 @@
"devDependencies": {
"@intlify/unplugin-vue-i18n": "^4.0.0",
"@vitejs/plugin-vue": "^5.0.4",
"eslint": "^8.56.0",
"eslint": "^9.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-vue": "^9.25.0",
"prettier": "^3.2.5",
Expand Down

0 comments on commit d639162

Please sign in to comment.