Zenlint that make lint file automatically
Usage
1. Install
npm install -g zenlint
2. Execute
.eslintrc.json
3.1 If you want to generate configfile such as zenlint --generate ./your/project/path
3.2 If you want to get recommended rules
$ zenlint ./your/project/path Available unicode-bomAvailable valid-jsdocAvailable wrap-iifeAvailable wrap-regexAvailable yield-star-spacingAvailable yodaIgnored no-undefIgnored no-fallthroughIgnored no-sparse-arraysIgnored no-redeclare157 rules are available 4 rules are ignored
3.2 If you want to check rules by pull request
- make
.github/workflows/zenlint.yml
on your project
name: "Zenlint test"on: # rebuild any PRs and main branch changes pull_request: push: branches: - masterjobs: devreplay: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - run: npm install zenlint - uses: actions/setup-node@v1 with: node-version: "12.x" - run: echo "::add-matcher::.github/zenlint-match.json" - name: Run zenlint run: node_modules/.bin/zenlint ./src
- make
.github/zenlint-match.json
- Push your source code on the GitHub
- Check
Actions
button on your GitHub project - You'll get warnings example
Tool support plan
- JavaScript/TypeScript
- ESLint (Also standard js is supported by eslint)
- Python
- pylint
- flake8
- black
- Ruby
- rubocop
- YAML
- yamlint