Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
HederAlves committed Oct 17, 2023
1 parent 3a5c19c commit 243dbad
Show file tree
Hide file tree
Showing 5 changed files with 254 additions and 254 deletions.
110 changes: 55 additions & 55 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,84 +31,84 @@
"license": "MIT",
"dependencies": {
"@date-io/date-fns": "1.3.6",
"@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3",
"@material-ui/lab": "^4.0.0-alpha.61",
"@material-ui/pickers": "^3.3.11",
"date-fns": "^2.30.0",
"@material-ui/core": "4.12.4",
"@material-ui/icons": "4.11.3",
"@material-ui/lab": "4.0.0-alpha.61",
"@material-ui/pickers": "3.3.11",
"date-fns": "2.30.0",
"faker": "5.5.3",
"material-table": "1.69.3",
"material-ui-chip-input": "2.0.0-beta.2",
"nginformatica-styleguide": "1.0.2",
"ramda": "0.25.0",
"react-loading-skeleton": "^3.3.1",
"react-number-format": "^5.3.1",
"sprintf-js": "^1.1.3",
"styled-component": "^2.8.0",
"uuid": "^9.0.1"
"react-loading-skeleton": "3.3.1",
"react-number-format": "5.3.1",
"sprintf-js": "1.1.3",
"styled-component": "2.8.0",
"uuid": "9.0.1"
},
"devDependencies": {
"@babel/cli": "^7.23.0",
"@babel/core": "^7.23.2",
"@babel/plugin-transform-runtime": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@babel/preset-typescript": "^7.23.2",
"@storybook/addon-actions": "^7.4.6",
"@storybook/addon-essentials": "^7.4.6",
"@storybook/addon-interactions": "^7.4.6",
"@storybook/addon-links": "^7.4.6",
"@storybook/addon-mdx-gfm": "^7.4.6",
"@storybook/react": "^7.4.6",
"@storybook/react-webpack5": "^7.4.6",
"@babel/cli": "7.23.0",
"@babel/core": "7.23.2",
"@babel/plugin-transform-runtime": "7.23.2",
"@babel/preset-env": "7.23.2",
"@babel/preset-typescript": "7.23.2",
"@storybook/addon-actions": "7.4.6",
"@storybook/addon-essentials": "7.4.6",
"@storybook/addon-interactions": "7.4.6",
"@storybook/addon-links": "7.4.6",
"@storybook/addon-mdx-gfm": "7.4.6",
"@storybook/react": "7.4.6",
"@storybook/react-webpack5": "7.4.6",
"@testing-library/react": "14.0.0",
"@testing-library/user-event": "^14.5.1",
"@testing-library/user-event": "14.5.1",
"@types/faker": "5.5.3",
"@types/history": "^5.0.0",
"@types/jest": "^29.5.5",
"@types/node": "^20.8.6",
"@types/history": "5.0.0",
"@types/jest": "29.5.5",
"@types/node": "20.8.6",
"@types/ramda": "0.25.36",
"@types/react": "^18.2.28",
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
"@types/react": "18.2.28",
"@types/react-router": "5.1.20",
"@types/react-router-dom": "5.3.3",
"@types/sprintf-js": "1.1.2",
"@types/styled-components": "^5.1.28",
"@types/uuid": "^9.0.5",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"babel-loader": "^9.1.3",
"@types/styled-components": "5.1.28",
"@types/uuid": "9.0.5",
"@typescript-eslint/eslint-plugin": "6.7.5",
"@typescript-eslint/parser": "6.7.5",
"babel-loader": "9.1.3",
"babel-plugin-module-resolver": "5.0.0",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-imports": "2.0.0",
"canvas": "2.11.2",
"date-fns": "^2.30.0",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"date-fns": "2.30.0",
"eslint": "8.51.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-prefer-arrow": "1.2.3",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-prettier": "5.0.1",
"eslint-plugin-ramda": "2.5.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-storybook": "^0.6.15",
"fs-extra": "^11.1.1",
"eslint-plugin-storybook": "0.6.15",
"fs-extra": "11.1.1",
"identity-obj-proxy": "3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"node-fetch": "^3.3.2",
"prettier": "^3.0.3",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"node-fetch": "3.3.2",
"prettier": "3.0.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-router": "^6.17.0",
"react-router-dom": "^6.17.0",
"storybook": "^7.4.6",
"styled-components": "^6.1.0",
"ts-jest": "^29.1.1",
"ts-loader": "^9.5.0",
"typescript": "^5.2.2",
"webpack": "^5.89.0"
"react-router": "6.17.0",
"react-router-dom": "6.17.0",
"storybook": "7.4.6",
"styled-components": "6.1.0",
"ts-jest": "29.1.1",
"ts-loader": "9.5.0",
"typescript": "5.2.2",
"webpack": "5.89.0"
},
"peerDependencies": {
"date-fns": "^2.30.0",
"date-fns": "2.30.0",
"react": "16.8.0",
"styled-components": "5.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/core/data-display/chapter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const StyledLine = styled.div<LineProps>`
min-height: 0.75px;
max-height: 3px;
align-self: center;
background-color: ${props => (props.primary ? grays.g4 : grays.g6)}; ;
background-color: ${props => (props.primary ? grays.g4 : grays.g6)};
`

const Container = styled.div`
Expand Down
24 changes: 12 additions & 12 deletions src/core/data-display/editable-table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,15 @@ export const EditableTable = <T extends object>(
const pagination = !props.paginationInfo
? { Pagination: () => null }
: props.noRowsExpand && {
Pagination: (item: any) => (
<RightPagination data-id='pagination'>
<MTablePagination
{...omit(['classes'], item)}
localization={getLocalization(props.title).pagination}
/>
</RightPagination>
)
}
Pagination: (item: any) => (
<RightPagination data-id='pagination'>
<MTablePagination
{...omit(['classes'], item)}
localization={getLocalization(props.title).pagination}
/>
</RightPagination>
)
}

const toolbar = props.noHeader && { Toolbar: () => null }

Expand Down Expand Up @@ -325,8 +325,8 @@ export const EditableTable = <T extends object>(
error={
props.errors
? getErrors(
localProps.columnDef.field
)
localProps.columnDef.field
)
: localProps.error
}
name={localProps.columnDef.field + '-input'}
Expand All @@ -346,7 +346,7 @@ export const EditableTable = <T extends object>(

if (
localProps.columnDef.field ===
props.autoCompleteField &&
props.autoCompleteField &&
props.autoCompleteSuggestions
) {
return renderAutoComplete(localProps)
Expand Down
4 changes: 2 additions & 2 deletions src/core/feedback/dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ export const Dialog = ({
scroll === 'unset-body'
? 'body'
: scroll === 'unset-paper'
? 'paper'
: scroll
? 'paper'
: scroll

return (
<MuiDialog
Expand Down
Loading

0 comments on commit 243dbad

Please sign in to comment.