@nice-move/eslint-config-react

A `eslint` config for `react` project best practice

Usage no npm install needed!

<script type="module">
  import niceMoveEslintConfigReact from 'https://cdn.skypack.dev/@nice-move/eslint-config-react';
</script>

README

@nice-move/eslint-config-react eslint

A eslint config for react project best practice.

npm github node

Installation

npm install eslint @nice-move/eslint-config-react --save-dev

Usage

Add to package.json

// example: package.json
{
  "eslintConfig": {
    "extends": "@nice-move/eslint-config-react"
  }
}

Then run

eslint --fix .

Specification

Environment pattern
browser .js, .jsx, .html
node.js .mjs, .cjs
es modules .mjs, .js, .jsx, .html
commonjs .cjs, source code in webpack project
webpack src/**, packages/*/**
ava {test,tests,spec,specs}/**, **/*.{test,spec}.*
when eslint-plugin-ava installed

Tips

Noiseless reporting

Rules can handle by prettier and garou is disabled by default.

Related