forked from gajus/eslint-config-canonical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prettier.js
45 lines (45 loc) · 1.16 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
module.exports.recommended = {
files: ['**/*.{js,jsx,cjs,mjs,ts,tsx}'],
plugins: {
prettier: require('eslint-plugin-prettier'),
},
rules: {
...require('eslint-config-prettier').rules,
'@typescript-eslint/indent': 0,
'array-bracket-newline': 0,
'array-element-newline': 0,
'arrow-body-style': 0,
'canonical/destructuring-property-newline': 0,
'canonical/export-specifier-newline': 0,
'canonical/import-specifier-newline': 0,
'line-comment-position': 0,
'linebreak-style': 0,
'no-extra-parens': 0,
'no-inline-comments': 0,
'object-curly-newline': 0,
'operator-linebreak': 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,
},
};