Skip to content

Commit

Permalink
feat(plugin-eslint): set "passed" displayValue for ESLint audits
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk committed Jan 3, 2024
1 parent c8cdca3 commit 40f61a4
Show file tree
Hide file tree
Showing 7 changed files with 246 additions and 210 deletions.
37 changes: 37 additions & 0 deletions e2e/cli-e2e/tests/__snapshots__/collect.e2e.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/no-cond-assign",
"score": 1,
"slug": "no-cond-assign",
Expand All @@ -210,6 +211,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/no-const-assign",
"score": 1,
"slug": "no-const-assign",
Expand All @@ -221,6 +223,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/no-debugger",
"score": 1,
"slug": "no-debugger",
Expand All @@ -232,6 +235,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/no-invalid-regexp",
"score": 1,
"slug": "no-invalid-regexp",
Expand All @@ -243,6 +247,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/no-undef",
"score": 1,
"slug": "no-undef",
Expand All @@ -254,6 +259,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/no-unreachable-loop",
"score": 1,
"slug": "no-unreachable-loop",
Expand All @@ -265,6 +271,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/no-unsafe-negation",
"score": 1,
"slug": "no-unsafe-negation",
Expand All @@ -276,6 +283,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining",
"score": 1,
"slug": "no-unsafe-optional-chaining",
Expand Down Expand Up @@ -313,6 +321,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/use-isnan",
"score": 1,
"slug": "use-isnan",
Expand All @@ -324,6 +333,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/valid-typeof",
"score": 1,
"slug": "valid-typeof",
Expand Down Expand Up @@ -361,6 +371,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/camelcase",
"score": 1,
"slug": "camelcase",
Expand All @@ -372,6 +383,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/curly",
"score": 1,
"slug": "curly",
Expand Down Expand Up @@ -435,6 +447,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/max-lines",
"score": 1,
"slug": "max-lines",
Expand Down Expand Up @@ -498,6 +511,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/no-var",
"score": 1,
"slug": "no-var",
Expand Down Expand Up @@ -561,6 +575,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/prefer-arrow-callback",
"score": 1,
"slug": "prefer-arrow-callback",
Expand Down Expand Up @@ -598,6 +613,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/prefer-object-spread",
"score": 1,
"slug": "prefer-object-spread",
Expand All @@ -609,6 +625,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://eslint.org/docs/latest/rules/yoda",
"score": 1,
"slug": "yoda",
Expand Down Expand Up @@ -737,6 +754,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/react-in-jsx-scope.md",
"score": 1,
"slug": "react-react-in-jsx-scope",
Expand All @@ -748,6 +766,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://reactjs.org/docs/hooks-rules.html",
"score": 1,
"slug": "react-hooks-rules-of-hooks",
Expand Down Expand Up @@ -798,6 +817,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/display-name.md",
"score": 1,
"slug": "react-display-name",
Expand All @@ -809,6 +829,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-comment-textnodes.md",
"score": 1,
"slug": "react-jsx-no-comment-textnodes",
Expand All @@ -820,6 +841,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-duplicate-props.md",
"score": 1,
"slug": "react-jsx-no-duplicate-props",
Expand All @@ -831,6 +853,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-target-blank.md",
"score": 1,
"slug": "react-jsx-no-target-blank",
Expand All @@ -842,6 +865,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-undef.md",
"score": 1,
"slug": "react-jsx-no-undef",
Expand All @@ -853,6 +877,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-uses-react.md",
"score": 1,
"slug": "react-jsx-uses-react",
Expand All @@ -864,6 +889,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-uses-vars.md",
"score": 1,
"slug": "react-jsx-uses-vars",
Expand All @@ -875,6 +901,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-children-prop.md",
"score": 1,
"slug": "react-no-children-prop",
Expand All @@ -886,6 +913,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-danger-with-children.md",
"score": 1,
"slug": "react-no-danger-with-children",
Expand All @@ -897,6 +925,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-deprecated.md",
"score": 1,
"slug": "react-no-deprecated",
Expand All @@ -908,6 +937,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-direct-mutation-state.md",
"score": 1,
"slug": "react-no-direct-mutation-state",
Expand All @@ -919,6 +949,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-find-dom-node.md",
"score": 1,
"slug": "react-no-find-dom-node",
Expand All @@ -930,6 +961,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-is-mounted.md",
"score": 1,
"slug": "react-no-is-mounted",
Expand All @@ -941,6 +973,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-render-return-value.md",
"score": 1,
"slug": "react-no-render-return-value",
Expand All @@ -952,6 +985,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-string-refs.md",
"score": 1,
"slug": "react-no-string-refs",
Expand All @@ -963,6 +997,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unescaped-entities.md",
"score": 1,
"slug": "react-no-unescaped-entities",
Expand All @@ -974,6 +1009,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unknown-property.md",
"score": 1,
"slug": "react-no-unknown-property",
Expand All @@ -985,6 +1021,7 @@ exports[`CLI collect > should run ESLint plugin and create report.json 1`] = `
"details": {
"issues": [],
},
"displayValue": "passed",
"docsUrl": "https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/require-render-return.md",
"score": 1,
"slug": "react-require-render-return",
Expand Down
Loading

0 comments on commit 40f61a4

Please sign in to comment.