@fingerprintjs/eslint-config-dx-team
v1.0.0
Published
Custom eslint config for DX Team
Readme
ESLint dx-team preset
This package provides a custom preset for eslint, specifically designed for the DX team at FingerprintJS.
Installation
To install this package, use the following command:
pnpm install -D @fingerprintjs/eslint-config-dx-teamConfiguration
To use this preset in your project, add the following configuration to your project's eslint configuration file:
module.exports = {
extends: ['@fingerprintjs/eslint-config-dx-team'],
}Type-checked config
For projects with a tsconfig.json, you should opt into stricter type-aware rules (e.g. strict-boolean-expressions, no-floating-promises, no-misused-promises, switch-exhaustiveness-check):
module.exports = {
extends: ['@fingerprintjs/eslint-config-dx-team/type-checked'],
}This requires parserOptions.project to resolve to your tsconfig.json. If your tsconfig is not in the project root, override it:
module.exports = {
extends: ['@fingerprintjs/eslint-config-dx-team/type-checked'],
parserOptions: {
project: './path/to/tsconfig.json',
},
}Dependencies
To simplify dependencies update in project this package has eslint and eslint packages as a dependencies. Please don't add any of them as a dependencies for you project:
@typescript-eslint/eslint-plugin@typescript-eslint/parsereslinteslint-config-prettiereslint-plugin-prettier
[!NOTE] If you run into
command not foundwhen runningpnpm lint, this is likely because pnpm 9 hoisted packages matching*eslint*by default, but pnpm 10 removed that default. To restore the behavior, add the following to your.npmrc:public-hoist-pattern[]=*eslint* public-hoist-pattern[]=*prettier*The long-term fix is migrating this package to ESLint flat config, where plugins are
imported directly instead of resolved by name from the project root. This eliminates the need for hoisting entirely — in fact, this is the reason pnpm 10 removed the default.
License
This project is licensed under the MIT license. See the LICENSE file for more info.
