2016-10-05 20:12:19 +08:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
2017-07-13 20:30:12 +08:00
|
|
|
"jquery": true,
|
|
|
|
"es6": true,
|
|
|
|
"node": true
|
2016-10-05 20:12:19 +08:00
|
|
|
},
|
2017-07-13 20:11:01 +08:00
|
|
|
"plugins": [
|
|
|
|
"react"
|
|
|
|
],
|
|
|
|
"extends": ["eslint:recommended", "plugin:react/recommended"],
|
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "module",
|
|
|
|
"ecmaVersion": 6,
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"impliedStrict": true,
|
|
|
|
"jsx": true
|
|
|
|
}
|
|
|
|
},
|
2016-10-05 20:12:19 +08:00
|
|
|
"rules": {
|
|
|
|
"spaced-comment": [
|
|
|
|
"error",
|
|
|
|
"always",
|
|
|
|
{
|
|
|
|
"markers": [
|
|
|
|
"="
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"lines-around-comment": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"beforeLineComment": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"quotes": [
|
|
|
|
"error",
|
|
|
|
"single",
|
|
|
|
{
|
|
|
|
"avoidEscape": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"_": true
|
|
|
|
}
|
|
|
|
}
|