mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +08:00
import eslint
This commit is contained in:
parent
d9d417e818
commit
5718822f1b
@ -11,13 +11,15 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
"react"
|
||||
"react",
|
||||
"import"
|
||||
],
|
||||
rules: {
|
||||
"indent": ["error", 2, { "SwitchCase": 1 }],
|
||||
"react/display-name": ["off"],
|
||||
"react/jsx-indent": ["error", 2],
|
||||
"comma-dangle": ["error", "only-multiline"],
|
||||
"no-console": ["off"]
|
||||
"no-console": ["off"],
|
||||
"import/no-unresolved": ["error"]
|
||||
}
|
||||
}
|
||||
|
@ -5,5 +5,5 @@ import Interface from './reducer/Interface/Interface.js'
|
||||
export default {
|
||||
group,
|
||||
LoginRedux,
|
||||
Interface,
|
||||
Interface
|
||||
}
|
||||
|
@ -60,6 +60,7 @@
|
||||
"buffer-shims": "^1.0.0",
|
||||
"css-loader": "^0.28.4",
|
||||
"eslint": "^3.19.0",
|
||||
"eslint-plugin-import": "^2.2.0",
|
||||
"eslint-plugin-react": "^7.1.0",
|
||||
"express": "^4.15.3",
|
||||
"extract-text-webpack-plugin": "^1.0.1",
|
||||
|
Loading…
Reference in New Issue
Block a user