Use
eslint
,tslint
is deprecated
Add prettier
to the extends
array of .eslintrc.*
file
{ "extends": [ "some-other-config-you-use", "some-other-config-you-use", "prettier" ] }
[ "plugin:prettier/recommended", ]
prettier apps/admin/internal -w
# run lint on the project yarn lint # run autofix on specified path yarn eslint --fix path_to_file_or_dir # run with specified node package ./node_modules/eslint/bin/eslint.js path_to_file_or_dir
Disabling linting is not recommended unless you're forced in a situation to disable
/* eslint-disable @typescript-eslint/no-unused-vars */