Skip to content

Commit

Permalink
chore(eslint): do not sort export …
Browse files Browse the repository at this point in the history
Functions and variables shouldn't be sorted in alphabetical order.
The following shouldn't give an error when linting.
export function B ...
export function A...
  • Loading branch information
ZuperZee committed Feb 24, 2021
1 parent 77d90df commit 3d86441
Show file tree
Hide file tree
Showing 3 changed files with 11,601 additions and 26 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import", "sort-exports"],
"plugins": ["@typescript-eslint", "import"],
"rules": {
"import/order": [
"error",
{ "newlines-between": "always", "alphabetize": { "order": "asc" } }
],
"sort-exports/sort-exports": ["error", { "sortDir": "asc" }],
"sort-imports": ["error", { "ignoreDeclarationSort": true }]
}
}
Loading

0 comments on commit 3d86441

Please sign in to comment.