eslint-config-reach-dragonfly
Standard eslint setup for dragonfly project
Install
yarn add -D eslint eslint-formatter-table eslint-import-resolver-babel-module eslint-import-resolver-node eslint-import-resolver-typescript
So this sets up basic linting for Reach projects. It has specific rules for typescript and jest.
Rules & plugins
Javascript
React
Typescript
Jest
Usage
In your .eslintrc.js file add:
const { resolve } = require('path');
module.exports = {
extends: 'eslint-config-reach-dragonfly',
rules: {
},
};
Please note if you are using js, it will expect a babel.config.js in the root of the project.
For typescript ensure you have tsconfig.json
Copyright (c) 2022 "Reach Shared Services Ltd"