ESLint configs from Avenga for various languages
Install ESLint as per default:
https://eslint.org/docs/user-guide/getting-started
Install this package:
npm: npm i --save-dev @avenga/eslint-config
yarn: yarn add --dev @avenga/eslint-config
Extend the config which you want to use
"extends": "@avenga/eslint-config"
"extends": "@avenga/eslint-config/javascript"
"extends": "@avenga/eslint-config/typescript"
Note: These already include recommended linting rules for both JS and TS, such as eslint/recommended
and @typescript-eslint/recommended
.
Next steps:
browser: true
or node: true