All Projects → mmazzarolo → eslint-plugin-react-app

mmazzarolo / eslint-plugin-react-app

Licence: MIT license
ESLint configuration used by Create React App

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to eslint-plugin-react-app

crud-app
❄️ A simple and beautiful CRUD application built with React.
Stars: ✭ 61 (+17.31%)
Mutual labels:  create-react-app
azure-appservice-static
Deploy static site to azure AppService.
Stars: ✭ 39 (-25%)
Mutual labels:  create-react-app
react-mobx-router
Create React App with React Router 4 and MobX + Internationalization
Stars: ✭ 90 (+73.08%)
Mutual labels:  create-react-app
plebpack
Webpack configuration for the common people.
Stars: ✭ 13 (-75%)
Mutual labels:  create-react-app
cra-monorepo-demo
Monorepo example using create-react-app and common component library structure with yarn workspaces
Stars: ✭ 37 (-28.85%)
Mutual labels:  create-react-app
react-typescript-material-ui-with-auth-starter
React + Material UI + Auth starter using TypeScript
Stars: ✭ 27 (-48.08%)
Mutual labels:  create-react-app
speedy-math
An application which allows user (small kids) to practice basic Mathematics operations
Stars: ✭ 28 (-46.15%)
Mutual labels:  create-react-app
worthit
💸 Vale a pena? Calcule o preço anual de um item com essa PWA
Stars: ✭ 18 (-65.38%)
Mutual labels:  create-react-app
react-deploy-s3
Deploy create react app's in AWS S3
Stars: ✭ 67 (+28.85%)
Mutual labels:  create-react-app
tutorial-react-docker
Boilerplate React app in Docker container with ENV args
Stars: ✭ 63 (+21.15%)
Mutual labels:  create-react-app
lego-boost-app
React Application for controlling Lego Boost from the browser with Web Bluetooth API
Stars: ✭ 57 (+9.62%)
Mutual labels:  create-react-app
react-you-do-you
How I use React + Redux + Material-UI + TypeScript – you do you 💖
Stars: ✭ 103 (+98.08%)
Mutual labels:  create-react-app
semantic-ui-react-typescript-examples
Several examples using Semantic UI, React, and TypeScript
Stars: ✭ 41 (-21.15%)
Mutual labels:  create-react-app
media-library
An online media library application with React, Redux and redux-saga
Stars: ✭ 27 (-48.08%)
Mutual labels:  create-react-app
character-overlay
Web App for adding an OBS overlay with character information such as name, picture, and health for your favorite role-playing game.
Stars: ✭ 17 (-67.31%)
Mutual labels:  create-react-app
webservices
Prestashop Web Services + React JS App
Stars: ✭ 34 (-34.62%)
Mutual labels:  create-react-app
next-share
Social media share buttons for your next React apps.
Stars: ✭ 145 (+178.85%)
Mutual labels:  create-react-app
mcs-lite
🎛 MCS Lite Common UI and Websites.
Stars: ✭ 75 (+44.23%)
Mutual labels:  create-react-app
react-antd-admin
react-antd-admin 是一个后台集成解决方案,它基于 react 和 antd; 内置了动态路由,标签页缓存,权限验证、切换功能
Stars: ✭ 42 (-19.23%)
Mutual labels:  create-react-app
cra-multi-page-template
Create-react-app Multi-page application configuration template, including dva and ant-design, enabled PWA, compatible with IE11.
Stars: ✭ 17 (-67.31%)
Mutual labels:  create-react-app

npm version

eslint-plugin-react-app

A minimal set of easy to install ESLint rules for your project: just install a single NPM package, add it to your .eslintrc, and you'll be all set.

This plugin exposes the ESLint configuration used by Create React App without the need of declaring all its dependencies.
Use it if you need a simple and tested ESLint configuration but you don't want to install a bunch of dependencies.
It also works in React Native out of the box.

Setup

  1. Install it using npm: npm install --development eslint eslint-plugin-react-app.
  2. Extend plugin:react-app/recommended in your .eslintrc.

Example .eslintrc:

{
  "extends": ["plugin:react-app/recommended"]
}
  1. You're done!

Optional - Configuring the rules

If you want to change a rule of an included plugin (for example of eslint-plugin-react) you must prefix the rule with react-app/ (for preventing namespace collisions).
For example:

{
  "extends": ["plugin:react-app/recommended"],
  "rules": {
    "react-app/react/react-in-jsx-scope": ["warn"]
  }
}

Optional - Adding Prettier

This plugin works nicely alongside Prettier.
Install it with npm install --development prettier eslint-config-prettier eslint-plugin-prettier.
And setup your .eslintrc this way:

{
  "extends": ["react-app", "plugin:prettier/recommended"],
  "plugins": ["prettier"]
}

Included plugins  

The currently included create-react-app plugins are the following:

Acknowledgements

Thanks to fson and its Create React App pull request for the initial idea of this plugin.
Thanks to gaeron and everyone who contributed to Create React App.

Disclaimer

This project is not officially maintained (nor officially "supported") by the Create React App team.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].