Skip to content

Commit 1721be3

Browse files
🤖 chore(package.json): Setup xo for linting sources.
These changes were automatically generated by a transform whose code can be found at: - https://github.com/aureooms/rejuvenate/blob/b6b4f0332a3361f6005cf1c244b958f3cbcd1d1b/src/transforms/package.json:setup-xo.js Please contact the author of the transform if you believe there was an error.
1 parent 1d961bf commit 1721be3

File tree

2 files changed

+2414
-64
lines changed

2 files changed

+2414
-64
lines changed

package.json

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
"debug": "NODE_ENV=debug npm run test -- -st --fail-fast",
4646
"dev": "npm run lint-config-and-fix && npm run lint-and-fix && npm run cover -- -- -st --fail-fast",
4747
"install-hooks": "husky install",
48-
"lint": "true",
48+
"lint": "xo",
49+
"lint-and-fix": "npm run lint -- --fix",
4950
"lint-config": "fixpack --dryRun",
5051
"lint-config-and-fix": "fixpack || fixpack",
5152
"postinstall": "npm run install-hooks",
@@ -82,7 +83,8 @@
8283
"np": "7.4.0",
8384
"pinst": "2.1.6",
8485
"power-assert": "1.6.1",
85-
"regenerator-runtime": "0.13.7"
86+
"regenerator-runtime": "0.13.7",
87+
"xo": "0.38.2"
8688
},
8789
"ava": {
8890
"files": [
@@ -175,5 +177,33 @@
175177
]
176178
}
177179
}
180+
},
181+
"prettier": {
182+
"trailingComma": "all"
183+
},
184+
"xo": {
185+
"prettier": true,
186+
"plugins": [
187+
"unicorn"
188+
],
189+
"rules": {
190+
"unicorn/filename-case": [
191+
"error",
192+
{
193+
"cases": {
194+
"camelCase": true,
195+
"pascalCase": true
196+
}
197+
}
198+
]
199+
},
200+
"overrides": [
201+
{
202+
"files": [
203+
"doc/**"
204+
],
205+
"env": "browser"
206+
}
207+
]
178208
}
179209
}

0 commit comments

Comments
 (0)