@chubbyts/chubbyts-eslint
v2.0.7
Published
ESLint Configuration for chubbyts libraries / framework / projects.
Downloads
605
Readme
chubbyts-eslint
Description
ESLint Configuration for chubbyts libraries / framework / projects.
Requirements
- 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
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