-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
Copy pathrome.json
94 lines (94 loc) · 2.7 KB
/
rome.json
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"$schema": "./node_modules/rome/configuration_schema.json",
"files": {
"ignore": ["./coverage/**/*", "./dist/**/*", "./lib/**/*"]
},
"formatter": {
"ignore": ["*.ts", "*.tsx"],
"indentStyle": "space",
"lineWidth": 100
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingComma": "none"
}
},
"linter": {
"rules": {
"recommended": false,
"a11y": {
"noAutofocus": "off",
"noBlankTarget": "warn",
"noPositiveTabindex": "warn",
"useAltText": "warn",
"useAnchorContent": "warn",
"useButtonType": "warn",
"useKeyWithClickEvents": "off",
"useKeyWithMouseEvents": "off",
"useValidAnchor": "off"
},
"complexity": {
"noExtraBooleanCast": "warn",
"noMultipleSpacesInRegularExpressionLiterals": "warn",
"noUselessFragments": "warn",
"useFlatMap": "warn",
"useOptionalChain": "warn",
"useSimplifiedLogicExpression": "off"
},
"correctness": {
"noChildrenProp": "off",
"noConstAssign": "warn",
"noEmptyPattern": "warn",
"noNewSymbol": "off",
"noRenderReturnValue": "warn",
"noUndeclaredVariables": "off",
"noUnnecessaryContinue": "warn",
"noUnreachable": "warn",
"noUnusedVariables": "off",
"noVoidElementsWithChildren": "warn",
"useValidForDirection": "warn"
},
"performance": {
"noDelete": "warn"
},
"security": {
"noDangerouslySetInnerHtml": "warn",
"noDangerouslySetInnerHtmlWithChildren": "warn"
},
"style": {
"noArguments": "warn",
"noImplicitBoolean": "off",
"noNegationElse": "off",
"noShoutyConstants": "warn",
"noUnusedTemplateLiteral": "warn",
"useBlockStatements": "off",
"useFragmentSyntax": "warn",
"useSelfClosingElements": "warn",
"useShorthandArrayType": "warn",
"useSingleCaseStatement": "off",
"useSingleVarDeclarator": "warn",
"useTemplate": "warn",
"useWhile": "warn"
},
"suspicious": {
"noArrayIndexKey": "off",
"noAsyncPromiseExecutor": "warn",
"noCatchAssign": "warn",
"noCommentText": "warn",
"noCompareNegZero": "warn",
"noDebugger": "warn",
"noDoubleEquals": "warn",
"noDuplicateParameters": "warn",
"noExplicitAny": "off",
"noFunctionAssign": "warn",
"noImportAssign": "warn",
"noLabelVar": "warn",
"noShadowRestrictedNames": "warn",
"noSparseArray": "warn",
"noUnsafeNegation": "warn",
"useValidTypeof": "warn"
}
}
}
}