@wongxy/eslint-config 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +20 -6
- package/index.js +0 -25
package/package.json
CHANGED
|
@@ -1,17 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wongxy/eslint-config",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.5",
|
|
4
5
|
"description": "xiyaowong's eslint config",
|
|
5
6
|
"author": "xiyaowong (https://github.com/xiyaowong)",
|
|
6
7
|
"license": "MIT",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
8
|
"main": "index.js",
|
|
11
9
|
"files": [
|
|
12
10
|
"index.js"
|
|
13
11
|
],
|
|
14
12
|
"dependencies": {
|
|
15
|
-
"@antfu/eslint-config": "^1.0
|
|
13
|
+
"@antfu/eslint-config": "^2.1.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/eslint": "^8.44.7",
|
|
17
|
+
"bumpp": "9.2.0",
|
|
18
|
+
"eslint": "8.54.0",
|
|
19
|
+
"tsup": "8.0.1",
|
|
20
|
+
"typescript": "5.3.2"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsup --format esm,cjs --clean --dts",
|
|
24
|
+
"stub": "tsup --format esm",
|
|
25
|
+
"dev": "tsup --format esm,cjs --watch & eslint-flat-config-viewer",
|
|
26
|
+
"lint": "pnpm run stub && eslint .",
|
|
27
|
+
"lint:fix": "pnpm run stub && eslint . --fix",
|
|
28
|
+
"release": "bumpp && pnpm publish",
|
|
29
|
+
"typecheck": "tsc --noEmit"
|
|
16
30
|
}
|
|
17
|
-
}
|
|
31
|
+
}
|
package/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const antfu = require('@antfu/eslint-config').default
|
|
2
|
-
|
|
3
|
-
module.exports = antfu(
|
|
4
|
-
{
|
|
5
|
-
rules: {
|
|
6
|
-
semi: 'off',
|
|
7
|
-
quotes: 'off',
|
|
8
|
-
'no-console': 'off',
|
|
9
|
-
'no-multiple-empty-lines': 'warn',
|
|
10
|
-
},
|
|
11
|
-
overrides: {
|
|
12
|
-
vue: {
|
|
13
|
-
"vue/block-order": ["warn", {
|
|
14
|
-
"order": [["script", "template"], "style"]
|
|
15
|
-
}],
|
|
16
|
-
"vue/valid-template-root": "off"
|
|
17
|
-
},
|
|
18
|
-
typescript: {
|
|
19
|
-
'@typescript-eslint/prefer-ts-expect-error': 'off',
|
|
20
|
-
'@typescript-eslint/semi': ['warn', 'never'],
|
|
21
|
-
'@typescript-eslint/quotes': ['warn', 'single'],
|
|
22
|
-
},
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
)
|