A collection of configuration files for various linting tools.
npm install --save-dev @edahlseng/configuration-lint
After installing, run npx configuration-lint setup [languages]
to set up configuration for the desired languages.
Available languages:
css
javascript
orjs
terraform
ortf
typescript
orts
yaml
oryml
In addition to configuration for all of the specified languages, the setup script will add configuration for Prettier, commitlint, and JSON linting.
Running npx configuration-lint setup js
will add a .eslintrc.json
configuration file to the project root, as well as add a lint:js
NPM run-script to the project's package.json
. (It will also add a .prettierrc.js
configuration file, a .commitlintrc.json
configuration file, a lint:json
NPM run-script, and a lint:commit
NPM run-script.)