chore: update ESLint rule
use explicit 'toArray' over the vague 'get'
This commit is contained in:
parent
f256c9707a
commit
06a6db7ff7
|
|
@ -95,6 +95,12 @@ export default [{
|
|||
'no-multi-str': 'error',
|
||||
'no-new-func': 'error',
|
||||
'no-restricted-imports': 'error',
|
||||
|
||||
'no-restricted-syntax': ['warn', {
|
||||
selector: "CallExpression[callee.property.name='get'][arguments.length=0]",
|
||||
message: "Please use toArray instead.",
|
||||
}],
|
||||
|
||||
'no-unneeded-ternary': 'error',
|
||||
'no-useless-computed-key': 'error',
|
||||
'no-useless-concat': 'warn',
|
||||
|
|
|
|||
Loading…
Reference in New Issue