Skip to content

massiveinfinity/eslint-config-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-mi-react

This package provides MI's .eslintrc as an extensible shared config.

Installation

  1. Install library via command
yarn add eslint-config-mi-react -D
  1. Install peer dependencies
npx install-peerdeps eslint-config-mi-react --dev -Y

Usage

Configure ESLint

To enable this configuration to your project, create a .eslintrc file in the root of your project.

Add "extends": "eslint-config-mi-react" to your .eslintrc, e.g.:

{
  "extends": "eslint-config-mi-react"
}

Configure Prettier

Create a .prettierrc.js file in the root of your project. Import prettier rules and export from file.

const defaultConfigs = require('eslint-config-mi-react/prettierrc');

module.exports = {
  ...defaultConfigs,
};

Configure Babel

Create a .babelrc.js file in the root of your project. Import babel configs and export from file.

const { presets } = require('eslint-config-mi-react/babelrc');

module.exports = {
  presets: [...presets],
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published