-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf233f1
commit be55a1c
Showing
30 changed files
with
524 additions
and
207 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
...refer-box-no-classname/invalid-no-classname/gestalt-import-with-box-inline-style-input.js
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,10 @@ | ||
import { Box } from 'gestalt'; | ||
export default function TestElement() { | ||
return ( | ||
<Box> | ||
<div role="button" style={{ marginTop: 200 }}> | ||
<Box /> | ||
</div> | ||
</Box> | ||
); | ||
} |
10 changes: 10 additions & 0 deletions
10
...efer-box-no-classname/invalid-no-classname/gestalt-import-with-box-inline-style-output.js
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,10 @@ | ||
import { Box } from 'gestalt'; | ||
export default function TestElement() { | ||
return ( | ||
<Box> | ||
<Box role="button" dangerouslySetInlineStyle={{ __style: { marginTop: 200 } }}> | ||
<Box /> | ||
</Box> | ||
</Box> | ||
); | ||
} |
10 changes: 10 additions & 0 deletions
10
..._fixtures__/prefer-box-no-classname/invalid-no-classname/gestalt-import-with-box-input.js
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,10 @@ | ||
import { Box } from 'gestalt'; | ||
export default function TestElement() { | ||
return ( | ||
<Box> | ||
<div role="button"> | ||
<Box /> | ||
</div> | ||
</Box> | ||
); | ||
} |
10 changes: 10 additions & 0 deletions
10
...fixtures__/prefer-box-no-classname/invalid-no-classname/gestalt-import-with-box-output.js
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,10 @@ | ||
import { Box } from 'gestalt'; | ||
export default function TestElement() { | ||
return ( | ||
<Box> | ||
<Box role="button"> | ||
<Box /> | ||
</Box> | ||
</Box> | ||
); | ||
} |
10 changes: 10 additions & 0 deletions
10
...s__/prefer-box-no-classname/invalid-no-classname/gestalt-import-with-renamed-box-input.js
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,10 @@ | ||
import { Box as RenamedBox } from 'gestalt'; | ||
export default function TestElement() { | ||
return ( | ||
<RenamedBox> | ||
<div role="button"> | ||
<RenamedBox /> | ||
</div> | ||
</RenamedBox> | ||
); | ||
} |
10 changes: 10 additions & 0 deletions
10
...__/prefer-box-no-classname/invalid-no-classname/gestalt-import-with-renamed-box-output.js
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,10 @@ | ||
import { Box as RenamedBox } from 'gestalt'; | ||
export default function TestElement() { | ||
return ( | ||
<RenamedBox> | ||
<RenamedBox role="button"> | ||
<RenamedBox /> | ||
</RenamedBox> | ||
</RenamedBox> | ||
); | ||
} |
8 changes: 8 additions & 0 deletions
8
...xtures__/prefer-box-no-classname/invalid-no-classname/gestalt-import-without-box-input.js
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,8 @@ | ||
import { Text, Flex } from 'gestalt'; | ||
export default function TestElement() { | ||
return ( | ||
<div role="button"> | ||
<Text>Test</Text> | ||
</div> | ||
); | ||
} |
8 changes: 8 additions & 0 deletions
8
...tures__/prefer-box-no-classname/invalid-no-classname/gestalt-import-without-box-output.js
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,8 @@ | ||
import { Box, Flex, Text } from 'gestalt'; | ||
export default function TestElement() { | ||
return ( | ||
<Box role="button"> | ||
<Text>Test</Text> | ||
</Box> | ||
); | ||
} |
7 changes: 7 additions & 0 deletions
7
.../src/__fixtures__/prefer-box-no-classname/invalid-no-classname/no-gestalt-import-input.js
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,7 @@ | ||
export default function TestElement() { | ||
return ( | ||
<div role="button"> | ||
<button /> | ||
</div> | ||
); | ||
} |
8 changes: 8 additions & 0 deletions
8
...src/__fixtures__/prefer-box-no-classname/invalid-no-classname/no-gestalt-import-output.js
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,8 @@ | ||
import { Box } from 'gestalt'; | ||
export default function TestElement() { | ||
return ( | ||
<Box role="button"> | ||
<button /> | ||
</Box> | ||
); | ||
} |
3 changes: 3 additions & 0 deletions
3
...ures__/prefer-box-no-classname/invalid-no-classname/no-gestalt-import-selfclosed-input.js
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,3 @@ | ||
export default function TestElement() { | ||
return <div role="button" />; | ||
} |
4 changes: 4 additions & 0 deletions
4
...res__/prefer-box-no-classname/invalid-no-classname/no-gestalt-import-selfclosed-output.js
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,4 @@ | ||
import { Box } from 'gestalt'; | ||
export default function TestElement() { | ||
return <Box role="button" />; | ||
} |
File renamed without changes.
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
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
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
84 changes: 0 additions & 84 deletions
84
packages/eslint-plugin-gestalt/src/prefer-box-lonely-ref.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.