xk-tools
v1.3.0
Published
Xk development tools
Readme
xk-tools
Opinionated & preconfigured tools for lint, format, test & typecheck.
Powered by eslint, prettier, jest & typescript.
Installation and configuration
You can install it in your project
npm install --save-dev xk-toolsThen, 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");Available scripts
- 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 $@
Inspiration
Issues
Feel free to report any bug or suggest any new feature at xk-tools Issues
LICENSE
MIT
