linter-maintainer
TypeScript icon, indicating that this package has built-in type declarations

0.2.6 • Public • Published

CI

Linter-Maintainer

Suitable the linters for your style

Usage

1. Install

npm install -g linter-maintainer

2. Execute

The detail of each language usage is here

3.1 If you want to generate configfile such as .eslintrc.json

linter-maintainer --generate --eslint-js ./your/project/path > .eslintrc.json

3.2 If you want to get recommended rules

$ linter-maintainer --eslint-js ./your/project/path

error  symbol-description is available it should be added
error  template-curly-spacing is available it should be added
error  template-tag-spacing is available it should be added
error  unicode-bom is available it should be added
error  valid-jsdoc is available it should be added
error  wrap-iife is available it should be added
error  wrap-regex is available it should be added
error  yield-star-spacing is available it should be added
error  yoda is available it should be added
error  no-fallthrough is ignored it should be removed
error  no-redeclare is ignored it should be removed
error  no-sparse-arrays is ignored it should be removed
error  no-undef is ignored it should be removed
error  no-unused-vars is ignored it should be removed

157 rules are available 5 rules are ignored 
Total: 162

3.3 If you want to check rules by pull request

  1. make .github/workflows/linter-maintainer.yml on your project
name: "Linter-Maintainer test"
on: # rebuild any PRs and main branch changes
  pull_request:
  push:
    branches:
      - master
jobs:
  lintermaintainer:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: npm install linter-maintainer
      - uses: actions/setup-node@v1
        with:
          node-version: "12.x"
      - run: echo "::add-matcher::.github/linter-maintainer-match.json"   
      - name: Run linter-maintainer
        run: node_modules/.bin/linter-maintainer ./src
  1. make .github/linter-maintainer-match.json
{
    "problemMatcher": [
        {
            "owner": "linter-maintainer",
            "pattern": [
                {
                    "regexp": "^(warning|error)\\s+(.+)\\s+is.+",
                    "severity": 1,
                    "message": 2
                }
            ]
        }
    ]
}
  1. Push your source code on the GitHub
  2. Check Actions button on your GitHub project
  3. You'll get status of the linter

Tool support plan

  • : Done
  • 🏃: Work in progress
  • 🐛: Bug fixing
Language Tool command Validate Rules Generate Rules
JavaScript ESLint --eslint-js
JavaScript StandardJS
TypeScript ESLint --eslint-ts
Java PMD --pmd-java
Java checkstyle
Python Pylint --pylint
Python flake8
Python black
Ruby RoboCop
C++ cpplint
Go golangci-lint

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.61latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.61
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.80
0.1.70
0.1.60
0.1.50
0.1.40
0.1.30
0.1.20
0.1.11
0.1.00

Package Sidebar

Install

npm i linter-maintainer

Weekly Downloads

2

Version

0.2.6

License

MIT

Unpacked Size

151 kB

Total Files

85

Last publish

Collaborators

  • ikuyadeu