4.0.13 • Published 1 year ago

eslint-config-reach v4.0.13

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
1 year ago

eslint-config-reach

Standard eslint setup for reach projects

Install

yarn add -D eslint eslint-formatter-table eslint-import-resolver-babel-module eslint-import-resolver-node eslint-import-resolver-typescript eslint-config-reach

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: {
    // Project specific rules here...
  },
};

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"