Skip to content

Commit 46b35b6

Browse files
author
Josh Goldberg
authoredMay 28, 2021
Enabled eslint-plugin-simple-import-sort internally (#1102)
* Enabled eslint-plugin-simple-import-sort internally * Added eslint-plugin-simple-import-sort Enforces that exports and imports are sorted alphabetically, with a fixer for ESLint's `--fix`. Precursor to #1089 to make it easier to insert lines into `ruleConverters.ts` automatically. * Reset package-lock.json * Autofix imports
1 parent 44ee5af commit 46b35b6

File tree

53 files changed

+328
-312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+328
-312
lines changed
 

‎.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
parserOptions: {
1717
project: "tsconfig.json",
1818
},
19-
plugins: ["@typescript-eslint"],
19+
plugins: ["simple-import-sort", "@typescript-eslint"],
2020
rules: {
2121
"@typescript-eslint/comma-dangle": [
2222
"error",
@@ -64,5 +64,7 @@ module.exports = {
6464
"@typescript-eslint/typedef": "off",
6565
"comma-dangle": "off",
6666
"no-else-return": "error",
67+
"simple-import-sort/imports": "error",
68+
"simple-import-sort/exports": "error",
6769
},
6870
};

‎package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.