-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xo-config.cjs
64 lines (64 loc) · 1.58 KB
/
.xo-config.cjs
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
module.exports = {
ignores: [
'./dist', './ios',
],
rules: {
semi: ["error", "never"],
indent: ["error", 2, {
SwitchCase: 1
}],
quotes: ["error", "single", {
allowTemplateLiterals: true
}],
curly: ["error", "multi-line"],
"object-curly-spacing": ["error", "always"],
"arrow-parens": ["error", "always"],
"capitalized-comments": "off",
"import/extensions": [
'error',
"never",
{
'js': 'always',
'json': "always",
'vue': "always",
'css': 'always',
'scss': 'always',
},
],
"node/file-extension-in-import": [
"error",
"never",
{
"tryExtensions": [".js", ".json"],
'.js': 'always',
'.json': "always",
'.vue': "always",
'.css': 'always',
'.scss': 'always',
},
],
"import/no-unassigned-import": [
'error',
{
"allow": ["**/*.css", "**/*.scss"],
},
],
// 'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0 }],
// 'padding-line-between-statements': ['error', { blankLine: 'any', prev: '*', next: '*' }],
// 'no-unused-vars': ['warn', { caughtErrors: 'none', varsIgnorePattern: '^error$', args: 'none' }],
// 'require-await': 'error',
// 'no-return-await': 'off',
"unicorn/filename-case": [
"error",
{
cases: {
camelCase: true,
pascalCase: true,
},
ignore: ["\\d*-[\\w\\d]*.js"],
},
],
// 'unicorn/prefer-optional-catch-binding': 'off',
// 'unicorn/no-process-exit': 'off',
},
};