1 | // @flow
|
2 |
|
3 | // See https://github.com/yannickcr/eslint-plugin-react
|
4 |
|
5 | module.exports = {
|
6 | extends: ['plugin:react/recommended', 'prettier', 'prettier/react'],
|
7 | env: { browser: true },
|
8 | parserOptions: {
|
9 | ecmaFeatures: { jsx: true },
|
10 | },
|
11 | plugins: ['react'],
|
12 | rules: {
|
13 | // 最適化すれば変わらないため無効。本質ではない。
|
14 | // 'react/prefer-stateless-function': 2,
|
15 | 'react/jsx-boolean-value': 2,
|
16 | 'react/jsx-filename-extension': [2, { extensions: ['.js'] }],
|
17 | 'react/jsx-handler-names': 2,
|
18 | 'react/prefer-es6-class': [2, 'always'],
|
19 | },
|
20 | }
|