參考文檔javascript
http://www.cnblogs.com/hahazexia/p/6393212.html
html
http://blog.guowenfh.com/2016/08/07/ESLint-Rules/vue
官網java
http://eslint.org/docs/rules/git
配置github
// http://eslint.org/docs/user-guide/configuringmodule.exports = { root: true, parser: 'babel-eslint', parserOptions: { sourceType: 'module' }, env: { browser: true, }, // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style extends: 'standard', // required to lint *.vue files plugins: [ 'html' ], // add your custom rules here 'rules': { // 規則 // allow paren-less arrow functions--容許箭頭函數前面不寫空格 'arrow-parens': 0, // allow async-await 'generator-star-spacing': 0, // allow debugger during development 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, // 不容許在生產環境使用debug 'semi': ['error', 'always'], // 結尾強制有分號 'indent': 0, 'space-before-function-paren': 0 // 能夠xx(){} 原來 xx () {} }}