mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
42 lines
899 B
JSON
42 lines
899 B
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"jquery": true,
|
|
"es6": true,
|
|
"node": true
|
|
},
|
|
"plugins": ["flowtype", "react", "prettier"],
|
|
"extends": ["airbnb", "prettier", "prettier/react"],
|
|
"parser": "babel-eslint",
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": 2016,
|
|
"ecmaFeatures": {
|
|
"impliedStrict": true,
|
|
"jsx": true
|
|
}
|
|
},
|
|
"rules": {
|
|
"import/extensions": "off",
|
|
"import/no-unresolved": "off",
|
|
// Because of flow-typed & flow-bin
|
|
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
|
|
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
|
|
"spaced-comment": [
|
|
"error",
|
|
"always",
|
|
{
|
|
"markers": ["="]
|
|
}
|
|
],
|
|
"lines-around-comment": [
|
|
"warn",
|
|
{
|
|
"beforeLineComment": false
|
|
}
|
|
]
|
|
},
|
|
"globals": {
|
|
"_": true
|
|
}
|
|
}
|