mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-13 04:17:49 +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
|
||||
}]
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user