-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoxlintrc.json
61 lines (61 loc) · 2.23 KB
/
oxlintrc.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
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"chrome": "readonly"
},
"extends": "oxlint:recommended",
"settings": {},
"rules": {
"indent": ["error", 2],
"semi": ["error", "always"],
"quotes": ["error", "single"],
"comma-dangle": ["error", "always-multiline"],
"object-curly-spacing": ["error", "always"],
"arrow-parens": ["error", "always"],
"sort-imports": ["error", {
"ignoreCase": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}]
// "no-unused-vars": ["error"],
// "no-console": ["warn"],
// "no-debugger": ["error"],
// "eqeqeq": ["error", "always"],
// "curly": ["error", "all"],
// "no-multi-spaces": ["error"],
// "no-trailing-spaces": ["error"],
// "no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0 }],
// "key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
// "keyword-spacing": ["error", { "before": true, "after": true }],
// "space-before-blocks": ["error", "always"],
// "space-before-function-paren": ["error", "never"],
// "space-in-parens": ["error", "never"],
// "space-infix-ops": ["error"],
// "space-unary-ops": ["error", { "words": true, "nonwords": false }],
// "spaced-comment": ["error", "always"],
// "comma-spacing": ["error", { "before": false, "after": true }],
// "array-bracket-spacing": ["error", "never"],
// "block-spacing": ["error", "always"],
// "brace-style": ["error", "1tbs", { "allowSingleLine": true }],
// "camelcase": ["error"],
// "new-cap": ["error", { "newIsCap": true, "capIsNew": false }],
// "no-array-constructor": ["error"],
// "no-new-object": ["error"],
// "no-plusplus": ["error"],
// "no-restricted-syntax": ["error", "WithStatement"],
// "no-tabs": ["error"],
// "no-underscore-dangle": ["error"],
// "no-unneeded-ternary": ["error"],
// "one-var": ["error", "never"],
// "operator-linebreak": ["error", "after"],
// "padded-blocks": ["error", "never"],
// "quote-props": ["error", "as-needed"],
// "wrap-iife": ["error", "any"],
// "yoda": ["error", "never"]
}
}