ESLint Configuration for chubbyts libraries / framework / projects.
- node: 16
- @typescript-eslint/eslint-plugin: ^7.13.1
- @typescript-eslint/parser: ^7.13.1
- eslint: ^8.57.0
- eslint-import-resolver-typescript: ^3.6.1
- eslint-plugin-functional: ^6.6.0
- eslint-plugin-import: ^2.29.1
Through NPM as @chubbyts/chubbyts-eslint.
npm i @chubbyts/chubbyts-eslint@^2.0.4
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"
],
}
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
},
};
2024 Dominik Zogg