Skip to content

Commit c2bb584

Browse files
authored
fix: re-add stylistic and prettier compatibility (#16)
Apparently the lists needed an exhaustive diff as my assumption that I could just remove the whole list was wrong. Diff of the 2 lists: https://www.diffchecker.com/ltmHbE2r/
1 parent 0ffc383 commit c2bb584

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

src/prettier.ts

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,27 @@ const rules: TSESLint.FlatConfig.Rules = {
66

77
"no-inline-comments": 0,
88

9-
// Stylistic rules enabled by /jsx or /react that should be disabled when using Prettier
10-
"@stylistic/jsx/jsx-one-expression-per-line": 0,
9+
// Stylistic rules enabled other configs that should be disabled when using Prettier
10+
"@stylistic/js/line-comment-position": 0,
11+
"@stylistic/js/lines-around-comment": 0,
12+
"@stylistic/js/max-len": 0,
13+
"@stylistic/js/no-confusing-arrow": 0,
14+
"@stylistic/js/no-mixed-operators": 0,
15+
"@stylistic/js/no-tabs": 0,
16+
"@stylistic/js/quotes": 0,
1117
"@stylistic/jsx/jsx-newline": 0,
18+
"@stylistic/jsx/jsx-one-expression-per-line": 0,
1219
"@stylistic/jsx/jsx-props-no-multi-spaces": 0,
1320
"@stylistic/jsx/jsx-tag-spacing": 0,
1421
"@stylistic/jsx/jsx-wrap-multilines": 0,
15-
16-
"@stylistic/js/line-comment-position": 0,
22+
"@stylistic/lines-around-comment": 0,
23+
"@stylistic/max-len": 0,
24+
"@stylistic/no-confusing-arrow": 0,
25+
"@stylistic/no-mixed-operators": 0,
26+
"@stylistic/no-tabs": 0,
27+
"@stylistic/quotes": 0,
28+
"@stylistic/ts/lines-around-comment": 0,
29+
"@stylistic/ts/quotes": 0,
1730
};
1831

1932
const config: TSESLint.FlatConfig.ConfigArray = [

0 commit comments

Comments
 (0)