@lifeofqui/lint-config 1.0.0 → 1.0.1
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/eslint.d.ts +12 -0
- package/oxfmt.d.ts +4 -0
- package/package.json +11 -3
package/eslint.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Linter } from 'eslint'
|
|
2
|
+
|
|
3
|
+
export interface LintConfigOptions {
|
|
4
|
+
/** Extra ignore globs, added to the Nuxt build output dirs. */
|
|
5
|
+
ignores?: string[]
|
|
6
|
+
/** Oxlint config whose rules ESLint turns off. Defaults to `./.oxlintrc.json`. */
|
|
7
|
+
oxlintConfigFile?: string
|
|
8
|
+
/** Project-specific flat configs, applied after the shared ones. */
|
|
9
|
+
configs?: Linter.Config[]
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export declare function defineLintConfig(options?: LintConfigOptions): Linter.Config[]
|
package/oxfmt.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifeofqui/lint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Shared ESLint, Oxlint and Oxfmt setup for Vue/Nuxt projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Quirin Koch",
|
|
@@ -9,14 +9,22 @@
|
|
|
9
9
|
"url": "git+https://github.com/LifeOfQui/lint-config.git"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
|
+
"eslint.d.ts",
|
|
12
13
|
"eslint.js",
|
|
14
|
+
"oxfmt.d.ts",
|
|
13
15
|
"oxfmt.js",
|
|
14
16
|
"oxlintrc.json"
|
|
15
17
|
],
|
|
16
18
|
"type": "module",
|
|
17
19
|
"exports": {
|
|
18
|
-
"./eslint":
|
|
19
|
-
|
|
20
|
+
"./eslint": {
|
|
21
|
+
"types": "./eslint.d.ts",
|
|
22
|
+
"default": "./eslint.js"
|
|
23
|
+
},
|
|
24
|
+
"./oxfmt": {
|
|
25
|
+
"types": "./oxfmt.d.ts",
|
|
26
|
+
"default": "./oxfmt.js"
|
|
27
|
+
},
|
|
20
28
|
"./oxlintrc.json": "./oxlintrc.json",
|
|
21
29
|
"./package.json": "./package.json"
|
|
22
30
|
},
|