eslint-plugin-react-ssr

1.0.3 • Public • Published

ESLint-plugin-React-SSR

Maintenance Status NPM version Build Status Dependency Status Coverage Status Code Climate

React specific linting rules for ESLint

Installation

Install ESLint either locally or globally.

$ npm install eslint --save-dev

If you installed ESLint globally, you have to install React plugin globally too. Otherwise, install it locally.

$ npm install eslint-plugin-react-ssr --save-dev

Configuration

Add plugins section and specify ESLint-plugin-React as a plugin.

{
  "plugins": [
    "react-ssr"
  ]
}

List of supported rules

Shareable configurations

All

This plugin also exports an all configuration that includes every available rule. This pairs well with the eslint:all rule.

{
  "plugins": [
    "react-ssr"
  ],
  "extends": ["eslint:all", "plugin:react-ssr/all"]
}

Note: These configurations will import eslint-plugin-react-ssr and enable JSX in parser options.

License

ESLint-plugin-React-SSR is licensed under the MIT License.

Package Sidebar

Install

npm i eslint-plugin-react-ssr

Weekly Downloads

8

Version

1.0.3

License

MIT

Last publish

Collaborators

  • ytanruengsri