2019-12-22 03:42:54 +00:00
|
|
|
{
|
2019-12-24 05:36:39 +00:00
|
|
|
"extends": [
|
|
|
|
"hexo",
|
2019-12-24 19:16:42 +00:00
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:json/recommended"
|
2019-12-24 05:36:39 +00:00
|
|
|
],
|
|
|
|
"settings": {
|
|
|
|
"node": {
|
|
|
|
"tryExtensions": [
|
|
|
|
".js",
|
|
|
|
".jsx",
|
|
|
|
".json"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"react": {
|
|
|
|
"version": "16.0"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
},
|
2023-01-30 10:38:59 +00:00
|
|
|
"sourceType": "module",
|
|
|
|
"ecmaVersion": "latest"
|
2019-12-24 05:36:39 +00:00
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"react"
|
|
|
|
],
|
2019-12-22 03:42:54 +00:00
|
|
|
"rules": {
|
2019-12-24 05:36:39 +00:00
|
|
|
"react/jsx-uses-vars": "error",
|
2019-12-22 03:42:54 +00:00
|
|
|
"indent": [
|
|
|
|
"error",
|
|
|
|
4,
|
|
|
|
{
|
|
|
|
"SwitchCase": 1
|
|
|
|
}
|
2019-12-24 05:36:39 +00:00
|
|
|
],
|
|
|
|
"react/no-unknown-property": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"ignore": [
|
|
|
|
"class",
|
|
|
|
"onclick",
|
2019-12-24 23:05:37 +00:00
|
|
|
"onload",
|
2020-03-09 06:45:43 +00:00
|
|
|
"onsubmit",
|
|
|
|
"crossorigin"
|
2019-12-24 05:36:39 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"react/react-in-jsx-scope": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"react/prop-types": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"react/display-name": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"react/jsx-key": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"react/jsx-no-target-blank": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allowReferrer": true
|
|
|
|
}
|
2019-12-22 03:42:54 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|