@vinicunca/eslint-config 2.15.7 → 3.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/dist/index.d.ts +323 -243
- package/dist/index.js +7 -2
- package/package.json +15 -17
- package/dist/index.cjs +0 -2898
- package/dist/index.d.cts +0 -18343
package/dist/index.js
CHANGED
|
@@ -686,6 +686,7 @@ async function imports(options = {}) {
|
|
|
686
686
|
"antfu/import-dedupe": ERROR,
|
|
687
687
|
"antfu/no-import-dist": ERROR,
|
|
688
688
|
"antfu/no-import-node-modules-by-path": ERROR,
|
|
689
|
+
"import/consistent-type-specifier-style": [ERROR, "prefer-top-level"],
|
|
689
690
|
"import/export": ERROR,
|
|
690
691
|
"import/first": ERROR,
|
|
691
692
|
"import/no-duplicates": ERROR,
|
|
@@ -1902,7 +1903,7 @@ async function test(options = {}) {
|
|
|
1902
1903
|
"sonar/no-duplicate-string": OFF,
|
|
1903
1904
|
"test/consistent-test-it": [ERROR, { fn: "it", withinDescribe: "it" }],
|
|
1904
1905
|
"test/no-identical-title": ERROR,
|
|
1905
|
-
"test/no-only-tests": isInEditor ?
|
|
1906
|
+
"test/no-only-tests": isInEditor ? WARN : ERROR,
|
|
1906
1907
|
"test/prefer-hooks-in-order": ERROR,
|
|
1907
1908
|
"test/prefer-lowercase-title": ERROR,
|
|
1908
1909
|
...overrides
|
|
@@ -2083,7 +2084,11 @@ async function typescript(options = {}) {
|
|
|
2083
2084
|
"ts/array-type": [ERROR, { default: "generic" }],
|
|
2084
2085
|
"ts/ban-ts-comment": [ERROR, { "ts-expect-error": "allow-with-description" }],
|
|
2085
2086
|
"ts/consistent-type-definitions": [ERROR, "interface"],
|
|
2086
|
-
"ts/consistent-type-imports": [ERROR, {
|
|
2087
|
+
"ts/consistent-type-imports": [ERROR, {
|
|
2088
|
+
disallowTypeAnnotations: false,
|
|
2089
|
+
fixStyle: "separate-type-imports",
|
|
2090
|
+
prefer: "type-imports"
|
|
2091
|
+
}],
|
|
2087
2092
|
"ts/explicit-member-accessibility": OFF,
|
|
2088
2093
|
"ts/explicit-module-boundary-types": OFF,
|
|
2089
2094
|
// 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.0.0",
|
|
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",
|
|
@@ -113,24 +110,24 @@
|
|
|
113
110
|
"@antfu/install-pkg": "^1.0.0",
|
|
114
111
|
"@clack/prompts": "^0.9.1",
|
|
115
112
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
116
|
-
"@eslint/markdown": "^6.2.
|
|
117
|
-
"@stylistic/eslint-plugin": "^
|
|
118
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
119
|
-
"@typescript-eslint/parser": "^8.
|
|
120
|
-
"@unocss/eslint-plugin": "^65.4.
|
|
113
|
+
"@eslint/markdown": "^6.2.2",
|
|
114
|
+
"@stylistic/eslint-plugin": "^3.0.0",
|
|
115
|
+
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
116
|
+
"@typescript-eslint/parser": "^8.21.0",
|
|
117
|
+
"@unocss/eslint-plugin": "^65.4.3",
|
|
121
118
|
"@vitest/eslint-plugin": "^1.1.25",
|
|
122
119
|
"eslint-config-flat-gitignore": "^1.0.0",
|
|
123
|
-
"eslint-flat-config-utils": "^
|
|
120
|
+
"eslint-flat-config-utils": "^2.0.0",
|
|
124
121
|
"eslint-merge-processors": "^1.0.0",
|
|
125
|
-
"eslint-plugin-antfu": "^
|
|
126
|
-
"eslint-plugin-command": "^
|
|
122
|
+
"eslint-plugin-antfu": "^3.0.0",
|
|
123
|
+
"eslint-plugin-command": "^3.0.0",
|
|
127
124
|
"eslint-plugin-format": "^1.0.1",
|
|
128
125
|
"eslint-plugin-import-x": "^4.6.1",
|
|
129
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
130
|
-
"eslint-plugin-jsonc": "^2.
|
|
126
|
+
"eslint-plugin-jsdoc": "^50.6.3",
|
|
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.7.0",
|
|
134
131
|
"eslint-plugin-regexp": "^2.7.0",
|
|
135
132
|
"eslint-plugin-sonarjs": "^3.0.1",
|
|
136
133
|
"eslint-plugin-toml": "^0.12.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
|
}
|