@ethang/eslint-config 18.4.6 → 18.4.8

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
@@ -2,10 +2,13 @@
2
2
 
3
3
  [View Config](https://eslint-config-ethang.pages.dev/rules)
4
4
 
5
- * 524 errored rules.
5
+ Do **NOT** use this with Prettier! Styling rules are included.
6
+
7
+ * 615 errored rules.
6
8
  * 142 rules from vanilla EsLint
7
9
  * 113 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
8
10
  * 104 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
11
+ * 92 rules from [@stylistic/eslint-plugin](https://eslint.style/)
9
12
  * 42 rules from [eslint-plugin-lodash](https://github.com/wix-incubator/eslint-plugin-lodash)
10
13
  * 35 rules from [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
11
14
  * 32 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs)
@@ -17,7 +20,6 @@
17
20
  * 3 rules from [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
18
21
  * 1 rule from [eslint-plugin-depend](https://github.com/es-tooling/eslint-plugin-depend/tree/main)
19
22
  * 1 rule from [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat)
20
- * Includes Prettier built-in (do NOT use this with a separate Prettier config.)
21
23
 
22
24
  # Add Even More!
23
25
  * 51 rules for **Astro**
@@ -33,7 +35,7 @@
33
35
 
34
36
  # Install
35
37
 
36
- `pnpm i -D eslint prettier typescript-eslint @ethang/eslint-config`
38
+ `pnpm i -D eslint typescript-eslint @ethang/eslint-config`
37
39
 
38
40
  **Requires TypesScript and tsconfig.json at root directory.**
39
41
 
@@ -79,11 +81,3 @@ This config will also lint for browserslist features. Make sure to set this in p
79
81
  "maintained node versions"
80
82
  ]
81
83
  ```
82
-
83
- **.gitattributes**
84
-
85
- Line breaks are enforced for Unix style. (\n, not \r\n). It's highly recommended reflecting this in .gitattributes
86
-
87
- ```githubexpressionlanguage
88
- * text eol=crlf
89
- ```
package/eslint.config.js CHANGED
@@ -579,7 +579,7 @@ export default tseslint.config({
579
579
  "stylistic/new-parens": "error",
580
580
  "stylistic/newline-per-chained-call": "error",
581
581
  "stylistic/no-confusing-arrow": "error",
582
- "stylistic/no-extra-parens": "error",
582
+ "stylistic/no-extra-parens": ["error", "all", { ignoreJSX: "multi-line" }],
583
583
  "stylistic/no-extra-semi": "error",
584
584
  "stylistic/no-floating-decimal": "error",
585
585
  "stylistic/no-mixed-operators": "error",
@@ -604,7 +604,11 @@ export default tseslint.config({
604
604
  "stylistic/semi-spacing": "error",
605
605
  "stylistic/semi-style": "error",
606
606
  "stylistic/space-before-blocks": "error",
607
- "stylistic/space-before-function-paren": "error",
607
+ "stylistic/space-before-function-paren": ["error", {
608
+ anonymous: "always",
609
+ named: "never",
610
+ asyncArrow: "always"
611
+ }],
608
612
  "stylistic/space-in-parens": "error",
609
613
  "stylistic/space-infix-ops": "error",
610
614
  "stylistic/space-unary-ops": "error",
@@ -624,15 +628,15 @@ export default tseslint.config({
624
628
  "stylistic/jsx-equals-spacing": "error",
625
629
  "stylistic/jsx-first-prop-new-line": "error",
626
630
  "stylistic/jsx-function-call-newline": "error",
627
- "stylistic/jsx-indent-props": "error",
631
+ "stylistic/jsx-indent-props": ["error", 2],
628
632
  "stylistic/jsx-max-props-per-line": "error",
629
- "stylistic/jsx-newline": "error",
633
+ "stylistic/jsx-newline": ["error", { prevent: true }],
630
634
  "stylistic/jsx-one-expression-per-line": "error",
631
635
  "stylistic/jsx-pascal-case": "error",
632
636
  "stylistic/jsx-props-no-multi-spaces": "error",
633
637
  "stylistic/jsx-self-closing-comp": "error",
634
638
  "stylistic/jsx-tag-spacing": "error",
635
- "stylistic/jsx-wrap-multilines": "error",
639
+ "stylistic/jsx-wrap-multilines": ["error", { declaration: "parens-new-line" }],
636
640
  "stylistic/member-delimiter-style": "error",
637
641
  "stylistic/type-annotation-spacing": "error",
638
642
  "stylistic/indent-binary-ops": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "18.4.6",
3
+ "version": "18.4.8",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -16,7 +16,7 @@
16
16
  "author": "Ethan Glover",
17
17
  "license": "ISC",
18
18
  "peerDependencies": {
19
- "@eslint-react/eslint-plugin": "^1.9.0",
19
+ "@eslint-react/eslint-plugin": "^1.9.1",
20
20
  "@eslint/js": "^9.8.0",
21
21
  "@stylistic/eslint-plugin": "^2.6.1",
22
22
  "@tanstack/eslint-plugin-query": "^5.51.15",
@@ -39,7 +39,7 @@
39
39
  "typescript-eslint": "^8.0.1"
40
40
  },
41
41
  "dependencies": {
42
- "@eslint-react/eslint-plugin": "^1.9.0",
42
+ "@eslint-react/eslint-plugin": "^1.9.1",
43
43
  "@eslint/js": "^9.8.0",
44
44
  "@stylistic/eslint-plugin": "^2.6.1",
45
45
  "@tanstack/eslint-plugin-query": "^5.51.15",