Skip to content

ESLint Configuration for chubbyts libraries / framework / projects.

License

Notifications You must be signed in to change notification settings

chubbyts/chubbyts-eslint

Repository files navigation

chubbyts-eslint

npm-version

Description

ESLint Configuration for chubbyts libraries / framework / projects.

Requirements

Installation

Through NPM as @chubbyts/chubbyts-eslint.

npm i @chubbyts/chubbyts-eslint@^2.0.4

Configuration

tsconfig.eslint.json

If you want to lint files that are not part of your tsconfig.json. Like for example tests you need a custom tsconfig.eslint.json.

{
    "extends": "./tsconfig.json",
    "include": [
        "src",
        "tests"
    ],
}

.eslintrc.cjs

const config = require('@chubbyts/chubbyts-eslint/dist/eslintrc').default;

module.exports = {
  ...config,
  parserOptions: {
    ...config.parserOptions,
    project: './tsconfig.eslint.json', // or tsconfig.json if no custom tsconfig is needed
  },
};

Copyright

2024 Dominik Zogg

About

ESLint Configuration for chubbyts libraries / framework / projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published