1.1.7 • Published 8 months ago
@gtvmbh/eslint-config v1.1.7
Using the GTV ESLint configurations
- Run
npm i @gtvmbh/eslint-config --save-dev
to install the GTV ESLint configuration. Take note of the messages about missing peer dependencies. - Add a file named
.eslintrc.js
in the project root, setting up ESLint the use of the GTV ESLint configurations. See theexamples
folder for templates. - Run ESLint from the project root to see if everything works as intended:
./node_modules/.bin/eslint -c .eslintrc.js .
for javascript projects../node_modules/.bin/eslint -c .eslintrc.js . --ext .ts
for typescript projects.
- Configure your IDE to use ESLint to check automatically. In VS Code it should be enough to install the ESLint extension and everything should be picked up automatically.