Skip to content

Commit bb93a5c

Browse files
committed
Add perfectionist to our eslint plugins
To have a consistent style of our code we could either use prettier or use eslint. While there are arguments on both sides I personally prefer eslint, especially since prettier's fixed text width often decreases readability.
1 parent 56ec567 commit bb93a5c

File tree

4 files changed

+503
-513
lines changed

4 files changed

+503
-513
lines changed

eslint.config.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import eslint from "@eslint/js";
2+
import stylistic from "@stylistic/eslint-plugin";
23
import gitignore from "eslint-config-flat-gitignore";
3-
import perfectionist from 'eslint-plugin-perfectionist'
4+
import perfectionist from "eslint-plugin-perfectionist"
45
import tseslint from "typescript-eslint";
56

67
export default tseslint.config(
@@ -23,5 +24,10 @@ export default tseslint.config(
2324
files: ['**/*.js'],
2425
...tseslint.configs.disableTypeChecked,
2526
},
26-
perfectionist.configs["recommended-natural"]
27+
perfectionist.configs["recommended-natural"],
28+
stylistic.configs.customize({
29+
indent: 2,
30+
quotes: "single",
31+
semi: true,
32+
})
2733
);

0 commit comments

Comments
 (0)