Skip to content

Commit

Permalink
Add sort-import ESLint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitblanc committed Feb 28, 2024
1 parent 77a105a commit 27457d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ module.exports = {
"no-sequences": 2, // http://eslint.org/docs/rules/no-sequences
"no-throw-literal": 2, // http://eslint.org/docs/rules/no-throw-literal
"radix": 2, // http://eslint.org/docs/rules/radix
"sort-imports": ["error", { // https://eslint.org/docs/rules/sort-imports
"memberSyntaxSortOrder": ["none", "single", "multiple", "all"],
"allowSeparatedGroups": true
}
],
"vars-on-top": 2, // http://eslint.org/docs/rules/vars-on-top
"wrap-iife": [2, "any"], // http://eslint.org/docs/rules/wrap-iife
"yoda": 2, // http://eslint.org/docs/rules/yoda
Expand Down

0 comments on commit 27457d5

Please sign in to comment.