@nielse63/tsconfig-eslint

1.1.8 • Public • Published

@nielse63/tsconfig-eslint

Shareable TypeScript config to be used with ESLint

npm (scoped) npm GitHub issues by-label

Installation

npx install-peerdeps --dev @nielse63/tsconfig-eslint

Usage

Create a file called tsconfig.eslint.json in your project root with the following content:

{
  "extends": "@nielse63/tsconfig-eslint",
  // you can customize your include and exclude values
  "include": ["**/*.ts", "**/*.js", ".*.js", ".bin/**/*"],
  "exclude": ["**/node_modules/**", "**/dist/**"],
}

Update your .eslintrc.js file:

module.exports = {
  parser: '@typescript-eslint/parser',
  parserOptions: {
    project: ['./tsconfig.eslint.json'],
  },
};

Package Sidebar

Install

npm i @nielse63/tsconfig-eslint

Weekly Downloads

5

Version

1.1.8

License

MIT

Unpacked Size

2.11 kB

Total Files

3

Last publish

Collaborators

  • nielse63