[skip ci] add react linting
This commit is contained in:
parent
522fdcd15d
commit
18fdc33ee7
37 changed files with 884 additions and 97 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue