import eslint

This commit is contained in:
zwjamnsss 2017-07-12 14:04:06 +08:00
parent d9d417e818
commit 5718822f1b
3 changed files with 6 additions and 3 deletions

View File

@ -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"]
}
}

View File

@ -5,5 +5,5 @@ import Interface from './reducer/Interface/Interface.js'
export default {
group,
LoginRedux,
Interface,
Interface
}

View File

@ -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",