/
jsenvEslintRulesForReact.js
31 lines (30 loc) · 1.12 KB
/
jsenvEslintRulesForReact.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* Contains configuration of ESLint rules when using eslint-plugin-react.
*
* Check ./jsenvEslintRules.js to see the mindset used to configure these rules
*/
export const jsenvEslintRulesForReact = {
"react/display-name": ["error"],
"react/jsx-key": ["error"],
"react/jsx-filename-extension": ["error", { extensions: [".jsx"] }],
"react/jsx-no-comment-textnodes": ["error"],
"react/jsx-no-duplicate-props": ["error"],
"react/jsx-no-target-blank": ["off"],
"react/jsx-no-undef": ["error"],
"react/jsx-uses-react": ["error"],
"react/jsx-uses-vars": ["error"],
"react/no-children-prop": ["error"],
"react/no-danger-with-children": ["error"],
"react/no-deprecated": ["error"],
"react/no-direct-mutation-state": ["error"],
"react/no-find-dom-node": ["error"],
"react/no-is-mounted": ["error"],
"react/no-render-return-value": ["error"],
"react/no-string-refs": ["error"],
"react/no-unescaped-entities": ["error"],
"react/no-unknown-property": ["error"],
"react/no-unsafe": ["off"],
"react/prop-types": ["off"],
"react/react-in-jsx-scope": ["error"],
"react/require-render-return": ["off"],
};