@labd/eslint-config
v0.5.2
Published
Base ESLint config for Lab Digital applications
Downloads
374
Readme
eslint-config-labd
Opinionated config for ESLint for use in Lab Digital front-end projects.
About
This config is set up for React projects with TypeScript that resolve modules using the paths
option in the tsconfig.json
configuration file.
For code style linting we use Prettier and add in a import config to sensibly sort imports.
Next to that there are no strict limitations on code style, but it is strict on problematic code, like badly set-up hooks.
Usage
Use the following command to install this config and it's peer dependencies:
yarn add -D @labd/eslint-config eslint
Add the config to your .eslintrc.js
:
module.exports = {
root: true,
extends: [
'@labd/eslint-config'
],
}