Skip to content

Commit 6157484

Browse files
committed
replace xo config with actual config
1 parent 36cae3b commit 6157484

File tree

2 files changed

+62
-1
lines changed

2 files changed

+62
-1
lines changed

.xo-config.cjs

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
module.exports = {
2+
ignores: [
3+
'./dist', './ios',
4+
],
5+
rules: {
6+
semi: ["error", "never"],
7+
indent: ["error", 2, {
8+
SwitchCase: 1
9+
}],
10+
quotes: ["error", "single", {
11+
allowTemplateLiterals: true
12+
}],
13+
curly: ["error", "multi-line"],
14+
"object-curly-spacing": ["error", "always"],
15+
"arrow-parens": ["error", "always"],
16+
"capitalized-comments": "off",
17+
"import/extensions": [
18+
'error',
19+
"never",
20+
{
21+
'json': "always",
22+
'vue': "always",
23+
'css': 'always',
24+
'scss': 'always',
25+
},
26+
],
27+
"node/file-extension-in-import": [
28+
"error",
29+
"never",
30+
{
31+
"tryExtensions": [".js", ".json"],
32+
'.json': "always",
33+
'.vue': "always",
34+
'.css': 'always',
35+
'.scss': 'always',
36+
},
37+
],
38+
"import/no-unassigned-import": [
39+
'error',
40+
{
41+
"allow": ["**/*.css", "**/*.scss"],
42+
},
43+
],
44+
// 'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0 }],
45+
// 'padding-line-between-statements': ['error', { blankLine: 'any', prev: '*', next: '*' }],
46+
// 'no-unused-vars': ['warn', { caughtErrors: 'none', varsIgnorePattern: '^error$', args: 'none' }],
47+
// 'require-await': 'error',
48+
// 'no-return-await': 'off',
49+
"unicorn/filename-case": [
50+
"error",
51+
{
52+
cases: {
53+
camelCase: true,
54+
pascalCase: true,
55+
},
56+
ignore: ["\\d*-[\\w\\d]*.js"],
57+
},
58+
],
59+
// 'unicorn/prefer-optional-catch-binding': 'off',
60+
// 'unicorn/no-process-exit': 'off',
61+
},
62+
};

.xo-config.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)