Skip to content

Commit 011e192

Browse files
authored
Allow array values for plugin settings (#14)
Closes #8
1 parent 9ca9688 commit 011e192

File tree

6 files changed

+644
-285
lines changed

6 files changed

+644
-285
lines changed

.changeset/tiny-chefs-pay.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'eslint-plugin-import-sorting': minor
3+
---
4+
5+
Allow array values for plugin settings
6+
Settings options now accept an array of pattern strings, instead of only a single, more convoluted, RegExp string.
7+
Closes #8

.eslintrc.cjs

+9
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ const config = {
4444
'etc/no-assign-mutated-array': 'off',
4545
'etc/prefer-less-than': 'off',
4646
},
47+
48+
overrides: [
49+
{
50+
files: ['tests/**/*.ts'],
51+
rules: {
52+
'import/no-extraneous-dependencies': 'off',
53+
},
54+
},
55+
],
4756
}
4857

4958
module.exports = config

0 commit comments

Comments
 (0)