mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
nit: add new-ish ESLint rules to config
This commit is contained in:
parent
2db9d9d671
commit
324b73db42
@ -23,6 +23,7 @@ module.exports = {
|
||||
'no-control-regex': 'error',
|
||||
'no-debugger': 'error',
|
||||
'no-dupe-args': 'error',
|
||||
'no-dupe-else-if': 'error',
|
||||
'no-dupe-keys': 'error',
|
||||
'no-duplicate-case': 'error',
|
||||
'no-empty': 'error',
|
||||
@ -40,6 +41,7 @@ module.exports = {
|
||||
'no-obj-calls': 'error',
|
||||
'no-prototype-builtins': 'error',
|
||||
'no-regex-spaces': 'error',
|
||||
'no-setter-return': 'error',
|
||||
'no-sparse-arrays': 'error',
|
||||
'no-template-curly-in-string': 'error',
|
||||
'no-unexpected-multiline': 'error',
|
||||
@ -63,11 +65,13 @@ module.exports = {
|
||||
'dot-location': ['error', 'property'],
|
||||
'dot-notation': 'error',
|
||||
eqeqeq: ['error', 'smart'],
|
||||
'grouped-accessor-pairs': 'error',
|
||||
'guard-for-in': 'error',
|
||||
'max-classes-per-file': 'off',
|
||||
'no-alert': 'error',
|
||||
'no-caller': 'error',
|
||||
'no-case-declarations': 'error',
|
||||
'no-constructor-return': 'off',
|
||||
'no-div-regex': 'error',
|
||||
'no-else-return': 'off',
|
||||
'no-empty-function': 'error',
|
||||
@ -275,6 +279,7 @@ module.exports = {
|
||||
next: ['const', 'let', 'var']
|
||||
}
|
||||
],
|
||||
'prefer-exponentiation-operator': 'error',
|
||||
'prefer-object-spread': 'off',
|
||||
'quote-props': 'off',
|
||||
quotes: ['error', 'single', 'avoid-escape'],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user