@ethang/eslint-config 17.6.2 → 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.
- package/README.md +10 -6
- package/eslint.config.js +543 -641
- package/package.json +1 -5
package/README.md
CHANGED
|
@@ -2,22 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
[View Config](https://eslint-config-ethang.pages.dev/rules)
|
|
4
4
|
|
|
5
|
-
*
|
|
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
9
|
* 35 rules from [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
|
|
11
10
|
* 32 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs)
|
|
12
11
|
* 20 rules from [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n/tree/67bbfdf3c6862dcbfe455a4afbd83fa60f9d1ea4)
|
|
13
12
|
* 19 rules from [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)
|
|
14
13
|
* 3 rules from [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
|
|
15
|
-
* 2 rules from [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
|
|
16
14
|
* Includes Prettier built in (do NOT use this with a separate Prettier config.)
|
|
17
15
|
|
|
18
16
|
# Add Even More!
|
|
19
|
-
* 51 rules for Astro
|
|
20
|
-
* install @ethang/eslint-config-astro
|
|
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)
|
|
21
24
|
|
|
22
25
|
# Install
|
|
23
26
|
|
|
@@ -32,8 +35,9 @@ In **eslint.config.js**
|
|
|
32
35
|
```js
|
|
33
36
|
import config from "@ethang/eslint-config/eslint.config.js";
|
|
34
37
|
import tseslint from "typescript-eslint";
|
|
38
|
+
import astroConfig from "@ethang/eslint-config-astro" // OPTIONAL
|
|
35
39
|
|
|
36
|
-
export default tseslint.config(...config, {
|
|
40
|
+
export default tseslint.config(...config, ...astroConfig, {
|
|
37
41
|
ignores: ["dist/"], // Your ignores directories
|
|
38
42
|
languageOptions: {
|
|
39
43
|
parserOptions: {
|