-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
prettier.js
58 lines (58 loc) · 1.74 KB
/
prettier.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
module.exports.recommended = {
files: ['**/*.{js,jsx,cjs,mjs,ts,tsx}'],
plugins: {
prettier: require('eslint-plugin-prettier'),
},
rules: {
...require('eslint-config-prettier').rules,
'@stylistic/array-bracket-newline': 0,
'@stylistic/array-element-newline': 0,
'@stylistic/brace-style': 0,
'@stylistic/comma-dangle': 0,
'@stylistic/generator-star-spacing': 0,
'@stylistic/implicit-arrow-linebreak': 0,
'@stylistic/indent': 0,
'@stylistic/jsx-quotes': 0,
'@stylistic/line-comment-position': 0,
'@stylistic/linebreak-style': 0,
'@stylistic/member-delimiter-style': 0,
'@stylistic/no-confusing-arrow': 0,
'@stylistic/no-extra-parens': 0,
'@stylistic/nonblock-statement-body-position': 0,
'@stylistic/object-curly-newline': 0,
'@stylistic/object-property-newline': 0,
'@stylistic/operator-linebreak': 0,
'@stylistic/quotes': 0,
'@stylistic/space-before-function-paren': 0,
'@stylistic/space-in-parens': 0,
'@typescript-eslint/indent': 0,
'arrow-body-style': 0,
'canonical/destructuring-property-newline': 0,
'canonical/export-specifier-newline': 0,
'canonical/import-specifier-newline': 0,
'no-inline-comments': 0,
'prefer-arrow-callback': 0,
'prettier/prettier': [
2,
{
arrowParens: 'always',
bracketSameLine: false,
bracketSpacing: true,
endOfLine: 'lf',
printWidth: 80,
proseWrap: 'preserve',
quoteProps: 'as-needed',
semi: true,
singleAttributePerLine: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
useTabs: false,
},
{
usePrettierrc: false,
},
],
'unicorn/template-indent': 0,
},
};