Created
February 20, 2017 08:52
-
-
Save bloatfan/4e9313893d42d83e90da978f6cb48e63 to your computer and use it in GitHub Desktop.
.eslintrc.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style | |
'extends': 'standard', | |
'env': { | |
'browser': true, | |
'commonjs': true, | |
'es6': true, | |
'node': true | |
}, | |
'globals': { | |
"console": true, | |
'WeixinJSBridge': true | |
}, | |
'extends': 'eslint:recommended', | |
'parserOptions': { | |
'sourceType': 'module', | |
'ecmaVersion': 6, | |
'ecmaFeatures': { | |
'jsx': true, | |
'module': true | |
} | |
}, | |
// required to lint *.vue files | |
'plugins': [ | |
'import', | |
'html' | |
], | |
'rules': { | |
'indent': [ | |
'error', | |
2 | |
], | |
'linebreak-style': [ | |
'error', | |
'unix' | |
], | |
'quotes': [ | |
'error', | |
'single' | |
], | |
'semi': [ | |
'error', | |
'always' | |
] | |
}, | |
'settings': { | |
'import/extensions': [ | |
'.js', '.vue' | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment