-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from AndreaPontrandolfo/AndreaPontrandolfo/is…
…sue247 AndreaPontrandolfo/issue247
- Loading branch information
Showing
23 changed files
with
625 additions
and
392 deletions.
There are no files selected for viewing
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,18 @@ | ||
--- | ||
'eslint-config-sheriff': minor | ||
'config-validation-playground': patch | ||
'@sherifforg/create-config': patch | ||
'sheriff-webservices': patch | ||
'@sherifforg/types': patch | ||
'@sheriff/utils': patch | ||
'@sherifforg/cli': patch | ||
'docs-website': patch | ||
--- | ||
|
||
feat(rules): removed react/jsx-props-no-spreading | ||
feat(rules): added no-useless-computed-key | ||
feat(rules): added unicorn/no-unused-properties | ||
feat(rules): restricted the confusingBrowserGlobals | ||
feat(rule): added react/no-this-in-sfc | ||
chore(deps): updated some deps | ||
Closes #247 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import type { JSX } from 'react'; | ||
|
||
interface InfoButtonProps { | ||
text: string; | ||
} | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import type { JSX } from 'react'; | ||
|
||
export const MyComponent = (): JSX.Element => { | ||
return ( | ||
<div> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import type { JSX } from 'react'; | ||
|
||
interface TableEntry { | ||
FlatConfig: '✅' | '❌'; | ||
Maintained: '✅' | '❌'; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
import type React from "react"; | ||
import type { JSX } from 'react'; | ||
|
||
interface DynamicSnippetsListProps { | ||
paths: string[]; | ||
} | ||
|
||
export const DynamicSnippetsList = ({ | ||
paths, | ||
}: DynamicSnippetsListProps): React.JSX.Element => | ||
{ return <ul> | ||
{paths.map((path) => | ||
{ return <li key={path}> | ||
<code>{path}</code> | ||
</li> } | ||
)} | ||
</ul> } | ||
; | ||
}: DynamicSnippetsListProps): JSX.Element => { | ||
return ( | ||
<ul> | ||
{paths.map((path) => { | ||
return ( | ||
<li key={path}> | ||
<code>{path}</code> | ||
</li> | ||
); | ||
})} | ||
</ul> | ||
); | ||
}; |
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
Oops, something went wrong.