- Run
npm i @gtvmbh/eslint-config --save-dev
to install the GTV ESLint configuration. Take note of the messages about missing peer dependencies. - Update or install any missing peer dependencies noted in the previous step, which may be any of:
npm i eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-jsdoc --save-dev
. If you are unsure what peer dependencies are required, runnpm view @gtvmbh/eslint-config peerDependencies
- 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.
reworc / gtv-linter-config Goto Github PK
View Code? Open in Web Editor NEWThis project forked from gesellschaftfuertechnischevisualistik/gtv-linter-config
ESLint configuration used by the Gesellschaft für Technische Visualistik
License: MIT License