lighten up eslint configuration, only use eslint for vue template linting

This commit is contained in:
Henry Jameson 2026-09-02 20:02:14 +03:00
commit f4d0adac3c
6 changed files with 24 additions and 823 deletions

View file

@ -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: {

View file

@ -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",

View file

@ -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'

View file

@ -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'

View file

@ -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)
} }

823
yarn.lock

File diff suppressed because it is too large Load diff