-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for node 16, formatting and linting (bootstrap-4) (#2936)
* Added support for node 16, formatting and linting - Regenerated the `package-lock.json` file with node-16 - Also added packages to support linting - Added the `cs-check`, `cs-format` and `lint` scripts along with `lint-staged` to the `package.json` file - Ran `eslint --fix` and `cs-format` over the `src` and `test` directories to fix the build - Added a slight adaptation of the `.eslintrc` file from `core` to this package * - Fixed build
- Loading branch information
1 parent
be7296f
commit 04d9353
Showing
55 changed files
with
150,478 additions
and
10,335 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,37 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"rules": { | ||
"react/jsx-uses-react": 2, | ||
"react/jsx-uses-vars": 2, | ||
"react/react-in-jsx-scope": 2, | ||
"react/jsx-tag-spacing": [1, { | ||
"beforeSelfClosing": "always" | ||
}], | ||
"curly": [2], | ||
"linebreak-style": [2, "unix"], | ||
"semi": [2, "always"], | ||
"comma-dangle": [0], | ||
"@typescript-eslint/no-unused-vars": [2, { | ||
"vars": "all", | ||
"args": "none", | ||
"ignoreRestSiblings": true | ||
}], | ||
"no-console": [0], | ||
"object-curly-spacing": [2, "always"], | ||
"keyword-spacing": ["error"], | ||
"no-prototype-builtins": "warn", | ||
"@typescript-eslint/no-empty-function": "warn", | ||
"@typescript-eslint/no-var-requires": "warn" | ||
}, | ||
"env": { | ||
"es6": true, | ||
"browser": true, | ||
"node": true | ||
}, | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"jsx-a11y", | ||
"react" | ||
] | ||
} |
160,329 changes: 150,167 additions & 10,162 deletions
160,329
packages/bootstrap-4/package-lock.json
Large diffs are not rendered by default.
Oops, something went wrong.
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,2 +1,2 @@ | ||
export { default } from './AddButton'; | ||
export * from './AddButton'; | ||
export { default } from "./AddButton"; | ||
export * from "./AddButton"; |
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,2 +1,2 @@ | ||
export { default } from './ArrayFieldTemplate'; | ||
export * from './ArrayFieldTemplate'; | ||
export { default } from "./ArrayFieldTemplate"; | ||
export * from "./ArrayFieldTemplate"; |
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,2 +1,2 @@ | ||
export { default } from './CheckboxWidget'; | ||
export * from './CheckboxWidget'; | ||
export { default } from "./CheckboxWidget"; | ||
export * from "./CheckboxWidget"; |
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,2 +1,2 @@ | ||
export { default } from './CheckboxesWidget'; | ||
export * from './CheckboxesWidget'; | ||
export { default } from "./CheckboxesWidget"; | ||
export * from "./CheckboxesWidget"; |
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,15 +1,10 @@ | ||
import React from "react"; | ||
import { WidgetProps } from '@rjsf/utils'; | ||
import { WidgetProps } from "@rjsf/utils"; | ||
|
||
const DateWidget = (props: WidgetProps) => { | ||
const { registry } = props; | ||
const { TextWidget } = registry.widgets; | ||
return ( | ||
<TextWidget | ||
{...props} | ||
type="date" | ||
/> | ||
); | ||
return <TextWidget {...props} type="date" />; | ||
}; | ||
|
||
export default DateWidget; |
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,2 +1,2 @@ | ||
export { default } from './DescriptionField'; | ||
export * from './DescriptionField'; | ||
export { default } from "./DescriptionField"; | ||
export * from "./DescriptionField"; |
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,2 +1,2 @@ | ||
export { default } from './EmailWidget'; | ||
export * from './EmailWidget'; | ||
export { default } from "./EmailWidget"; | ||
export * from "./EmailWidget"; |
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,2 +1,2 @@ | ||
export { default } from './ErrorList'; | ||
export * from './ErrorList'; | ||
export { default } from "./ErrorList"; | ||
export * from "./ErrorList"; |
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,2 +1,2 @@ | ||
export { default } from './FieldTemplate'; | ||
export * from './FieldTemplate'; | ||
export { default } from "./FieldTemplate"; | ||
export * from "./FieldTemplate"; |
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,2 +1,2 @@ | ||
export { default } from './Fields'; | ||
export * from './Fields'; | ||
export { default } from "./Fields"; | ||
export * from "./Fields"; |
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,10 +1,10 @@ | ||
import React from "react"; | ||
import { WidgetProps } from '@rjsf/utils'; | ||
import { WidgetProps } from "@rjsf/utils"; | ||
|
||
const FileWidget = (props: WidgetProps) => { | ||
const { registry } = props; | ||
const { TextWidget } = registry.widgets; | ||
return <TextWidget {...props} type="file"/>; | ||
return <TextWidget {...props} type="file" />; | ||
}; | ||
|
||
export default FileWidget; |
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,2 +1,2 @@ | ||
export { default } from './FileWidget'; | ||
export * from './FileWidget'; | ||
export { default } from "./FileWidget"; | ||
export * from "./FileWidget"; |
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,2 +1,2 @@ | ||
export { default } from './IconButton'; | ||
export * from './IconButton'; | ||
export { default } from "./IconButton"; | ||
export * from "./IconButton"; |
Oops, something went wrong.