-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.solid.js
33 lines (32 loc) · 1004 Bytes
/
config.solid.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { ignores, languageOptions } from "./constants.js";
import solid from "eslint-plugin-solid";
import tseslint from "typescript-eslint";
export default tseslint.config({
files: ["**/*.{jsx,tsx}"],
ignores,
languageOptions,
plugins: {
solid: solid,
},
rules: {
"solid/components-return-once": "error",
"solid/event-handlers": "error",
"solid/imports": "error",
"solid/jsx-no-duplicate-props": "error",
"solid/jsx-no-script-url": "error",
"solid/jsx-no-undef": "error",
"solid/jsx-uses-vars": "error",
"solid/no-array-handlers": "error",
"solid/no-destructure": "error",
"solid/no-innerhtml": "error",
"solid/no-proxy-apis": "off",
"solid/no-react-deps": "error",
"solid/no-react-specific-props": "error",
"solid/no-unknown-namespaces": "error",
"solid/prefer-for": "error",
"solid/prefer-show": "error",
"solid/reactivity": "error",
"solid/self-closing-comp": "error",
"solid/style-prop": "error",
},
});