@ethang/eslint-config 19.7.2 → 19.7.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/README.md CHANGED
@@ -5,9 +5,9 @@
5
5
  > [!CAUTION]
6
6
  > Do not use this with Prettier! Styling rules are included.
7
7
 
8
- - 887 errored rules.
8
+ - 886 errored rules.
9
9
  - 289 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/SonarJS/blob/master/packages/jsts/src/rules/README.md)
10
- - 145 rules from [@eslint/js](https://github.com/eslint/eslint/tree/main/packages/js)
10
+ - 144 rules from [@eslint/js](https://github.com/eslint/eslint/tree/main/packages/js)
11
11
  - 113 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
12
12
  - 103 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
13
13
  - 91 rules from [@stylistic/eslint-plugin](https://eslint.style/)
package/eslint.config.js CHANGED
@@ -146,7 +146,7 @@ export default tseslint.config(
146
146
  "no-delete-var": "error",
147
147
  "no-div-regex": "error",
148
148
  "no-dupe-args": "error",
149
- "no-dupe-class-members": "error",
149
+ "no-dupe-class-members": "off",
150
150
  "no-dupe-else-if": "error",
151
151
  "no-dupe-keys": "error",
152
152
  "no-duplicate-case": "error",
@@ -1094,7 +1094,7 @@ export default tseslint.config(
1094
1094
  "perfectionist/sort-named-exports": "error",
1095
1095
  "perfectionist/sort-named-imports": "error",
1096
1096
  "perfectionist/sort-object-types": "error",
1097
- "perfectionist/sort-objects": "error",
1097
+ "perfectionist/sort-objects": ["error", { partitionByComment: true }],
1098
1098
  "perfectionist/sort-sets": "error",
1099
1099
  "perfectionist/sort-svelte-attributes": [
1100
1100
  "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "19.7.2",
3
+ "version": "19.7.4",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
package/setup/eslint.ts CHANGED
@@ -96,6 +96,10 @@ const changedRules = [
96
96
  name: "no-array-constructor",
97
97
  rule: "off",
98
98
  },
99
+ {
100
+ name: "no-dupe-class-members",
101
+ rule: "off",
102
+ },
99
103
  {
100
104
  name: "no-empty-function",
101
105
  rule: "off",
@@ -38,6 +38,10 @@ const customRules = [
38
38
  name: "sort-jsx-props",
39
39
  rule: ["error", { groups: ["shorthand", "multiline"] }],
40
40
  },
41
+ {
42
+ name: "sort-objects",
43
+ rule: ["error", { partitionByComment: true }],
44
+ },
41
45
  {
42
46
  name: "sort-svelte-attributes",
43
47
  rule: [