@kamilmielnik/eslint-config
v0.0.11
Published
Kamil Mielnik's ESLint Config
Downloads
16
Maintainers
Readme
@kamilmielnik/eslint-config
Setup
- Install the package
npm install @kamilmielnik/eslint-config --save-dev
- Add
@kamilmielnik/eslint-config
toextends
array in ESLint configuration file.
/* .eslintrc.js */
module.exports = {
/* ... */
extends: ['@kamilmielnik/eslint-config'],
};
- Make sure your
tsconfig.json
provides Type Information - your.eslintrc.js
should enableparserOptions.project
and specifyparserOptions.tsconfigRootDir
:
/* .eslintrc.js */
module.exports = {
/* ... */
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
},
};