1 | module.exports = {
|
2 | extends: ['prettier/react'],
|
3 | plugins: ['react', 'react-hooks', 'relay'],
|
4 | settings: {
|
5 | react: {
|
6 | version: '16.5',
|
7 | },
|
8 | },
|
9 | parserOptions: {
|
10 | ecmaFeatures: {
|
11 | jsx: true,
|
12 | },
|
13 | },
|
14 | rules: {
|
15 | 'react/jsx-boolean-value': 'warn',
|
16 | 'react/jsx-no-duplicate-props': 'error',
|
17 | 'react/jsx-no-undef': 'error',
|
18 | 'react/jsx-uses-react': 'error',
|
19 | 'react/jsx-uses-vars': 'error',
|
20 | 'react/no-multi-comp': [
|
21 | 'error',
|
22 | {
|
23 | ignoreStateless: true,
|
24 | },
|
25 | ],
|
26 | 'react/no-unknown-property': 'error',
|
27 | 'react/prop-types': 'warn',
|
28 | 'react/react-in-jsx-scope': 'error',
|
29 | 'react/self-closing-comp': 'error',
|
30 | 'react/sort-comp': 'warn',
|
31 | 'react/prefer-es6-class': ['warn', 'always'],
|
32 | 'react/prefer-stateless-function': 'warn',
|
33 | 'react/jsx-no-target-blank': 'warn',
|
34 | 'react-hooks/rules-of-hooks': 'error',
|
35 | 'react-hooks/exhaustive-deps': 'warn',
|
36 |
|
37 | 'relay/graphql-syntax': 'warn',
|
38 | 'relay/no-future-added-value': 'warn',
|
39 | },
|
40 | };
|