Chore: Fix `import/order`ing for image imports (#105055)

pull/105063/head
Tom Ratcliffe 2 months ago committed by GitHub
parent 125200c566
commit ec478138a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      eslint.config.js

@ -101,9 +101,16 @@ module.exports = [
'import/order': [ 'import/order': [
'error', 'error',
{ {
pathGroups: [
{
pattern: 'img/**',
group: 'internal',
},
],
groups: [['builtin', 'external'], 'internal', 'parent', 'sibling', 'index'], groups: [['builtin', 'external'], 'internal', 'parent', 'sibling', 'index'],
'newlines-between': 'always', 'newlines-between': 'always',
alphabetize: { order: 'asc' }, alphabetize: { order: 'asc' },
pathGroupsExcludedImportTypes: ['builtin'],
}, },
], ],
'no-restricted-imports': [ 'no-restricted-imports': [

Loading…
Cancel
Save