Skip to content

Commit

Permalink
🤖 chore(package.json): Setup xo for linting sources.
Browse files Browse the repository at this point in the history
These changes were automatically generated by a transform whose code can be found at:
  - https://github.com/aureooms/rejuvenate/blob/a5a57b70ac6fd6fb77fdab32e6b7be7519ce9564/src/transforms/package.json:setup-xo.js
Please contact the author of the transform if you believe there was an error.
  • Loading branch information
a-flying-potato authored and make-github-pseudonymous-again committed Mar 17, 2021
1 parent edcb3a3 commit 7a3a5cf
Show file tree
Hide file tree
Showing 2 changed files with 2,434 additions and 44 deletions.
33 changes: 32 additions & 1 deletion package.json
Expand Up @@ -51,6 +51,8 @@
"cover": "c8 --all --src src --reporter=lcov npm test",
"debug": "NODE_ENV=debug npm run test -- -st --fail-fast",
"install-hooks": "husky install",
"lint": "xo",
"lint-and-fix": "npm run lint -- --fix",
"lint-config": "fixpack --dryRun",
"lint-config-and-fix": "fixpack || fixpack",
"postinstall": "npm run install-hooks",
Expand Down Expand Up @@ -83,7 +85,8 @@
"microbundle": "0.13.0",
"np": "7.4.0",
"pinst": "2.1.6",
"power-assert": "1.6.1"
"power-assert": "1.6.1",
"xo": "0.38.2"
},
"ava": {
"files": [
Expand Down Expand Up @@ -177,5 +180,33 @@
]
}
}
},
"prettier": {
"trailingComma": "all"
},
"xo": {
"prettier": true,
"plugins": [
"unicorn"
],
"rules": {
"unicorn/filename-case": [
"error",
{
"cases": {
"camelCase": true,
"pascalCase": true
}
}
]
},
"overrides": [
{
"files": [
"doc/**"
],
"env": "browser"
}
]
}
}

0 comments on commit 7a3a5cf

Please sign in to comment.