[skip ci] add react linting

This commit is contained in:
Vendicated 2023-10-31 23:43:28 +01:00
parent 522fdcd15d
commit 18fdc33ee7
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
37 changed files with 884 additions and 97 deletions

View file

@ -9,6 +9,7 @@
"unused-imports",
"path-alias"
],
"extends": ["plugin:react/recommended", "plugin:react/jsx-runtime"],
"settings": {
"import/resolver": {
"alias": {
@ -20,6 +21,9 @@
["@components", "./src/components"]
]
}
},
"react": {
"version": "18.2"
}
},
"rules": {
@ -93,6 +97,12 @@
"unused-imports/no-unused-imports": "error",
"path-alias/no-relative": "error"
"path-alias/no-relative": "error",
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
/* we dont target ancient browsers */
"react/jsx-no-target-blank": "off"
}
}