@ethang/eslint-config 18.1.10 → 18.3.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 CHANGED
@@ -2,18 +2,21 @@
2
2
 
3
3
  [View Config](https://eslint-config-ethang.pages.dev/rules)
4
4
 
5
- * 494 errored rules.
5
+ * 524 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
+ * 42 rules from [eslint-plugin-lodash](https://github.com/wix-incubator/eslint-plugin-lodash)
9
10
  * 35 rules from [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
10
11
  * 32 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs)
11
12
  * 20 rules from [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n/tree/67bbfdf3c6862dcbfe455a4afbd83fa60f9d1ea4)
12
13
  * 20 rules from [eslint-plugin-github](https://github.com/github/eslint-plugin-github)
13
14
  * 19 rules from [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)
15
+ * 7 rules from [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss)
14
16
  * 4 rules from [eslint-plugin-barrel-files](https://github.com/thepassle/eslint-plugin-barrel-files)
15
17
  * 3 rules from [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
16
18
  * 1 rule from [eslint-plugin-depend](https://github.com/es-tooling/eslint-plugin-depend/tree/main)
19
+ * 1 rule from [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat)
17
20
  * Includes Prettier built-in (do NOT use this with a separate Prettier config.)
18
21
 
19
22
  # Add Even More!
@@ -22,8 +25,11 @@
22
25
  * 51 rules from [eslint-plugin-astro](https://github.com/ota-meshi/eslint-plugin-astro)
23
26
  * 72 rules for **React**
24
27
  * `import configReact from "@ethang/eslint-config/config.react.js";`
25
- * 70 rules from [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react)
28
+ * 70 rules from [@eslint-react/eslint-plugin](https://eslint-react.xyz/)
26
29
  * 2 rules from [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
30
+ * 19 rules for **Solid**
31
+ * `import configSolid from "@ethang/eslint-config/config-solid.js";`
32
+ * 19 rules from [eslint-plugin-solid](https://github.com/solidjs-community/eslint-plugin-solid)
27
33
 
28
34
  # Install
29
35
 
@@ -63,7 +69,7 @@ export default tseslint.config(...config, ...astroConfig, ...reactConfig, {
63
69
  }
64
70
  ```
65
71
 
66
- ** Browserslist **
72
+ **Browserslist**
67
73
 
68
74
  This config will also lint for browserslist features. Make sure to set this in package.json. [More info.](https://github.com/browserslist/browserslist)
69
75
 
package/build.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  // @ts-check
2
- import { projectBuilder } from "@ethang/project-builder/project-builder.js";
2
+ import { projectBuilder } from '@ethang/project-builder/project-builder.js'
3
3
 
4
- await projectBuilder("eslint-config-ethang", "master", {
5
- isLibrary: true,
6
- postVersionBumpScripts: ["DEDUPE", "LINT"],
7
- preVersionBumpScripts: ["UPDATE"],
8
- tsupOptions: {
9
- bundle: true,
10
- },
11
- });
4
+ await projectBuilder('eslint-config-ethang', 'master', {
5
+ isLibrary: true,
6
+ postVersionBumpScripts: ['DEDUPE', 'LINT'],
7
+ preVersionBumpScripts: ['UPDATE'],
8
+ tsupOptions: {
9
+ bundle: true,
10
+ },
11
+ })
@@ -0,0 +1,32 @@
1
+ import solid from "eslint-plugin-solid";
2
+ import tseslint from "typescript-eslint";
3
+
4
+ import { ignores, languageOptions } from "./eslint.config.js";
5
+
6
+ export default tseslint.config({
7
+ files: ["**/*.{jsx,tsx}"],
8
+ ignores,
9
+ languageOptions,
10
+ plugins: [{ solid }],
11
+ rules: {
12
+ "solid/components-return-once": "error",
13
+ "solid/event-handlers": "error",
14
+ "solid/imports": "error",
15
+ "solid/jsx-no-duplicate-props": "error",
16
+ "solid/jsx-no-script-url": "error",
17
+ "solid/jsx-no-undef": "error",
18
+ "solid/jsx-uses-vars": "error",
19
+ "solid/no-array-handlers": "error",
20
+ "solid/no-destructure": "error",
21
+ "solid/no-innerhtml": "error",
22
+ "solid/no-proxy-apis": "error",
23
+ "solid/no-react-deps": "error",
24
+ "solid/no-react-specific-props": "error",
25
+ "solid/no-unknown-namespaces": "error",
26
+ "solid/prefer-for": "error",
27
+ "solid/prefer-show": "error",
28
+ "solid/reactivity": "error",
29
+ "solid/self-closing-comp": "error",
30
+ "solid/style-prop": "error",
31
+ },
32
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "18.1.10",
3
+ "version": "18.3.0",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -29,10 +29,10 @@
29
29
  "eslint-plugin-jsx-a11y": "^6.9.0",
30
30
  "eslint-plugin-lodash": "^8.0.0",
31
31
  "eslint-plugin-n": "^17.10.1",
32
- "eslint-plugin-perfectionist": "^3.1.0",
32
+ "eslint-plugin-perfectionist": "^3.1.1",
33
33
  "eslint-plugin-prettier": "^5.2.1",
34
- "eslint-plugin-react": "^7.35.0",
35
34
  "eslint-plugin-react-hooks": "^4.6.2",
35
+ "eslint-plugin-solid": "^0.14.1",
36
36
  "eslint-plugin-sonarjs": "1.0.4",
37
37
  "eslint-plugin-tailwindcss": "^3.17.4",
38
38
  "eslint-plugin-unicorn": "^55.0.0",
@@ -54,10 +54,10 @@
54
54
  "eslint-plugin-jsx-a11y": "^6.9.0",
55
55
  "eslint-plugin-lodash": "^8.0.0",
56
56
  "eslint-plugin-n": "^17.10.1",
57
- "eslint-plugin-perfectionist": "^3.1.0",
57
+ "eslint-plugin-perfectionist": "^3.1.1",
58
58
  "eslint-plugin-prettier": "^5.2.1",
59
- "eslint-plugin-react": "^7.35.0",
60
59
  "eslint-plugin-react-hooks": "^4.6.2",
60
+ "eslint-plugin-solid": "^0.14.1",
61
61
  "eslint-plugin-sonarjs": "1.0.4",
62
62
  "eslint-plugin-tailwindcss": "^3.17.4",
63
63
  "eslint-plugin-unicorn": "^55.0.0",
@@ -66,7 +66,7 @@
66
66
  "typescript-eslint": "^8.0.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@ethang/project-builder": "^1.1.53",
69
+ "@ethang/project-builder": "^1.2.0",
70
70
  "@tsconfig/node-lts": "^20.1.3",
71
71
  "@tsconfig/strictest": "^2.0.5"
72
72
  }