Skip to content

Commit 19d02d0

Browse files
chore: enable eslint-plugin-simple-import-sort internally (#22)
1 parent b7cf36d commit 19d02d0

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lib

.eslintrc.cjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ module.exports = {
2020
tsconfigRootDir: __dirname,
2121
project: ["./tsconfig.json"],
2222
},
23-
plugins: ["@typescript-eslint"],
23+
plugins: ["@typescript-eslint", "simple-import-sort"],
2424
root: true,
25+
rules: {
26+
"simple-import-sort/exports": "error",
27+
"simple-import-sort/imports": "error",
28+
},
2529
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"cspell": "^6.12.0",
1414
"eslint": "^8.24.0",
1515
"eslint-config-prettier": "^8.5.0",
16+
"eslint-plugin-simple-import-sort": "^8.0.0",
1617
"husky": ">=6",
1718
"lint-staged": ">=10",
1819
"markdownlint-cli": "^0.32.2",

src/greet.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { describe, expect, it, vi } from "vitest";
2+
23
import { greet } from "./greet.js";
34

45
const message = "Yay, testing!";

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,6 +1886,11 @@ eslint-config-prettier@^8.5.0:
18861886
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz#5a81680ec934beca02c7b1a61cf8ca34b66feab1"
18871887
integrity sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==
18881888

1889+
eslint-plugin-simple-import-sort@^8.0.0:
1890+
version "8.0.0"
1891+
resolved "https://registry.yarnpkg.com/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-8.0.0.tgz#9d9a2372b0606e999ea841b10458a370a6ccc160"
1892+
integrity sha512-bXgJQ+lqhtQBCuWY/FUWdB27j4+lqcvXv5rUARkzbeWLwea+S5eBZEQrhnO+WgX3ZoJHVj0cn943iyXwByHHQw==
1893+
18891894
eslint-scope@^5.1.1:
18901895
version "5.1.1"
18911896
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"

0 commit comments

Comments
 (0)