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
|
|
|
|
},
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"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",
|
2019-12-24 05:36:39 +00:00
|
|
|
"onsubmit"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"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
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|