@ethang/eslint-config 18.2.0 → 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
@@ -25,8 +25,11 @@
25
25
  * 51 rules from [eslint-plugin-astro](https://github.com/ota-meshi/eslint-plugin-astro)
26
26
  * 72 rules for **React**
27
27
  * `import configReact from "@ethang/eslint-config/config.react.js";`
28
- * 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/)
29
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)
30
33
 
31
34
  # Install
32
35
 
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.2.0",
3
+ "version": "18.3.0",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -29,9 +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
34
  "eslint-plugin-react-hooks": "^4.6.2",
35
+ "eslint-plugin-solid": "^0.14.1",
35
36
  "eslint-plugin-sonarjs": "1.0.4",
36
37
  "eslint-plugin-tailwindcss": "^3.17.4",
37
38
  "eslint-plugin-unicorn": "^55.0.0",
@@ -53,9 +54,10 @@
53
54
  "eslint-plugin-jsx-a11y": "^6.9.0",
54
55
  "eslint-plugin-lodash": "^8.0.0",
55
56
  "eslint-plugin-n": "^17.10.1",
56
- "eslint-plugin-perfectionist": "^3.1.0",
57
+ "eslint-plugin-perfectionist": "^3.1.1",
57
58
  "eslint-plugin-prettier": "^5.2.1",
58
59
  "eslint-plugin-react-hooks": "^4.6.2",
60
+ "eslint-plugin-solid": "^0.14.1",
59
61
  "eslint-plugin-sonarjs": "1.0.4",
60
62
  "eslint-plugin-tailwindcss": "^3.17.4",
61
63
  "eslint-plugin-unicorn": "^55.0.0",
@@ -64,7 +66,7 @@
64
66
  "typescript-eslint": "^8.0.0"
65
67
  },
66
68
  "devDependencies": {
67
- "@ethang/project-builder": "^1.1.53",
69
+ "@ethang/project-builder": "^1.2.0",
68
70
  "@tsconfig/node-lts": "^20.1.3",
69
71
  "@tsconfig/strictest": "^2.0.5"
70
72
  }