Skip to content
This repository was archived by the owner on Sep 17, 2022. It is now read-only.

Commit 4406a6e

Browse files
committed
Switch to antfu eslint config
1 parent 4d6f74a commit 4406a6e

File tree

3 files changed

+997
-316
lines changed

3 files changed

+997
-316
lines changed

.eslintrc.js

+3-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
module.exports = {
2-
root: true,
3-
parser: '@typescript-eslint/parser',
4-
parserOptions: {
5-
project: './tsconfig.json'
6-
},
7-
plugins: ['@typescript-eslint'],
8-
extends: [
9-
'eslint:recommended',
10-
'plugin:@typescript-eslint/eslint-recommended',
11-
'plugin:@typescript-eslint/recommended',
12-
'standard-with-typescript'
13-
],
14-
ignorePatterns: ['node_modules/', 'dist/', '*.js']
2+
'extends': [
3+
'@antfu'
4+
]
155
}

package.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,11 @@
4545
"lint": "eslint ."
4646
},
4747
"devDependencies": {
48+
"@antfu/eslint-config": "^0.18.9",
4849
"@types/node": "17.0.23",
49-
"@typescript-eslint/eslint-plugin": "4.33.0",
50-
"@typescript-eslint/parser": "5.16.0",
5150
"@vue/compiler-sfc": "3.2.31",
5251
"c8": "7.11.0",
53-
"eslint": "7.32.0",
54-
"eslint-config-standard-with-typescript": "21.0.1",
55-
"eslint-plugin-import": "2.25.4",
56-
"eslint-plugin-node": "11.1.0",
57-
"eslint-plugin-promise": "5.2.0",
52+
"eslint": "^8.12.0",
5853
"release-it": "14.13.1",
5954
"rollup": "2.70.1",
6055
"rollup-plugin-vue": "6.0.0",
@@ -64,5 +59,8 @@
6459
"vite-plugin-vue2": "1.9.3",
6560
"vitest": "0.7.12",
6661
"vue-template-compiler": "2.6.14"
62+
},
63+
"dependencies": {
64+
"magic-string": "^0.26.1"
6765
}
6866
}

0 commit comments

Comments
 (0)