@mediatool/eslint-config-mediatool 0.1.4 → 0.1.6

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
@@ -18,6 +18,7 @@ module.exports = {
18
18
  'space-before-function-paren': [ 'error', 'always' ],
19
19
  'jsx-a11y/interactive-supports-focus': 'off', // Consider enabling later
20
20
  'jsx-a11y/no-static-element-interactions': 'off', // Consider enabling later
21
+ 'jsx-a11y/click-events-have-key-events': 'off', // Consider enabling later
21
22
  'no-unused-vars': ['error', {
22
23
  'vars': 'all',
23
24
  'args': 'all',
File without changes
@@ -0,0 +1,17 @@
1
+ module.exports = function (React) {
2
+ const { PureComponent } = React
3
+ class ExampleComponent extends PureComponent {
4
+ constructor (props) {
5
+ super(props)
6
+ this.state = {
7
+ message: 'Hey',
8
+ }
9
+ }
10
+
11
+ render () {
12
+ return <div>{ this.state.message }</div>
13
+ }
14
+ }
15
+
16
+ return ExampleComponent
17
+ }
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@mediatool/eslint-config-mediatool",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "main": ".eslintrc.js",
5
+ "scripts": {
6
+ "test": "eslint examples/*.*"
7
+ },
5
8
  "dependencies": {
6
9
  "eslint": "^4.19.1",
7
10
  "eslint-config-airbnb": "^16.1.0",