5.0.6-alpha.0 • Published 9 months ago

eslint-config-reach-dragonfly v5.0.6-alpha.0

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
9 months ago

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: {
    // 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"