Minimal eslint config. (#3015)

This commit is contained in:
Michał Lipiński
2017-02-17 22:15:52 +01:00
committed by GitHub
parent a61f41a79a
commit b87bd5250b
2 changed files with 37 additions and 0 deletions

35
.eslintrc.js Normal file
View File

@@ -0,0 +1,35 @@
module.exports = {
'extends': ['plugin:import/errors'],
'plugins': ['import'],
'env': {
'es6': true
},
'parserOptions': {
'ecmaVersion': 6,
'sourceType': 'module',
'ecmaFeatures': {
'impliedStrict': true,
'objectLiteralDuplicateProperties': false
}
},
'rules': {
'comma-dangle': ['error', 'never'],
'indent': ['error', 2, {
'SwitchCase': 1
}],
'max-len': ['error', {
'code': 180,
'ignoreComments': true,
'ignoreRegExpLiterals': true
}],
'no-const-assign': 'error',
'quotes': ['error', 'single', {
'avoidEscape': true,
'allowTemplateLiterals': true
}]
}
};