@vinicunca/eslint-config 2.15.8 → 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 CHANGED
@@ -14441,7 +14441,7 @@ type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent
14441
14441
  // ----- style/quotes -----
14442
14442
  type StyleQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
14443
14443
  avoidEscape?: boolean
14444
- allowTemplateLiterals?: boolean
14444
+ allowTemplateLiterals?: (boolean | ("never" | "avoidEscape" | "always"))
14445
14445
  ignoreStringLiterals?: boolean
14446
14446
  })]
14447
14447
  // ----- style/rest-spread-spacing -----
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 ? OFF : ERROR,
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, { disallowTypeAnnotations: false, prefer: "type-imports" }],
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": "2.15.8",
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",
@@ -114,19 +111,19 @@
114
111
  "@clack/prompts": "^0.9.1",
115
112
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
116
113
  "@eslint/markdown": "^6.2.2",
117
- "@stylistic/eslint-plugin": "^2.13.0",
114
+ "@stylistic/eslint-plugin": "^3.0.0",
118
115
  "@typescript-eslint/eslint-plugin": "^8.21.0",
119
116
  "@typescript-eslint/parser": "^8.21.0",
120
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": "^1.1.0",
120
+ "eslint-flat-config-utils": "^2.0.0",
124
121
  "eslint-merge-processors": "^1.0.0",
125
- "eslint-plugin-antfu": "^2.7.0",
126
- "eslint-plugin-command": "^2.1.0",
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.2",
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",
@@ -149,8 +146,9 @@
149
146
  "scripts": {
150
147
  "lint": "eslint -v",
151
148
  "test": "vitest",
152
- "build": "pnpm run typegen && tsup --format esm,cjs --clean --dts",
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
  }