Skip to content

Commit 6a9d8c1

Browse files
Merge pull request #17 from brianpattison/FAF-18-sort-imports
Add 'sort-imports' rule
2 parents a794b4c + d60e547 commit 6a9d8c1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,18 @@ module.exports = {
134134
"stopAfterFirstProblem": true
135135
}
136136
],
137+
"sort-imports": [
138+
"error",
139+
{
140+
"ignoreCase": true,
141+
"memberSyntaxSortOrder": [
142+
"all",
143+
"single",
144+
"multiple",
145+
"none"
146+
]
147+
}
148+
],
137149
"sort-keys": ["error", "asc", { "caseSensitive": false }],
138150
"unicorn/prevent-abbreviations": "off"
139151
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-simplymadeapps",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "ESLint config for Simply Made Apps",
55
"homepage": "https://github.com/simplymadeapps/eslint-config-simplymadeapps",
66
"license": "MIT",

0 commit comments

Comments
 (0)