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
}]
}
};

View File

@@ -40,6 +40,8 @@
"docdown": "~0.7.2",
"dojo": "^1.12.1",
"ecstatic": "^2.1.0",
"eslint": "^3.15.0",
"eslint-plugin-import": "^2.2.0",
"fs-extra": "~1.0.0",
"glob": "^7.1.1",
"istanbul": "0.4.5",