scinote-web/.eslintrc.json

43 lines
899 B
JSON
Raw Normal View History

{
"env": {
"browser": true,
2017-07-13 20:30:12 +08:00
"jquery": true,
"es6": true,
"node": true
},
"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
}
},
"rules": {
2017-09-19 19:33:43 +08:00
"import/extensions": "off",
"import/no-unresolved": "off",
// 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"] }],
"spaced-comment": [
"error",
"always",
{
"markers": ["="]
}
],
"lines-around-comment": [
"warn",
{
"beforeLineComment": false
}
]
},
"globals": {
"_": true
}
}