@jimmy.codes/eslint-config 6.15.0 → 6.16.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/README.md CHANGED
@@ -16,6 +16,8 @@ A strict but practical ESLint config that works out of the box, adapts to your s
16
16
  - **Prevents confusion**: Flags ambiguous code, confusing promise usage, shadowed variables, and unused exports.
17
17
  - **Enforces consistency**: Standardizes imports, naming, coding style, and testing conventions.
18
18
  - **Flexible**: Easily customize or disable any part of the config.
19
+ - **Favors recommended**: Where possible, builds on top of official recommended rulesets from plugins.
20
+ - **Maintained**: Regularly updated to keep up with best practices, new tools, language features and new rules
19
21
 
20
22
  ---
21
23
 
package/dist/index.d.ts CHANGED
@@ -143,6 +143,11 @@ interface RuleOptions {
143
143
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
144
144
  */
145
145
  '@eslint-react/hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>;
146
+ /**
147
+ * Prevents dollar signs from being inserted as text nodes before expressions.
148
+ * @see https://eslint-react.xyz/docs/rules/jsx-dollar
149
+ */
150
+ '@eslint-react/jsx-dollar'?: Linter.RuleEntry<[]>;
146
151
  /**
147
152
  * Enforces that the 'key' prop is placed before the spread prop in JSX elements.
148
153
  * @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
@@ -4946,6 +4951,11 @@ interface RuleOptions {
4946
4951
  * @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-unsafe-references.md
4947
4952
  */
4948
4953
  'playwright/no-unsafe-references'?: Linter.RuleEntry<[]>;
4954
+ /**
4955
+ * Disallow usage of page locators that are not used
4956
+ * @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-unused-locators.md
4957
+ */
4958
+ 'playwright/no-unused-locators'?: Linter.RuleEntry<[]>;
4949
4959
  /**
4950
4960
  * Disallow unnecessary awaits for Playwright methods
4951
4961
  * @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-useless-await.md
@@ -5072,7 +5082,7 @@ interface RuleOptions {
5072
5082
  */
5073
5083
  'playwright/valid-expect-in-promise'?: Linter.RuleEntry<[]>;
5074
5084
  /**
5075
- * Enforce valid tag format in Playwright test blocks
5085
+ * Enforce valid tag format in Playwright test blocks and titles
5076
5086
  */
5077
5087
  'playwright/valid-test-tags'?: Linter.RuleEntry<PlaywrightValidTestTags>;
5078
5088
  /**
package/dist/index.js CHANGED
@@ -479,7 +479,7 @@ const defineConfig = async ({ astro = false, autoDetect = true, gitignore = fals
479
479
  ];
480
480
  const featureConfigs = await Promise.all([
481
481
  isTypescriptEnabled && unwrap(import("./typescript-CWevoym8.js")),
482
- isReactEnabled && unwrap(import("./react-Dmzbj6KF.js")),
482
+ isReactEnabled && unwrap(import("./react-TciwSDvV.js")),
483
483
  isTanstackQueryEnabled && unwrap(import("./tanstack-query-C0Pag-TK.js")),
484
484
  isAstroEnabled && unwrap(import("./astro-CYKa1Ijk.js")),
485
485
  isJestEnabled && unwrap(import("./jest-DBcw_I7S.js")),
@@ -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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimmy.codes/eslint-config",
3
- "version": "6.15.0",
3
+ "version": "6.16.1",
4
4
  "description": "A simple, modern ESLint config that covers most use cases.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -40,15 +40,15 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
43
- "@eslint-react/eslint-plugin": "^2.2.4",
44
- "@eslint/js": "^9.38.0",
43
+ "@eslint-react/eslint-plugin": "^2.3.1",
44
+ "@eslint/js": "^9.39.1",
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.2",
50
- "@typescript-eslint/utils": "^8.46.2",
51
- "@vitest/eslint-plugin": "^1.3.25",
49
+ "@typescript-eslint/parser": "^8.46.3",
50
+ "@typescript-eslint/utils": "^8.46.3",
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",
@@ -57,25 +57,25 @@
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.9",
60
+ "eslint-plugin-jsdoc": "^61.1.12",
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.2.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.2.4",
66
+ "eslint-plugin-react-dom": "^2.3.1",
67
67
  "eslint-plugin-react-hooks": "^7.0.1",
68
- "eslint-plugin-react-hooks-extra": "^2.2.4",
69
- "eslint-plugin-react-naming-convention": "^2.2.4",
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.2.4",
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
75
  "eslint-plugin-unicorn": "^62.0.0",
76
- "globals": "^16.4.0",
76
+ "globals": "^16.5.0",
77
77
  "local-pkg": "^1.1.2",
78
- "typescript-eslint": "^8.46.2"
78
+ "typescript-eslint": "^8.46.3"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "eslint": "^9.10.0"