Skip to content

Commit

Permalink
feat: update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
FliPPeDround committed Nov 30, 2023
1 parent 2cae067 commit fc593f4
Show file tree
Hide file tree
Showing 12 changed files with 729 additions and 876 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

22 changes: 22 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,27 @@
"KUAISHOU",
"NVUE",
"TOUTIAO"
],
"eslint.experimental.useFlatConfig": true,
"prettier.enable": false,
"editor.formatOnSave": false,
// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll": false,
"source.fixAll.eslint": true,
"source.organizeImports": false
},
// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml"
]
}
8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const antfu = require('@antfu/eslint-config').default

module.exports = antfu({
ignores: ['playground'],
rules: {
'no-new': 'off',
},
})
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,15 @@
"release": "bumpp"
},
"devDependencies": {
"@antfu/eslint-config": "^0.38.4",
"@antfu/eslint-config": "^2.1.2",
"@antfu/ni": "^0.21.2",
"@antfu/utils": "^0.7.6",
"@types/node": "^18.15.11",
"@types/vscode": "^1.71.0",
"@vscode/vsce": "^2.19.0",
"bumpp": "^9.1.0",
"concurrently": "^8.0.1",
"eslint": "^8.37.0",
"eslint": "^8.54.0",
"fastest-levenshtein": "^1.0.16",
"ovsx": "^0.8.0",
"pnpm": "^8.1.1",
Expand Down
17 changes: 0 additions & 17 deletions playground/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,4 @@ export const test = 1
// #ifdef APP
// #ifdef UNI-APP-X
















// #ifdef WEIXIN
console.log('推测正确平台')
// #endif
Loading

0 comments on commit fc593f4

Please sign in to comment.