@jimmy.codes/eslint-config 6.14.3 → 6.16.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/README.md +2 -0
- package/dist/{astro-Cc3Rxusf.js → astro-CYKa1Ijk.js} +3 -2
- package/dist/{globs-CRO5v7xy.js → globs-C5FyFNuk.js} +1 -1
- package/dist/globs.js +1 -1
- package/dist/{has-dependency-7vimNBSE.js → has-dependency-lkRo7x2C.js} +1 -1
- package/dist/index.d.ts +185 -144
- package/dist/index.js +13 -13
- package/dist/{interop-default-D4l3hsYQ.js → interop-default-DQxo_rHy.js} +1 -1
- package/dist/{jest-BCatBVvc.js → jest-DBcw_I7S.js} +2 -2
- package/dist/{nextjs-Dw-jYP2k.js → nextjs-BAZ7sZb7.js} +3 -3
- package/dist/{playwright-Bbcb5Jsi.js → playwright-BXMpcaS7.js} +2 -2
- package/dist/{react-DRiOy59I.js → react-TciwSDvV.js} +5 -4
- package/dist/{storybook-BO4plVPp.js → storybook-D3Bkozqd.js} +2 -2
- package/dist/{tanstack-query-DqqVfxJs.js → tanstack-query-C0Pag-TK.js} +2 -2
- package/dist/{testing-library-lJsmjyFo.js → testing-library-DuiSlHeo.js} +2 -2
- package/dist/{typescript-D8AT5dEv.js → typescript-CWevoym8.js} +1 -1
- package/dist/{upwarn-C7t3ub-R.js → upwarn-DItTz7lt.js} +1 -1
- package/dist/{vitest-CADaM8FX.js → vitest-Bs_zrIdp.js} +2 -2
- package/package.json +16 -16
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as GLOB_IGNORES, l as GLOB_TESTS, n as GLOB_CJS } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { a as hasReact, c as hasTestingLibrary, d as hasVitest, i as hasPlaywright, l as hasTypescript, n as hasJest, o as hasReactQuery, r as hasNext, s as hasStorybook, t as hasAstro } from "./has-dependency-lkRo7x2C.js";
|
|
3
3
|
import gitignoreConfig from "eslint-config-flat-gitignore";
|
|
4
4
|
import globals from "globals";
|
|
5
5
|
import comments from "@eslint-community/eslint-plugin-eslint-comments/configs";
|
|
@@ -115,7 +115,7 @@ const additionalRules = {
|
|
|
115
115
|
"eqeqeq": "error",
|
|
116
116
|
"no-console": "warn",
|
|
117
117
|
"no-div-regex": "error",
|
|
118
|
-
"no-else-return": "error",
|
|
118
|
+
"no-else-return": ["error", { allowElseIf: false }],
|
|
119
119
|
"no-implicit-coercion": "error",
|
|
120
120
|
"no-implicit-globals": "error",
|
|
121
121
|
"no-lonely-if": "error",
|
|
@@ -478,16 +478,16 @@ const defineConfig = async ({ astro = false, autoDetect = true, gitignore = fals
|
|
|
478
478
|
stylisticConfig()
|
|
479
479
|
];
|
|
480
480
|
const featureConfigs = await Promise.all([
|
|
481
|
-
isTypescriptEnabled && unwrap(import("./typescript-
|
|
482
|
-
isReactEnabled && unwrap(import("./react-
|
|
483
|
-
isTanstackQueryEnabled && unwrap(import("./tanstack-query-
|
|
484
|
-
isAstroEnabled && unwrap(import("./astro-
|
|
485
|
-
isJestEnabled && unwrap(import("./jest-
|
|
486
|
-
isVitestEnabled && unwrap(import("./vitest-
|
|
487
|
-
isTestingLibraryEnabled && unwrap(import("./testing-library-
|
|
488
|
-
isPlaywrightEnabled && unwrap(import("./playwright-
|
|
489
|
-
isStorybookEnabled && unwrap(import("./storybook-
|
|
490
|
-
isNextjsEnabled && unwrap(import("./nextjs-
|
|
481
|
+
isTypescriptEnabled && unwrap(import("./typescript-CWevoym8.js")),
|
|
482
|
+
isReactEnabled && unwrap(import("./react-TciwSDvV.js")),
|
|
483
|
+
isTanstackQueryEnabled && unwrap(import("./tanstack-query-C0Pag-TK.js")),
|
|
484
|
+
isAstroEnabled && unwrap(import("./astro-CYKa1Ijk.js")),
|
|
485
|
+
isJestEnabled && unwrap(import("./jest-DBcw_I7S.js")),
|
|
486
|
+
isVitestEnabled && unwrap(import("./vitest-Bs_zrIdp.js")),
|
|
487
|
+
isTestingLibraryEnabled && unwrap(import("./testing-library-DuiSlHeo.js")),
|
|
488
|
+
isPlaywrightEnabled && unwrap(import("./playwright-BXMpcaS7.js")),
|
|
489
|
+
isStorybookEnabled && unwrap(import("./storybook-D3Bkozqd.js")),
|
|
490
|
+
isNextjsEnabled && unwrap(import("./nextjs-BAZ7sZb7.js"))
|
|
491
491
|
]);
|
|
492
492
|
return [
|
|
493
493
|
...gitignore ? [gitignoreConfig({ strict: false })] : [],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { interopDefault } from "./interop-default-
|
|
1
|
+
import { l as GLOB_TESTS, r as GLOB_E2E } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rules/jest.ts
|
|
5
5
|
const jestRules = async () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GLOB_NEXTJS } from "./globs-
|
|
2
|
-
import { interopDefault } from "./interop-default-
|
|
3
|
-
import { upwarn } from "./upwarn-
|
|
1
|
+
import { s as GLOB_NEXTJS } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
3
|
+
import { t as upwarn } from "./upwarn-DItTz7lt.js";
|
|
4
4
|
|
|
5
5
|
//#region src/rules/nextjs.ts
|
|
6
6
|
const nextjsRules = async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GLOB_PLAYWRIGHT } from "./globs-
|
|
2
|
-
import { interopDefault } from "./interop-default-
|
|
1
|
+
import { c as GLOB_PLAYWRIGHT } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rules/playwright.ts
|
|
5
5
|
const playwrightRules = async () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { interopDefault } from "./interop-default-
|
|
4
|
-
import { upwarn } from "./upwarn-
|
|
1
|
+
import { d as GLOB_TSX, o as GLOB_JSX } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { l as hasTypescript, r as hasNext, u as hasVite } from "./has-dependency-lkRo7x2C.js";
|
|
3
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
4
|
+
import { t as upwarn } from "./upwarn-DItTz7lt.js";
|
|
5
5
|
import globals from "globals";
|
|
6
6
|
|
|
7
7
|
//#region src/rules/react.ts
|
|
@@ -33,6 +33,7 @@ const reactRules = async () => {
|
|
|
33
33
|
"@eslint-react/dom/no-string-style-prop": "error",
|
|
34
34
|
"@eslint-react/dom/no-unsafe-target-blank": "error",
|
|
35
35
|
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "off",
|
|
36
|
+
"@eslint-react/jsx-dollar": "off",
|
|
36
37
|
"@eslint-react/jsx-key-before-spread": "error",
|
|
37
38
|
"@eslint-react/jsx-shorthand-boolean": "error",
|
|
38
39
|
"@eslint-react/jsx-shorthand-fragment": "error",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { interopDefault } from "./interop-default-
|
|
2
|
-
import { upwarn } from "./upwarn-
|
|
1
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
2
|
+
import { t as upwarn } from "./upwarn-DItTz7lt.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/storybook.ts
|
|
5
5
|
async function storybookConfig() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { interopDefault } from "./interop-default-
|
|
1
|
+
import { d as GLOB_TSX, o as GLOB_JSX } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/tanstack-query.ts
|
|
5
5
|
async function tanstackQueryConfig() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { interopDefault } from "./interop-default-
|
|
1
|
+
import { l as GLOB_TESTS, r as GLOB_E2E } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rules/testing-library.ts
|
|
5
5
|
const testingLibraryRules = async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { interopDefault } from "./interop-default-
|
|
1
|
+
import { l as GLOB_TESTS, r as GLOB_E2E } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rules/vitest.ts
|
|
5
5
|
const vitestRules = async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimmy.codes/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.16.0",
|
|
4
4
|
"description": "A simple, modern ESLint config that covers most use cases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -40,42 +40,42 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
43
|
-
"@eslint-react/eslint-plugin": "^2.
|
|
43
|
+
"@eslint-react/eslint-plugin": "^2.3.1",
|
|
44
44
|
"@eslint/js": "^9.38.0",
|
|
45
45
|
"@next/eslint-plugin-next": "^15.5.6",
|
|
46
46
|
"@stylistic/eslint-plugin": "^5.5.0",
|
|
47
47
|
"@tanstack/eslint-plugin-query": "^5.91.2",
|
|
48
48
|
"@types/eslint": "9.6.1",
|
|
49
|
-
"@typescript-eslint/parser": "^8.46.
|
|
50
|
-
"@typescript-eslint/utils": "^8.46.
|
|
51
|
-
"@vitest/eslint-plugin": "^1.
|
|
49
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
50
|
+
"@typescript-eslint/utils": "^8.46.2",
|
|
51
|
+
"@vitest/eslint-plugin": "^1.4.0",
|
|
52
52
|
"astro-eslint-parser": "^1.2.2",
|
|
53
53
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
54
54
|
"eslint-config-prettier": "^10.1.8",
|
|
55
55
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
56
|
-
"eslint-plugin-astro": "^1.
|
|
56
|
+
"eslint-plugin-astro": "^1.4.0",
|
|
57
57
|
"eslint-plugin-import-x": "^4.16.1",
|
|
58
58
|
"eslint-plugin-jest": "^29.0.1",
|
|
59
59
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
60
|
-
"eslint-plugin-jsdoc": "^61.1.
|
|
60
|
+
"eslint-plugin-jsdoc": "^61.1.11",
|
|
61
61
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
62
62
|
"eslint-plugin-n": "^17.23.1",
|
|
63
63
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
64
|
-
"eslint-plugin-playwright": "^2.
|
|
64
|
+
"eslint-plugin-playwright": "^2.3.0",
|
|
65
65
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
66
|
-
"eslint-plugin-react-dom": "^2.
|
|
67
|
-
"eslint-plugin-react-hooks": "^7.0.
|
|
68
|
-
"eslint-plugin-react-hooks-extra": "^2.
|
|
69
|
-
"eslint-plugin-react-naming-convention": "^2.
|
|
66
|
+
"eslint-plugin-react-dom": "^2.3.1",
|
|
67
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
68
|
+
"eslint-plugin-react-hooks-extra": "^2.3.1",
|
|
69
|
+
"eslint-plugin-react-naming-convention": "^2.3.1",
|
|
70
70
|
"eslint-plugin-react-refresh": "0.4.24",
|
|
71
|
-
"eslint-plugin-react-web-api": "^2.
|
|
71
|
+
"eslint-plugin-react-web-api": "^2.3.1",
|
|
72
72
|
"eslint-plugin-regexp": "^2.10.0",
|
|
73
73
|
"eslint-plugin-storybook": "0.12.0",
|
|
74
74
|
"eslint-plugin-testing-library": "^7.13.3",
|
|
75
|
-
"eslint-plugin-unicorn": "^
|
|
76
|
-
"globals": "^16.
|
|
75
|
+
"eslint-plugin-unicorn": "^62.0.0",
|
|
76
|
+
"globals": "^16.5.0",
|
|
77
77
|
"local-pkg": "^1.1.2",
|
|
78
|
-
"typescript-eslint": "^8.46.
|
|
78
|
+
"typescript-eslint": "^8.46.2"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"eslint": "^9.10.0"
|