forked from mysticatea/eslint-plugin-dprint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (38 loc) · 1.51 KB
/
.eslintrc.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
"use strict"
module.exports = {
extends: ["plugin:@mysticatea/es2020", "plugin:@mysticatea/+node"],
ignorePatterns: ["/.nyc_output", "/coverage", "/dist"],
rules: {
// Buggy.
"require-atomic-updates": "off",
"@mysticatea/ts/restrict-plus-operands": "off",
// Use self.
dprint: ["error", {
config: {
lineWidth: 80,
semiColons: "asi",
quoteStyle: "preferDouble",
singleBodyPosition: "sameLine",
nextControlFlowPosition: "sameLine",
"arrowFunction.useParentheses": "preferNone",
"taggedTemplate.spaceBeforeLiteral": false,
// operatorPosition
operatorPosition: "sameLine",
"conditionalExpression.operatorPosition": "nextLine",
// preferHanging
"forInStatement.preferHanging": true,
"forOfStatement.preferHanging": true,
// preferSingleLine
"arguments.preferSingleLine": true,
"binaryExpression.preferSingleLine": true,
"exportDeclaration.preferSingleLine": true,
"importDeclaration.preferSingleLine": true,
"parameters.preferSingleLine": true,
// linePerExpression
"binaryExpression.linePerExpression": true,
"memberExpression.linePerExpression": true,
},
}],
"@mysticatea/prettier": "off",
},
}