Skip to content

Commit e33458c

Browse files
🎨 style: Lint the code with xo.
1 parent 1735682 commit e33458c

File tree

4 files changed

+2376
-409
lines changed

4 files changed

+2376
-409
lines changed

package.json

+20-3
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@
9494
"np": "6.5.0",
9595
"nyc": "15.1.0",
9696
"power-assert": "1.6.1",
97-
"regenerator-runtime": "0.13.7"
97+
"regenerator-runtime": "0.13.7",
98+
"xo": "^0.33.1"
9899
},
99100
"files": [
100101
"lib"
@@ -118,11 +119,27 @@
118119
"cover": "nyc --reporter=lcov npm test",
119120
"dev": "npm run lint -- --fix && npm run cover -- -- -st --fail-fast",
120121
"esdoc": "esdoc",
121-
"lint": "true",
122+
"lint": "xo",
122123
"prepare": "npm run build",
123124
"release": "np",
124125
"test": "ava",
125126
"travis": "npm run lint && npm run cover"
126127
},
127-
"sideEffects": false
128+
"sideEffects": false,
129+
"xo": {
130+
"prettier": true,
131+
"ignore": [
132+
"lib",
133+
"doc"
134+
],
135+
"rules": {
136+
"camelcase": "off",
137+
"unicorn/filename-case": [
138+
"error",
139+
{
140+
"case": "camelCase"
141+
}
142+
]
143+
}
144+
}
128145
}

0 commit comments

Comments
 (0)