@vinicunca/eslint-config 2.15.8 → 3.1.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/dist/index.d.ts +956 -212
- package/dist/index.js +7 -3
- package/package.json +20 -22
- package/dist/index.cjs +0 -2898
- package/dist/index.d.cts +0 -18423
package/dist/index.js
CHANGED
|
@@ -330,7 +330,6 @@ async function stylistic(options = {}) {
|
|
|
330
330
|
};
|
|
331
331
|
const pluginStylistic = await interopDefault(import("@stylistic/eslint-plugin"));
|
|
332
332
|
const config = pluginStylistic.configs.customize({
|
|
333
|
-
flat: true,
|
|
334
333
|
indent,
|
|
335
334
|
jsx: jsx2,
|
|
336
335
|
pluginName: "style",
|
|
@@ -686,6 +685,7 @@ async function imports(options = {}) {
|
|
|
686
685
|
"antfu/import-dedupe": ERROR,
|
|
687
686
|
"antfu/no-import-dist": ERROR,
|
|
688
687
|
"antfu/no-import-node-modules-by-path": ERROR,
|
|
688
|
+
"import/consistent-type-specifier-style": [ERROR, "prefer-top-level"],
|
|
689
689
|
"import/export": ERROR,
|
|
690
690
|
"import/first": ERROR,
|
|
691
691
|
"import/no-duplicates": ERROR,
|
|
@@ -1902,7 +1902,7 @@ async function test(options = {}) {
|
|
|
1902
1902
|
"sonar/no-duplicate-string": OFF,
|
|
1903
1903
|
"test/consistent-test-it": [ERROR, { fn: "it", withinDescribe: "it" }],
|
|
1904
1904
|
"test/no-identical-title": ERROR,
|
|
1905
|
-
"test/no-only-tests": isInEditor ?
|
|
1905
|
+
"test/no-only-tests": isInEditor ? WARN : ERROR,
|
|
1906
1906
|
"test/prefer-hooks-in-order": ERROR,
|
|
1907
1907
|
"test/prefer-lowercase-title": ERROR,
|
|
1908
1908
|
...overrides
|
|
@@ -2083,7 +2083,11 @@ async function typescript(options = {}) {
|
|
|
2083
2083
|
"ts/array-type": [ERROR, { default: "generic" }],
|
|
2084
2084
|
"ts/ban-ts-comment": [ERROR, { "ts-expect-error": "allow-with-description" }],
|
|
2085
2085
|
"ts/consistent-type-definitions": [ERROR, "interface"],
|
|
2086
|
-
"ts/consistent-type-imports": [ERROR, {
|
|
2086
|
+
"ts/consistent-type-imports": [ERROR, {
|
|
2087
|
+
disallowTypeAnnotations: false,
|
|
2088
|
+
fixStyle: "separate-type-imports",
|
|
2089
|
+
prefer: "type-imports"
|
|
2090
|
+
}],
|
|
2087
2091
|
"ts/explicit-member-accessibility": OFF,
|
|
2088
2092
|
"ts/explicit-module-boundary-types": OFF,
|
|
2089
2093
|
// https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinicunca/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.1.1",
|
|
5
5
|
"description": "Vinicunca ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "praburangki",
|
|
@@ -41,10 +41,7 @@
|
|
|
41
41
|
"style linter"
|
|
42
42
|
],
|
|
43
43
|
"exports": {
|
|
44
|
-
".":
|
|
45
|
-
"import": "./dist/index.js",
|
|
46
|
-
"require": "./dist/index.cjs"
|
|
47
|
-
}
|
|
44
|
+
".": "./dist/index.js"
|
|
48
45
|
},
|
|
49
46
|
"main": "./dist/index.js",
|
|
50
47
|
"types": "./dist/index.d.ts",
|
|
@@ -111,35 +108,35 @@
|
|
|
111
108
|
},
|
|
112
109
|
"dependencies": {
|
|
113
110
|
"@antfu/install-pkg": "^1.0.0",
|
|
114
|
-
"@clack/prompts": "^0.
|
|
111
|
+
"@clack/prompts": "^0.10.0",
|
|
115
112
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
116
113
|
"@eslint/markdown": "^6.2.2",
|
|
117
|
-
"@stylistic/eslint-plugin": "^
|
|
118
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
119
|
-
"@typescript-eslint/parser": "^8.
|
|
120
|
-
"@unocss/eslint-plugin": "^65.
|
|
121
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
122
|
-
"eslint-config-flat-gitignore": "^
|
|
123
|
-
"eslint-flat-config-utils": "^
|
|
124
|
-
"eslint-merge-processors": "^
|
|
125
|
-
"eslint-plugin-antfu": "^
|
|
126
|
-
"eslint-plugin-command": "^
|
|
114
|
+
"@stylistic/eslint-plugin": "^4.0.0-beta.1",
|
|
115
|
+
"@typescript-eslint/eslint-plugin": "^8.24.0",
|
|
116
|
+
"@typescript-eslint/parser": "^8.24.0",
|
|
117
|
+
"@unocss/eslint-plugin": "^65.5.0",
|
|
118
|
+
"@vitest/eslint-plugin": "^1.1.31",
|
|
119
|
+
"eslint-config-flat-gitignore": "^2.0.0",
|
|
120
|
+
"eslint-flat-config-utils": "^2.0.1",
|
|
121
|
+
"eslint-merge-processors": "^2.0.0",
|
|
122
|
+
"eslint-plugin-antfu": "^3.1.0",
|
|
123
|
+
"eslint-plugin-command": "^3.1.0",
|
|
127
124
|
"eslint-plugin-format": "^1.0.1",
|
|
128
125
|
"eslint-plugin-import-x": "^4.6.1",
|
|
129
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
126
|
+
"eslint-plugin-jsdoc": "^50.6.3",
|
|
130
127
|
"eslint-plugin-jsonc": "^2.19.1",
|
|
131
128
|
"eslint-plugin-n": "^17.15.1",
|
|
132
129
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
133
|
-
"eslint-plugin-perfectionist": "^4.
|
|
130
|
+
"eslint-plugin-perfectionist": "^4.9.0",
|
|
134
131
|
"eslint-plugin-regexp": "^2.7.0",
|
|
135
|
-
"eslint-plugin-sonarjs": "^3.0.
|
|
132
|
+
"eslint-plugin-sonarjs": "^3.0.2",
|
|
136
133
|
"eslint-plugin-toml": "^0.12.0",
|
|
137
134
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
138
135
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
139
136
|
"eslint-plugin-vue": "^9.32.0",
|
|
140
137
|
"eslint-plugin-yml": "^1.16.0",
|
|
141
|
-
"eslint-processor-vue-blocks": "^
|
|
142
|
-
"globals": "^15.
|
|
138
|
+
"eslint-processor-vue-blocks": "^2.0.0",
|
|
139
|
+
"globals": "^15.15.0",
|
|
143
140
|
"jsonc-eslint-parser": "^2.4.0",
|
|
144
141
|
"local-pkg": "^1.0.0",
|
|
145
142
|
"toml-eslint-parser": "^0.10.0",
|
|
@@ -149,8 +146,9 @@
|
|
|
149
146
|
"scripts": {
|
|
150
147
|
"lint": "eslint -v",
|
|
151
148
|
"test": "vitest",
|
|
152
|
-
"build": "pnpm run typegen && tsup --
|
|
149
|
+
"build": "pnpm run typegen && tsup --clean --dts",
|
|
153
150
|
"stub": "tsup --format esm --clean",
|
|
151
|
+
"watch": "tsup --watch",
|
|
154
152
|
"typegen": "tsx scripts/typegen.ts",
|
|
155
153
|
"publish:ci": "pnpm publish --access public --no-git-checks"
|
|
156
154
|
}
|