@oliver139/eslint-config 1.0.0
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/LICENSE +21 -0
- package/README.md +33 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +19254 -0
- package/dist/index.d.ts +19254 -0
- package/dist/index.js +1 -0
- package/package.json +77 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ensurePackages as o,interopDefault as a,antfu as l}from"@antfu/eslint-config";async function i(n={}){const e={type:"app",vueA11y:!1,quotes:"double",semicolon:!0,...n},r=[{type:e.type,ignores:["**/fixtures"],stylistic:{indent:2,quotes:e.quotes,semi:e.semicolon,overrides:{"antfu/curly":"off","style/brace-style":["error","1tbs",{allowSingleLine:!1}],"style/member-delimiter-style":["error",{multiline:{delimiter:"comma",requireLast:!0},singleline:{delimiter:"comma",requireLast:!1},multilineDetection:"brackets"}]}},javascript:{overrides:{curly:["error","multi-line","consistent"],"max-nested-callbacks":["warn",{max:4}],"no-alert":"off","no-console":"off","no-lonely-if":"error","no-unused-vars":"off",yoda:["error","never",{exceptRange:!0}]}},typescript:{overrides:{"ts/no-empty-function":"warn","ts/no-shadow":"error","ts/no-unused-vars":["warn",{varsIgnorePattern:"^props$"}]}},vue:{overrides:{"vue/no-console":"error","vue/max-attributes-per-line":["warn",{singleline:3,multiline:1}],"vue/singleline-html-element-content-newline":"off"}}}];if(await o([e.vueA11y?"eslint-plugin-vuejs-accessibility":void 0]),e.vueA11y){const t=(await a(import("eslint-plugin-vuejs-accessibility"))).configs["flat/recommended"];r.push(...t)}const s=l(...r);return e.vueA11y&&s.renamePlugins({"vuejs-accessibility":"vue-a11y"}).overrides({"vuejs-accessibility:setup:base":{name:"vue-a11y/base"},"vuejs-accessibility:setup:with-files-rules-and-parser":{name:"vue-a11y/rules",rules:{"vue-a11y/media-has-caption":"warn","vue-a11y/no-aria-hidden-on-focusable":"error","vue-a11y/no-autofocus":"warn","vue-a11y/tabindex-no-positive":"warn"}}}),s}export{i as default,i as eslintConfigBuilder};
|
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@oliver139/eslint-config",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Oliver's ESLint config preset powered by @antfu/eslint-config",
|
|
6
|
+
"author": "Oliver Mak",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/oliver139/eslint-config"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"eslint-config"
|
|
14
|
+
],
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"require": "./dist/index.cjs"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"main": "./dist/index.js",
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"files": [
|
|
24
|
+
"bin",
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"eslint": "^9.10.0",
|
|
32
|
+
"eslint-plugin-vuejs-accessibility": ">=2.4.1"
|
|
33
|
+
},
|
|
34
|
+
"peerDependenciesMeta": {
|
|
35
|
+
"eslint-plugin-vuejs-accessibility": {
|
|
36
|
+
"optional": true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@antfu/eslint-config": "^3.9.2"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@antfu/ni": "^0.23.1",
|
|
44
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
45
|
+
"@tsconfig/recommended": "1.0.8",
|
|
46
|
+
"@types/node": "^22.9.0",
|
|
47
|
+
"bumpp": "^9.8.1",
|
|
48
|
+
"eslint": "^9.15.0",
|
|
49
|
+
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
50
|
+
"lint-staged": "^15.2.10",
|
|
51
|
+
"rollup": "^4.27.3",
|
|
52
|
+
"rollup-plugin-delete": "^2.1.0",
|
|
53
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
54
|
+
"rollup-plugin-esbuild": "^6.1.1",
|
|
55
|
+
"simple-git-hooks": "^2.11.1",
|
|
56
|
+
"tsconfig-paths": "^4.2.0",
|
|
57
|
+
"tslib": "^2.8.1",
|
|
58
|
+
"tsx": "^4.19.2",
|
|
59
|
+
"typescript": "^5.6.3",
|
|
60
|
+
"@oliver139/eslint-config": "1.0.0"
|
|
61
|
+
},
|
|
62
|
+
"simple-git-hooks": {
|
|
63
|
+
"pre-commit": "npx lint-staged"
|
|
64
|
+
},
|
|
65
|
+
"lint-staged": {
|
|
66
|
+
"*.{js,mjs,cjs,ts,mts,cts}": [
|
|
67
|
+
"eslint --cache --fix"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"scripts": {
|
|
71
|
+
"build": "rollup --config=rollup.config.ts --configPlugin rollup-plugin-esbuild",
|
|
72
|
+
"lint": "nr build && eslint . --cache --fix",
|
|
73
|
+
"lint:check": "nr build && eslint . --cache",
|
|
74
|
+
"lint:inspect": "nr build && eslint --inspect-config",
|
|
75
|
+
"release": "bumpp && pnpm publish"
|
|
76
|
+
}
|
|
77
|
+
}
|