File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "parser": "babel-eslint",
3- "extends": "airbnb ",
3+ "extends": "hexa1 ",
44 "globals": {
55 "React": true
6- },
7- "rules": {
8- "react/jsx-boolean-value": [2, "always"],
9- "react/sort-comp": [0],
10- "react/no-multi-comp": [0],
11- "react/no-did-mount-set-state": [0],
12- "react/jsx-no-duplicate-props": [2],
13- "react/jsx-filename-extension": [0],
14- "no-param-reassign": [0],
15- "no-else-return": [0],
16- "no-unused-vars": [2, {
17- "vars": "all",
18- "args": "none"
19- }],
20- "no-use-before-define": [2, "nofunc"],
21- "indent": [2, 2, {
22- "SwitchCase": 1
23- }],
24- "jsx-quotes": [0],
25- "new-cap": [2, {
26- "capIsNewExceptions": ["Line", "Bar"]
27- }],
28- "consistent-return": [0],
29- "no-dupe-keys": [2],
30- "max-len": [0],
31- "no-return-assign": [0],
32- "import/no-unresolved": [2, {
33- "ignore": ["react"]
34- }],
35- "import/no-named-as-default": [0],
36- "import/no-extraneous-dependencies": [0]
376 }
387}
Original file line number Diff line number Diff line change 11{
22 "name" : " react-json-editor" ,
3- "version" : " 0.2.4 " ,
3+ "version" : " 0.2.5 " ,
44 "description" : " A JSON editor for ReactJS" ,
55 "main" : " dist/index.js" ,
66 "scripts" : {
77 "test" : " ./node_modules/.bin/karma start" ,
88 "build" : " NODE_ENV=production ./node_modules/.bin/babel ./src -d dist && ./node_modules/.bin/node-sass ./src/jsonEditor.scss > dist/jsonEditor.css" ,
9- "lint" : " ./node_modules/.bin/eslint src" ,
9+ "lint" : " ./node_modules/.bin/eslint src tests " ,
1010 "start" : " node examples/server.js"
1111 },
1212 "author" : " Vito LaVilla <vito@vitosamson.com>" ,
2222 "babel-preset-es2015" : " ^6.9.0" ,
2323 "babel-preset-react" : " ^6.11.1" ,
2424 "babel-preset-stage-0" : " ^6.5.0" ,
25- "eslint" : " ^3.2.2 " ,
26- "eslint-config-airbnb " : " ^10.0.0 " ,
25+ "eslint" : " ^3.4.0 " ,
26+ "eslint-config-hexa1 " : " github:hexa1/eslint-config-hexa1#v0.1.1 " ,
2727 "eslint-import-resolver-webpack" : " ^0.4.0" ,
28- "eslint-plugin-import" : " ^1.12.0" ,
29- "eslint-plugin-jsx-a11y" : " ^2.0.1" ,
30- "eslint-plugin-react" : " ^6.0.0" ,
3128 "expect" : " ^1.20.2" ,
3229 "express" : " ^4.14.0" ,
3330 "express-urlrewrite" : " ^1.2.0" ,
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export default class AddElementButton extends Component {
106106 rootClose = { true }
107107 onEnter = { ( ) => this . setState ( { newElementInvalidName : false } ) }
108108 onExited = { ( ) => this . setState ( { newElementName : '' } ) }
109- ref = { ot => this . newElementOverlay = ot }
109+ ref = { ot => ( this . newElementOverlay = ot ) }
110110 >
111111 { button }
112112 </ OverlayTrigger >
Original file line number Diff line number Diff line change 33 "mocha": true
44 },
55 "rules": {
6- "global-require": [0]
6+ "global-require": [0],
7+ "import/no-extraneous-dependencies": [2, { "devDependencies": true }]
78 },
89 "settings": {
910 "import/resolver": {
You can’t perform that action at this time.
0 commit comments