A set of ESLint (http://eslint.org) opinionated rules by me.
npm install --save-dev eslint-config-patrio babel-eslint eslint-plugin-react
- Create a file named
.eslintrc
in your project:
{
"extends": "patrio"
// Your overrides...
}
Read about all the rules here: http://eslint.org/docs/rules/
React plugin rules: https://github.com/yannickcr/eslint-plugin-react#list-of-supported-rules
jsx-quotes: The react/jsx-quotes rule is deprecated. Using the jsx-quotes rule instead.
no-unused-vars: Ignore React as unused variable. Because you need to import React for JSX (it will reference that variable) without you specifically referencing it.