Skip to content

Commit a84ee5a

Browse files
committed
add xo
1 parent f552bf5 commit a84ee5a

File tree

7 files changed

+35
-13
lines changed

7 files changed

+35
-13
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.yml]
11+
indent_style = space
12+
indent_size = 2

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
.yarn
12
.env
23
.gitignore
4+
.pnp.js
35
.prettierignore
4-
package.json
6+
*.json
57
license.md
68
readme.md
79
yarn.lock

.prettierrc.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
module.exports = {
2-
arrowParens: 'avoid',
3-
parser: 'typescript',
4-
proseWrap: 'always',
5-
semi: false,
6-
singleQuote: true,
7-
tabWidth: 4,
8-
trailingComma: 'none'
9-
}
2+
arrowParens: "avoid",
3+
bracketSpacing: true,
4+
parser: "typescript",
5+
proseWrap: "always",
6+
};

.xo-config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
rules: {},
3+
ignores: [".yarn/**"],
4+
semicolon: false,
5+
prettier: true,
6+
extensions: ["ts", "js"],
7+
parser: "@typescript-eslint/parser",
8+
};

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
"scripts": {
1212
"build": "tsc",
1313
"dev": "nodemon --exec ts-node ./src/main.ts --strict",
14-
"lint": "prettier --check ./src",
15-
"lint:fix": "prettier --write ./src"
14+
"lint": "xo"
1615
},
1716
"dependencies": {
1817
"chalk": "^4.1.0",
@@ -23,12 +22,15 @@
2322
"devDependencies": {
2423
"@types/node": "^14.6.0",
2524
"@typescript-eslint/eslint-plugin": "^3.9.1",
25+
"@typescript-eslint/parser": "^3.9.1",
2626
"husky": "^4.2.5",
2727
"nodemon": "^2.0.4",
2828
"prettier": "^2.0.5",
2929
"pretty-quick": "^2.0.1",
3030
"ts-node": "^8.10.2",
31-
"typescript": "^4.0.2"
31+
"typescript": "^4.0.2",
32+
"xo": "^0.33.0"
33+
},
3234
"engines": {
3335
"node": ">=12"
3436
},

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# devmod-core
2+
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)
23
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fredxtech%2Fdevmod-core.svg?type=small)](https://app.fossa.com/projects/git%2Bgithub.com%2Fredxtech%2Fdevmod-core?ref=badge_small)
34
> The core of devmod's 6th iteration.
45

0 commit comments

Comments
 (0)