mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[SIEM] Add eslint-plugin-react-perf (#55960)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
79ecc408df
commit
05edbdac78
3 changed files with 18 additions and 2 deletions
14
.eslintrc.js
14
.eslintrc.js
|
@ -643,6 +643,18 @@ module.exports = {
|
|||
// '@typescript-eslint/unbound-method': 'error',
|
||||
},
|
||||
},
|
||||
// {
|
||||
// // will introduced after the other warns are fixed
|
||||
// // typescript and javascript for front end react performance
|
||||
// files: ['x-pack/legacy/plugins/siem/public/**/!(*.test).{js,ts,tsx}'],
|
||||
// plugins: ['react-perf'],
|
||||
// rules: {
|
||||
// // 'react-perf/jsx-no-new-object-as-prop': 'error',
|
||||
// // 'react-perf/jsx-no-new-array-as-prop': 'error',
|
||||
// // 'react-perf/jsx-no-new-function-as-prop': 'error',
|
||||
// // 'react/jsx-no-bind': 'error',
|
||||
// },
|
||||
// },
|
||||
{
|
||||
// typescript and javascript for front and back end
|
||||
files: ['x-pack/legacy/plugins/siem/**/*.{js,ts,tsx}'],
|
||||
|
@ -747,8 +759,6 @@ module.exports = {
|
|||
// will introduced after the other warns are fixed
|
||||
// 'react/sort-comp': 'error',
|
||||
'react/void-dom-elements-no-children': 'error',
|
||||
// will introduced after the other warns are fixed
|
||||
// 'react/jsx-no-bind': 'error',
|
||||
'react/jsx-no-comment-textnodes': 'error',
|
||||
'react/jsx-no-literals': 'error',
|
||||
'react/jsx-no-target-blank': 'error',
|
||||
|
|
|
@ -414,6 +414,7 @@
|
|||
"eslint-plugin-prettier": "^3.1.2",
|
||||
"eslint-plugin-react": "^7.17.0",
|
||||
"eslint-plugin-react-hooks": "^2.3.0",
|
||||
"eslint-plugin-react-perf": "^3.2.3",
|
||||
"exit-hook": "^2.2.0",
|
||||
"faker": "1.1.0",
|
||||
"fetch-mock": "^7.3.9",
|
||||
|
|
|
@ -12591,6 +12591,11 @@ eslint-plugin-react-hooks@^2.3.0:
|
|||
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.3.0.tgz#53e073961f1f5ccf8dd19558036c1fac8c29d99a"
|
||||
integrity sha512-gLKCa52G4ee7uXzdLiorca7JIQZPPXRAQDXV83J4bUEeUuc5pIEyZYAZ45Xnxe5IuupxEqHS+hUhSLIimK1EMw==
|
||||
|
||||
eslint-plugin-react-perf@^3.2.3:
|
||||
version "3.2.3"
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-react-perf/-/eslint-plugin-react-perf-3.2.3.tgz#e28d42d3a1f7ec3c8976a94735d8e17e7d652a45"
|
||||
integrity sha512-bMiPt7uywwS1Ly25n752NE3Ei0XBZ3igplTkZ8GPJKyZVVUd3cHgzILGeQW2HIeAkzQ9zwk9HM6EcYDipdFk3Q==
|
||||
|
||||
eslint-plugin-react@^7.17.0:
|
||||
version "7.17.0"
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.17.0.tgz#a31b3e134b76046abe3cd278e7482bd35a1d12d7"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue