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-11-10 16:30:55 +08:00
|
|
|
"plugins": ["flowtype", "react", "prettier"],
|
2017-08-09 22:14:39 +08:00
|
|
|
"extends": ["airbnb", "prettier", "prettier/react"],
|
2017-08-07 15:31:24 +08:00
|
|
|
"parser": "babel-eslint",
|
2017-07-13 20:11:01 +08:00
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "module",
|
2017-08-07 15:31:24 +08:00
|
|
|
"ecmaVersion": 2016,
|
2017-07-13 20:11:01 +08:00
|
|
|
"ecmaFeatures": {
|
|
|
|
"impliedStrict": true,
|
|
|
|
"jsx": true
|
|
|
|
}
|
|
|
|
},
|
2016-10-05 20:12:19 +08:00
|
|
|
"rules": {
|
2017-09-19 19:33:43 +08:00
|
|
|
"import/extensions": "off",
|
|
|
|
"import/no-unresolved": "off",
|
2017-11-08 15:44:36 +08:00
|
|
|
// Because of flow-typed & flow-bin
|
|
|
|
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
|
2017-08-09 22:14:39 +08:00
|
|
|
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
|
2016-10-05 20:12:19 +08:00
|
|
|
"spaced-comment": [
|
|
|
|
"error",
|
|
|
|
"always",
|
|
|
|
{
|
2017-08-04 15:39:42 +08:00
|
|
|
"markers": ["="]
|
2016-10-05 20:12:19 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"lines-around-comment": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"beforeLineComment": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"_": true
|
|
|
|
}
|
|
|
|
}
|