Skip to content

Commit

Permalink
chore: fix ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
ngseke committed Sep 16, 2023
1 parent 06292b6 commit b1d44e2
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 30 deletions.
69 changes: 40 additions & 29 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,32 +1,43 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
env: {
browser: true,
es2021: true,
},
extends: [
'standard-with-typescript',
'plugin:vue/vue3-essential',
],
overrides: [
{
env: {
node: true,
},
files: [
'.eslintrc.{js,cjs}',
],
parserOptions: {
sourceType: 'script',
},
},
"extends": [
"standard-with-typescript",
"plugin:vue/vue3-essential"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"vue"
],
"rules": {
}
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
parser: '@typescript-eslint/parser',
project: './tsconfig.json',
extraFileExtensions: ['.vue'],
},
plugins: [
'vue',
],
rules: {
'@typescript-eslint/triple-slash-reference': 'off',
'@typescript-eslint/comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'only-multiline',
}],
},
}
9 changes: 8 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue",
"vite.config.ts",
".eslintrc.cjs"
],
"references": [{ "path": "./tsconfig.node.json" }]
}

0 comments on commit b1d44e2

Please sign in to comment.