lighten up eslint configuration, only use eslint for vue template linting
This commit is contained in:
parent
c1d0610ce7
commit
f4d0adac3c
6 changed files with 24 additions and 823 deletions
|
|
@ -1,29 +1,15 @@
|
||||||
import js from '@eslint/js'
|
|
||||||
import { defineConfig, globalIgnores } from 'eslint/config'
|
import { defineConfig, globalIgnores } from 'eslint/config'
|
||||||
import vue from 'eslint-plugin-vue'
|
import vue from 'eslint-plugin-vue'
|
||||||
import globals from 'globals'
|
|
||||||
|
|
||||||
export default defineConfig([
|
export default defineConfig([
|
||||||
...vue.configs['flat/recommended'],
|
...vue.configs['flat/recommended'],
|
||||||
globalIgnores(['**/*.js', 'build/', 'dist/', 'config/']),
|
globalIgnores(['**/*.js', 'build/', 'dist/', 'config/']),
|
||||||
{
|
{
|
||||||
files: ['src/**/*.vue'],
|
files: ['src/**/*.vue'],
|
||||||
plugins: { js },
|
|
||||||
extends: ['js/recommended'],
|
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
ecmaVersion: 2024,
|
|
||||||
sourceType: 'module',
|
|
||||||
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: '@babel/eslint-parser',
|
parser: '@babel/eslint-parser',
|
||||||
},
|
},
|
||||||
globals: {
|
|
||||||
...globals.browser,
|
|
||||||
...globals.vitest,
|
|
||||||
...globals.chai,
|
|
||||||
...globals.commonjs,
|
|
||||||
...globals.serviceworker,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
rules: {
|
rules: {
|
||||||
|
|
|
||||||
|
|
@ -83,11 +83,6 @@
|
||||||
"cross-spawn": "7.0.6",
|
"cross-spawn": "7.0.6",
|
||||||
"custom-event-polyfill": "1.0.7",
|
"custom-event-polyfill": "1.0.7",
|
||||||
"eslint": "9.39.2",
|
"eslint": "9.39.2",
|
||||||
"eslint-config-standard": "17.1.0",
|
|
||||||
"eslint-formatter-friendly": "7.0.0",
|
|
||||||
"eslint-plugin-import": "2.32.0",
|
|
||||||
"eslint-plugin-n": "17.23.1",
|
|
||||||
"eslint-plugin-promise": "7.2.1",
|
|
||||||
"eslint-plugin-vue": "10.6.2",
|
"eslint-plugin-vue": "10.6.2",
|
||||||
"eventsource-polyfill": "0.9.6",
|
"eventsource-polyfill": "0.9.6",
|
||||||
"express": "5.1.0",
|
"express": "5.1.0",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
// eslint-disable-next-line no-unused
|
|
||||||
|
|
||||||
import { mapState } from 'pinia'
|
import { mapState } from 'pinia'
|
||||||
import { Fragment } from 'vue'
|
import { Fragment } from 'vue'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
// eslint-disable-next-line no-unused
|
|
||||||
|
|
||||||
import { Fragment } from 'vue'
|
import { Fragment } from 'vue'
|
||||||
|
|
||||||
import { FontAwesomeIcon as FAIcon } from '@fortawesome/vue-fontawesome'
|
import { FontAwesomeIcon as FAIcon } from '@fortawesome/vue-fontawesome'
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@ export class RegistrationError extends Error {
|
||||||
// the error is probably a JSON object with a single key, "errors", whose value is another JSON object containing the real errors
|
// the error is probably a JSON object with a single key, "errors", whose value is another JSON object containing the real errors
|
||||||
if (typeof error === 'string') {
|
if (typeof error === 'string') {
|
||||||
error = JSON.parse(error)
|
error = JSON.parse(error)
|
||||||
// eslint-disable-next-line
|
|
||||||
if (Object.hasOwn(error, 'error')) {
|
if (Object.hasOwn(error, 'error')) {
|
||||||
error = JSON.parse(error.error)
|
error = JSON.parse(error.error)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue