13.0.0 • Published 2 years ago

eslint-config-standard-react v13.0.0

Weekly downloads
183,702
License
MIT
Repository
github
Last release
2 years ago

eslint-config-standard-react travis npm downloads javascript style guide

An ESLint Shareable Config for React/JSX support in JavaScript Standard Style

js-standard-style

Install

This module is for advanced users. You probably want to use standard instead :)

npm install eslint-config-standard-react

Usage

Shareable configs are designed to work with the extends feature of .eslintrc files. You can learn more about Shareable Configs on the official ESLint website.

This Shareable Config adds React and JSX to the baseline JavaScript Standard Style rules provided in eslint-config-standard.

Here's how to install everything you need:

npm install --save-dev @babel/core @babel/eslint-parser eslint-config-standard eslint-config-standard-jsx eslint-config-standard-react eslint-plugin-promise eslint-plugin-import eslint-plugin-node eslint-plugin-react

Then, add this to your .eslintrc file:

{
  "parser": "@babel/eslint-parser",
  "extends": ["standard", "standard-jsx", "standard-react"]
}

Note: We omitted the eslint-config- prefix since it is automatically assumed by ESLint.

You can override settings from the shareable config by adding them directly into your .eslintrc file.

Looking for something easier than this?

The easiest way to use JavaScript Standard Style to check your code is to use the standard package. This comes with a global Node command line program (standard) that you can run or add to your npm test script to quickly check your style.

Badge

Use this in one of your projects? Include one of these badges in your readme to let people know that your code is using the standard style.

js-standard-style

[![js-standard-style](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)

js-standard-style

[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/standard/standard)

Learn more

For the full listing of rules, editor plugins, FAQs, and more, visit the main JavaScript Standard Style repo.

License

MIT. Copyright (c) Feross Aboukhadijeh.

xcc-standard-eslinteslint-config-microlise-reactprobica15probica16eslint-config-smarchetti@usehatchapp/eslint-config-hatchcontentclusterclean-slate-lint@21st-digital/eslint-config-react@schoonlabs/blocksrts-boilerplate-testeslint-config-jp-react@thomatools/lazylinteslint-config-standard-airbnb-bundleeslint-config-medopad-reactneato@hesburgh-wse/eslint-config-hesburghfirenpm@infinitebrahmanuniverse/nolb-eslint-config-sinflumy-lint@everything-registry/sub-chunk-1607tcravwebapp-frameworkwxb-scriptshahlab-planetariumsemi-4standardstandard-reactstandard-react-nativestandard-react-scriptsstandardsomeseal-scriptsteste_lib_easy_3visualizer-machinesvn-react-scriptsadmin-dashboardmerchant-dashboardmodal-library-op-tristanjohanness-scriptsjam-pluginjkfe-standardjk-standardibhubsloginibloginibpaymentinteg-scriptsinsights-coreklagan-startup-react-scriptskrul-scriptshoangtho1997inferno-youtubegp-cart-address-componentgp-cart-component-finalgp-cartihealthierleadhome-oxygenl7-base-widgetmore-happinessnail-clim-fe-eslint-configluciolucio-clipaydar-paginationpaydar-pagination-2-2paydar-pagination-tsreact-fancy-tween-circular-progressreact-redux-componentreact-rewire-standardneutrino-middleware-standardreactneutrino-preset-standardreactobamaraumo-react-scriptsreact-baseplatereact-scripts-langspwatsketch-plugin-helperspacey-standardut-tools@aviato/eslint-config@baertang/eslint-config@ballatech/eslint-config@blaze-cms/tools@carlosvillu/lint@carlosvillu/lint-classicmanager@carlosvillu/linter@byte9/linter@catpawx/eslint-config-react@chrissong/eslint-config-standard@cisdi/eslint-config-javascript@cisdi/eslint-config-typescript@clearc2/eslint-config-c2-react@chentiyun/webpack-cli@chanceliu/eslint-config@21st-digital/eslint-config@1stg/eslint-config@coko/lint@codementor/bro@cqfe/eslint-config@danielsepulveda/eslint-configyoda-devtoolsweb-common-config
13.0.0

2 years ago

12.0.0

2 years ago

11.0.1

4 years ago

11.0.0

4 years ago

10.0.0

4 years ago

9.2.0

5 years ago

9.1.0

5 years ago

9.0.0

5 years ago

8.0.0

5 years ago

7.0.2

6 years ago

7.0.1

6 years ago

7.0.0

6 years ago

6.0.0

7 years ago

5.0.0

8 years ago

4.3.0

8 years ago

4.2.0

8 years ago

4.1.0

8 years ago

4.0.2

8 years ago

4.0.1

8 years ago

4.0.0

8 years ago

3.0.0

8 years ago

2.5.1

8 years ago

2.5.0

8 years ago

2.4.0

9 years ago

2.3.0

9 years ago

2.2.0

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago