eslint config
parent
7a7b384dd7
commit
352fb91883
|
@ -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/**',
|
||||
]
|
||||
})
|
10
package.json
10
package.json
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"presets": ["es2020","stage-4"]
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
./src/test
|
Loading…
Reference in New Issue