@ethang/eslint-config 17.6.1 → 18.0.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.
Files changed (3) hide show
  1. package/README.md +12 -5
  2. package/eslint.config.js +543 -861
  3. package/package.json +1 -7
package/README.md CHANGED
@@ -2,20 +2,26 @@
2
2
 
3
3
  [View Config](https://eslint-config-ethang.pages.dev/rules)
4
4
 
5
- * 597 errored rules.
5
+ * 468 errored rules.
6
6
  * 142 rules from vanilla EsLint
7
7
  * 113 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
8
8
  * 104 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
9
- * 75 rules from [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react)
10
- * 51 rules from [eslint-plugin-astro](https://www.npmjs.com/package/eslint-plugin-astro)
11
9
  * 35 rules from [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
12
10
  * 32 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs)
13
11
  * 20 rules from [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n/tree/67bbfdf3c6862dcbfe455a4afbd83fa60f9d1ea4)
14
12
  * 19 rules from [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)
15
13
  * 3 rules from [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
16
- * 2 rules from [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
17
14
  * Includes Prettier built in (do NOT use this with a separate Prettier config.)
18
15
 
16
+ # Add Even More!
17
+ * 51 rules for **Astro**.
18
+ * install [@ethang/eslint-config-astro](https://github.com/eglove/eslint-config-ethang-astro)
19
+ * 51 rules from [eslint-plugin-astro](https://github.com/ota-meshi/eslint-plugin-astro)
20
+ * 77 rules for **React**.
21
+ * install [@ethang/eslint-config-react](https://github.com/eglove/eslint-config-ethang-react)
22
+ * 75 rules from [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react)
23
+ * 2 rules from [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
24
+
19
25
  # Install
20
26
 
21
27
  `pnpm i -D eslint prettier typescript-eslint @ethang/eslint-config`
@@ -29,8 +35,9 @@ In **eslint.config.js**
29
35
  ```js
30
36
  import config from "@ethang/eslint-config/eslint.config.js";
31
37
  import tseslint from "typescript-eslint";
38
+ import astroConfig from "@ethang/eslint-config-astro" // OPTIONAL
32
39
 
33
- export default tseslint.config(...config, {
40
+ export default tseslint.config(...config, ...astroConfig, {
34
41
  ignores: ["dist/"], // Your ignores directories
35
42
  languageOptions: {
36
43
  parserOptions: {