mirror of
https://github.com/zhigang1992/Recoil.git
synced 2026-04-29 04:45:27 +08:00
Summary: Disable the `react/prop-types` ESLint rule. It is causing CI to fail because of recently added components in tests. I don't think this rule is needed since we can statically type component props with Flow. Pull Request resolved: https://github.com/facebookexperimental/Recoil/pull/392 Reviewed By: aaronabramov Differential Revision: D22218079 Pulled By: drarmstr fbshipit-source-id: be7980a73c1265e40a28160d11a98b758ceabd7f
39 lines
739 B
JavaScript
39 lines
739 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const OFF = 0;
|
|
const WARNING = 1;
|
|
const ERROR = 2;
|
|
|
|
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2020: true,
|
|
},
|
|
extends: ['plugin:react/recommended'],
|
|
parser: 'babel-eslint',
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
ecmaVersion: 11,
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['flowtype', 'react', 'jest', 'fb-www'],
|
|
rules: {
|
|
strict: 0,
|
|
'jsx-a11y/href-no-hash': 'off',
|
|
'react/jsx-key': 'off',
|
|
'react/prop-types': 'off',
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: 'detect',
|
|
},
|
|
},
|
|
};
|