hexo-theme-amane/.eslintrc.json

67 lines
1009 B
JSON
Raw Normal View History

2019-12-22 03:42:54 +00:00
{
"extends": [
"hexo",
2019-12-24 19:16:42 +00:00
"plugin:react/recommended",
"plugin:json/recommended"
],
"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": {
"react/jsx-uses-vars": "error",
2019-12-22 03:42:54 +00:00
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"react/no-unknown-property": [
"error",
{
"ignore": [
"class",
"onclick",
2019-12-24 23:05:37 +00:00
"onload",
"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
]
}
}