mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Minimal eslint config. (#3015)
This commit is contained in:
35
.eslintrc.js
Normal file
35
.eslintrc.js
Normal 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
|
||||
}]
|
||||
}
|
||||
};
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user