-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(DataListAction): Remove isPlainButtonAction prop
- Loading branch information
Showing
115 changed files
with
1,827 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920113424.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-theme-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-theme-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<PageSidebar theme="dark" />`, | ||
}, | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920113544.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-theme-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-is-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<PageSidebar theme="dark" />`, | ||
}, | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920113546.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-theme-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-isPla-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<PageSidebar theme="dark" />`, | ||
}, | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920113548.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-theme-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-isPlain-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<PageSidebar theme="dark" />`, | ||
}, | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920113552.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-theme-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-isPlainButtonAction-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<PageSidebar theme="dark" />`, | ||
}, | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920113600.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-isPlainButtonAction-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-isPlainButtonAction-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<PageSidebar theme="dark" />`, | ||
}, | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920114010.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-isPlainButtonAction-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-isPlainButtonAction-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<Data theme="dark" />`, | ||
}, | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920114012.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-isPlainButtonAction-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-isPlainButtonAction-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<DataList theme="dark" />`, | ||
}, | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920114018.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-isPlainButtonAction-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-isPlainButtonAction-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<DataListAction... theme="dark" />`, | ||
}, | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920114020.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-isPlainButtonAction-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-isPlainButtonAction-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<DataListAction theme="dark" />`, | ||
}, | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920114029.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-isPlainButtonAction-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-isPlainButtonAction-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<DataListAction isPlainButtonAction />`, | ||
}, | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920114033.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-isPlainButtonAction-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-isPlainButtonAction-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<DataListAction isPlainButtonAction />`, | ||
}, | ||
{ | ||
code: `import { Data } from '@patternfly/react-core'; <PageSidebar someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920114037.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-isPlainButtonAction-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-isPlainButtonAction-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<DataListAction isPlainButtonAction />`, | ||
}, | ||
{ | ||
code: `import { DataListAction } from '@patternfly/react-core'; <PageSidebar someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920114048.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-isPlainButtonAction-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-isPlainButtonAction-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<DataListAction isPlainButtonAction />`, | ||
}, | ||
{ | ||
code: `import { DataListAction } from '@patternfly/react-core'; <DataListAction someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
25 changes: 25 additions & 0 deletions
25
...ainButtonActionProp/dataListAction-remove-isPlainButtonAction-prop.test_20240920114100.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const ruleTester = require("../../ruletester"); | ||
import * as rule from "./dataListAction-remove-isPlainButtonAction-prop"; | ||
|
||
ruleTester.run("dataListAction-remove-isPlainButtonAction-prop", rule, { | ||
valid: [ | ||
{ | ||
code: `<DataListAction isPlainButtonAction />`, | ||
}, | ||
{ | ||
code: `import { DataListAction } from '@patternfly/react-core'; <DataListAction someOtherProp />`, | ||
}, | ||
], | ||
invalid: [ | ||
{ | ||
code: `import { DataListActipo } from '@patternfly/react-core'; <PageSidebar theme="dark" />`, | ||
output: `import { PageSidebar } from '@patternfly/react-core'; <PageSidebar />`, | ||
errors: [ | ||
{ | ||
message: `The \`theme\` prop has been removed from PageSidebar as theming is no longer handled React-side.`, | ||
type: "JSXOpeningElement", | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
Oops, something went wrong.