Browse Source

Prevent lodash imports

pull/7850/head
Thomas Kaul 2 weeks ago
parent
commit
18f0fc9cb8
  1. 19
      eslint.config.cjs

19
eslint.config.cjs

@ -116,7 +116,24 @@ module.exports = [
'no-eval': 'error', 'no-eval': 'error',
'no-fallthrough': 'error', 'no-fallthrough': 'error',
'no-new-wrappers': 'error', 'no-new-wrappers': 'error',
'no-restricted-imports': ['error', 'rxjs/Rx'], 'no-restricted-imports': [
'error',
{
paths: [
'rxjs/Rx',
{
message: 'Import from lodash-es instead.',
name: 'lodash'
}
],
patterns: [
{
group: ['lodash/*'],
message: 'Import from lodash-es instead.'
}
]
}
],
'no-undef-init': 'error', 'no-undef-init': 'error',
'no-underscore-dangle': 'off', 'no-underscore-dangle': 'off',
'no-var': 'error', 'no-var': 'error',

Loading…
Cancel
Save