Skip to content

Instantly share code, notes, and snippets.

@bloatfan
Created February 20, 2017 08:52
Show Gist options
  • Save bloatfan/4e9313893d42d83e90da978f6cb48e63 to your computer and use it in GitHub Desktop.
Save bloatfan/4e9313893d42d83e90da978f6cb48e63 to your computer and use it in GitHub Desktop.
.eslintrc.js
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