Opinionated & preconfigured tools for lint, format, test & typecheck.
Powered by eslint, prettier, jest & typescript.
You can install it in your project
npm install --save-dev xk-tools
Then, config eslint, prettier, jest or typescript extending from default config:
.eslintrc.js
module.exports = require("./node_modules/xk-tools/eslint.js");
.prettierrc.js
module.exports = require("./node_modules/xk-tools/prettier.js");
tsconfig.json
{ "extends": "./node_modules/xk-tools/tsc.json" }
jest.config.js
module.exports = require("./node_modules/xk-tools/jest.js");
- xk-lint-check
Alias foreslint $@
- xk-lint
Alias foreslint --fix $@
- xk-format-check
Alias forprettier -l $@
- xk-format
Alias forprettier -w $@
- xk-test
Alias forjest $@
Feel free to report any bug or suggest any new feature at xk-tools Issues
MIT