For JavaScript
linter-maintainer --eslint-js ./your/project/path
For TypeScript
linter-maintainer --eslint-ts ./your/project/path
For JS
linter-maintainer --generate --eslint-js ./your/project/path > .eslintrc.json
For TypeScript
linter-maintainer --generate --eslint-ts ./your/project/path > .eslintrc.json
-
You needs to install PMD from official page. I checked works on the PMD version 6.30.0.
-
LinterMaintainer will work by executing local PMD path.
- Windows:
pmd.bat
- Linux:
$HOME/pmd-bin-6.30.0/bin/run.sh pmd
Following example use the path ofpmd.bat
- Windows:
linter-maintainer --pmd-java ./your/project/path pmd.bat ./your/pmd/configfile.xml
./your/pmd/configfile.xml
encode should be UTF-8
linter-maintainer --generate --pmd-java ./your/project/path pmd.bat > yourpmd.xml
You needs to install Pylint > 2.6
linter-maintainer --pylint ./your/project/path
linter-maintainer --generate --pylint ./your/project/path > pylintrc