@coderwyd/eslint-config 4.10.2 → 4.10.4
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/cli.mjs +1 -1
- package/dist/index.d.mts +10 -7
- package/dist/index.mjs +3 -2
- package/package.json +5 -5
package/dist/cli.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import prompts from "prompts";
|
|
|
9
9
|
import { execSync } from "node:child_process";
|
|
10
10
|
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "4.10.
|
|
12
|
+
var version = "4.10.4";
|
|
13
13
|
var devDependencies = {
|
|
14
14
|
"@eslint-react/eslint-plugin": "catalog:peer",
|
|
15
15
|
"@eslint/config-inspector": "catalog:dev",
|
package/dist/index.d.mts
CHANGED
|
@@ -2763,12 +2763,12 @@ interface RuleOptions {
|
|
|
2763
2763
|
*/
|
|
2764
2764
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
|
|
2765
2765
|
/**
|
|
2766
|
-
* Prevents unnecessary
|
|
2766
|
+
* Prevents unnecessary '$' symbols before JSX expressions.
|
|
2767
2767
|
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
2768
2768
|
*/
|
|
2769
2769
|
'react/jsx-dollar'?: Linter.RuleEntry<[]>;
|
|
2770
2770
|
/**
|
|
2771
|
-
* Enforces
|
|
2771
|
+
* Enforces 'key' prop placement before spread props.
|
|
2772
2772
|
* @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
|
|
2773
2773
|
*/
|
|
2774
2774
|
'react/jsx-key-before-spread'?: Linter.RuleEntry<[]>;
|
|
@@ -2783,7 +2783,7 @@ interface RuleOptions {
|
|
|
2783
2783
|
*/
|
|
2784
2784
|
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
|
|
2785
2785
|
/**
|
|
2786
|
-
* Disallows
|
|
2786
|
+
* Disallows immediately-invoked function expressions in JSX.
|
|
2787
2787
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-iife
|
|
2788
2788
|
*/
|
|
2789
2789
|
'react/jsx-no-iife'?: Linter.RuleEntry<[]>;
|
|
@@ -2793,12 +2793,12 @@ interface RuleOptions {
|
|
|
2793
2793
|
*/
|
|
2794
2794
|
'react/jsx-no-undef'?: Linter.RuleEntry<[]>;
|
|
2795
2795
|
/**
|
|
2796
|
-
* Enforces
|
|
2796
|
+
* Enforces shorthand syntax for boolean props.
|
|
2797
2797
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean
|
|
2798
2798
|
*/
|
|
2799
2799
|
'react/jsx-shorthand-boolean'?: Linter.RuleEntry<ReactJsxShorthandBoolean>;
|
|
2800
2800
|
/**
|
|
2801
|
-
* Enforces
|
|
2801
|
+
* Enforces shorthand syntax for fragment elements.
|
|
2802
2802
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment
|
|
2803
2803
|
*/
|
|
2804
2804
|
'react/jsx-shorthand-fragment'?: Linter.RuleEntry<ReactJsxShorthandFragment>;
|
|
@@ -2808,7 +2808,7 @@ interface RuleOptions {
|
|
|
2808
2808
|
*/
|
|
2809
2809
|
'react/jsx-uses-react'?: Linter.RuleEntry<[]>;
|
|
2810
2810
|
/**
|
|
2811
|
-
* Marks
|
|
2811
|
+
* Marks JSX element variables as used.
|
|
2812
2812
|
* @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
|
|
2813
2813
|
*/
|
|
2814
2814
|
'react/jsx-uses-vars'?: Linter.RuleEntry<[]>;
|
|
@@ -14824,7 +14824,10 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
14824
14824
|
/**
|
|
14825
14825
|
* Enable tainwindcss rules.
|
|
14826
14826
|
*
|
|
14827
|
-
*
|
|
14827
|
+
* Requires installing:
|
|
14828
|
+
* - `eslint-plugin-tailwindcss`
|
|
14829
|
+
*
|
|
14830
|
+
* @default false
|
|
14828
14831
|
*/
|
|
14829
14832
|
tailwindcss?: boolean | OptionsOverrides;
|
|
14830
14833
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -646,12 +646,13 @@ async function pnpm() {
|
|
|
646
646
|
|
|
647
647
|
//#endregion
|
|
648
648
|
//#region src/configs/prettier.ts
|
|
649
|
-
const
|
|
649
|
+
const rules = prettierRules.rules;
|
|
650
|
+
delete rules["vue/html-self-closing"];
|
|
650
651
|
function prettier() {
|
|
651
652
|
return [{
|
|
652
653
|
name: "coderwyd/prettier/rules",
|
|
653
654
|
rules: {
|
|
654
|
-
...
|
|
655
|
+
...rules,
|
|
655
656
|
"arrow-body-style": "off",
|
|
656
657
|
"prefer-arrow-callback": "off"
|
|
657
658
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coderwyd/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.10.
|
|
4
|
+
"version": "4.10.4",
|
|
5
5
|
"description": "Donny's ESLint config",
|
|
6
6
|
"author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@antfu/install-pkg": "^1.1.0",
|
|
75
75
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
|
|
76
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
77
|
-
"@typescript-eslint/parser": "^8.
|
|
76
|
+
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
77
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
78
78
|
"@vitest/eslint-plugin": "^1.6.6",
|
|
79
79
|
"cac": "^6.7.14",
|
|
80
80
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
95
95
|
"eslint-plugin-vue": "^10.7.0",
|
|
96
96
|
"eslint-plugin-yml": "^3.0.0",
|
|
97
|
-
"globals": "^17.
|
|
97
|
+
"globals": "^17.2.0",
|
|
98
98
|
"jsonc-eslint-parser": "^2.4.2",
|
|
99
99
|
"local-pkg": "^1.1.2",
|
|
100
100
|
"parse-gitignore": "^2.0.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"yaml-eslint-parser": "^2.0.0"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@eslint-react/eslint-plugin": "^2.7.
|
|
106
|
+
"@eslint-react/eslint-plugin": "^2.7.4",
|
|
107
107
|
"@eslint/config-inspector": "^1.4.2",
|
|
108
108
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
109
109
|
"@types/node": "^25.0.10",
|