Skip to content
This repository was archived by the owner on Dec 17, 2022. It is now read-only.

Commit 5852649

Browse files
committed
moving completely to xo for styling of the code.
1 parent f734ade commit 5852649

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.xo-config.cjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
rules: {
3+
semi: ['error', 'never'],
4+
indent: ['error', 2, { SwitchCase: 1 }],
5+
quotes: ['error', 'single', { allowTemplateLiterals: true }],
6+
curly: ['error', 'multi-line'],
7+
'object-curly-spacing': ['error', 'always'],
8+
'arrow-parens': ['error', 'always'],
9+
'capitalized-comments': 'off',
10+
// 'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0 }],
11+
// 'padding-line-between-statements': ['error', { blankLine: 'any', prev: '*', next: '*' }],
12+
// 'no-unused-vars': ['warn', { caughtErrors: 'none', varsIgnorePattern: '^error$', args: 'none' }],
13+
// 'require-await': 'error',
14+
// 'no-return-await': 'off',
15+
'unicorn/filename-case': [
16+
'error',
17+
{
18+
cases: {
19+
camelCase: true,
20+
pascalCase: true,
21+
},
22+
ignore: ['\\d*-[\\w\\d]*.js'],
23+
},
24+
],
25+
// 'unicorn/prefer-optional-catch-binding': 'off',
26+
// 'unicorn/no-process-exit': 'off',
27+
},
28+
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"nodemon": "^2.0.15",
4242
"npm-check-updates": "^12.1.0",
4343
"npm-run-all": "^4.1.5",
44-
"prettier": "^2.5.1",
4544
"xo": "^0.47.0"
4645
},
4746
"author": {

0 commit comments

Comments
 (0)