diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-07-30 10:54:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 14:24:54 +0530 |
commit | f4b4416ea52d564bc2dbe543a82084ed98843ccc (patch) | |
tree | 7ca6b23571c86458a6b799746c91a7191de02715 /packages/forms/src/wrapper/index.tsx | |
parent | 5.6.1-nightly.8 [skip ci] (diff) | |
download | ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.tar.gz ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.tar.zst ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.zip |
chore: migrate from tslint to @typescript-eslint (#1706)
- update .eslintrc to work for .js and .ts
- update devDependencies
- lint properly both root /src and nested /packages
- update webhint recommended setting for tsconfig.json to shrink output
- Manage all eslint rules from the repo root
- escape single quotes in scripts to please windows build
Co-authored-by: Vijay A <avijayr@protonmail.com>
Diffstat (limited to 'packages/forms/src/wrapper/index.tsx')
-rw-r--r-- | packages/forms/src/wrapper/index.tsx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/forms/src/wrapper/index.tsx b/packages/forms/src/wrapper/index.tsx index cf179bc5e..3ae551e2c 100644 --- a/packages/forms/src/wrapper/index.tsx +++ b/packages/forms/src/wrapper/index.tsx | |||
@@ -12,18 +12,13 @@ interface IProps extends IWithStyle { | |||
12 | 12 | ||
13 | const styles = { | 13 | const styles = { |
14 | container: { | 14 | container: { |
15 | marginBottom: (props: IProps) => props.noMargin ? 0 : 20, | 15 | marginBottom: (props: IProps) => (props.noMargin ? 0 : 20), |
16 | }, | 16 | }, |
17 | }; | 17 | }; |
18 | 18 | ||
19 | class WrapperComponent extends Component<IProps> { | 19 | class WrapperComponent extends Component<IProps> { |
20 | render() { | 20 | render() { |
21 | const { | 21 | const { children, classes, className, identifier } = this.props; |
22 | children, | ||
23 | classes, | ||
24 | className, | ||
25 | identifier, | ||
26 | } = this.props; | ||
27 | 22 | ||
28 | return ( | 23 | return ( |
29 | <div | 24 | <div |