File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "parser": "babel-eslint",
3
+ "env": {
4
+ "browser": true,
5
+ "node": true
6
+ },
7
+ "plugins": [
8
+ "import",
9
+ "react"
10
+ ],
11
+ "extends": [
12
+ "eslint:recommended",
13
+ "plugin:import/errors",
14
+ "plugin:react/recommended"
15
+ ],
16
+ "rules": {
17
+ "prefer-arrow-callback": 2,
18
+ "semi": [ 2, "never" ]
19
+ },
20
+ "globals": {
21
+ "__DEV__": true
22
+ }
23
+ }
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class Broadcast extends React.Component {
41
41
42
42
static propTypes = {
43
43
channel : PropTypes . string . isRequired ,
44
+ children : PropTypes . node . isRequired ,
44
45
value : PropTypes . any
45
46
}
46
47
Original file line number Diff line number Diff line change 9
9
"build-cjs" : " babel ./modules -d . --ignore '__tests__'" ,
10
10
"build-umd" : " webpack modules/index.js umd/react-broadcast.js" ,
11
11
"build-min" : " webpack -p modules/index.js umd/react-broadcast.min.js" ,
12
- "prepublish" : " node ./scripts/build.js"
12
+ "prepublish" : " node ./scripts/build.js" ,
13
+ "test" : " npm run lint" ,
14
+ "lint" : " eslint modules"
13
15
},
14
16
"dependencies" : {
15
17
"invariant" : " ^2.2.1"
20
22
"devDependencies" : {
21
23
"babel-cli" : " ^6.16.0" ,
22
24
"babel-core" : " ^6.16.0" ,
25
+ "babel-eslint" : " ^7.0.0" ,
23
26
"babel-loader" : " ^6.2.5" ,
24
27
"babel-plugin-dev-expression" : " ^0.2.1" ,
25
28
"babel-preset-es2015" : " ^6.16.0" ,
26
29
"babel-preset-es2015-loose" : " ^8.0.0" ,
27
30
"babel-preset-react" : " ^6.16.0" ,
28
31
"babel-preset-stage-1" : " ^6.16.0" ,
32
+ "eslint" : " ^3.7.0" ,
33
+ "eslint-plugin-import" : " ^2.0.0" ,
34
+ "eslint-plugin-react" : " ^6.3.0" ,
29
35
"gzip-size" : " ^3.0.0" ,
30
36
"in-publish" : " ^2.0.0" ,
31
37
"pretty-bytes" : " ^4.0.2" ,
You can’t perform that action at this time.
0 commit comments