@mediatool/eslint-config-mediatool 1.1.7 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.js CHANGED
@@ -70,6 +70,7 @@ const javascriptRules = {
70
70
  'react/prefer-es6-class': 0,
71
71
  'react/prop-types': 0,
72
72
  'react/react-in-jsx-scope': 0,
73
+ 'react/require-default-props': 'off',
73
74
  semi: [ 'error', 'never' ],
74
75
  'sort-imports': [ 'warn', { ignoreDeclarationSort: true } ],
75
76
  'space-before-function-paren': [ 'error', 'always' ],
@@ -1,10 +1,14 @@
1
1
  // eslint-disable-next-line import/no-extraneous-dependencies
2
2
  import React, { useState } from 'react'
3
3
 
4
- const ExampleComponent = () => {
4
+ interface Props {
5
+ date?: string
6
+ }
7
+
8
+ const ExampleComponent = ({ date }: Props) => {
5
9
  const [ message ] = useState('Hey')
6
10
 
7
- return <div>{ message }</div>
11
+ return <div>{ message } { date } </div>
8
12
  }
9
13
 
10
14
  export default ExampleComponent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediatool/eslint-config-mediatool",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "main": ".eslintrc.js",
5
5
  "scripts": {
6
6
  "pretest": "yarn",