Skip to content

kamilmielnik/eslint-config

Repository files navigation

@kamilmielnik/eslint-config

Setup

  1. Install the package
npm install @kamilmielnik/eslint-config --save-dev
  1. Add @kamilmielnik/eslint-config to extends array in ESLint configuration file.
/* .eslintrc.js */
module.exports = {
  /* ... */
  extends: ['@kamilmielnik/eslint-config'],
};
  1. Make sure your tsconfig.json provides Type Information - your .eslintrc.js should enable parserOptions.project and specify parserOptions.tsconfigRootDir:
/* .eslintrc.js */
module.exports = {
  /* ... */
  parserOptions: {
    project: true,
    tsconfigRootDir: __dirname,
  },
};