mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-28 09:43:01 +08:00
fix eslint
This commit is contained in:
parent
b90348eabf
commit
202bc32a06
1 changed files with 8 additions and 5 deletions
|
@ -6,11 +6,7 @@
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"plugins": ["react", "prettier"],
|
"plugins": ["react", "prettier"],
|
||||||
"extends": [
|
"extends": ["airbnb", "prettier", "prettier/react"],
|
||||||
"airbnb",
|
|
||||||
"prettier",
|
|
||||||
"prettier/react"
|
|
||||||
],
|
|
||||||
"parser": "babel-eslint",
|
"parser": "babel-eslint",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
|
@ -21,6 +17,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"import/no-unresolved": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"ignore": ["app/javascript/"]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
|
||||||
"spaced-comment": [
|
"spaced-comment": [
|
||||||
"error",
|
"error",
|
||||||
"always",
|
"always",
|
||||||
|
|
Loading…
Reference in a new issue