eslint config

pull/396/head
starknt 2024-11-18 11:16:54 +08:00
parent 7a7b384dd7
commit 352fb91883
4 changed files with 24 additions and 5 deletions

15
eslint.config.js Normal file
View File

@ -0,0 +1,15 @@
import antfu from '@antfu/eslint-config'
export default antfu({
vue: {
vueVersion: 2,
},
rules: {
"style/space-before-function-paren": ["error", "always"],
"no-console": 'off'
},
isInEditor: true,
ignore: [
'**/test/**',
]
})

View File

@ -3,5 +3,13 @@
"packageManager": "pnpm@9.13.2",
"private": false,
"author": "Greper",
"license": "MPL-2.0"
"license": "MPL-2.0",
"devDependencies": {
"eslint": "^9.15.0",
"@antfu/eslint-config": "^3.9.1"
},
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}

View File

@ -1,3 +0,0 @@
{
"presets": ["es2020","stage-4"]
}

View File

@ -1 +0,0 @@
./src/test