Skip to content

Commit

Permalink
fix(eslint): Upgrade eslint, remove unnecessary deps
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Nov 24, 2016
1 parent 76e050f commit d85aab9
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 54 deletions.
67 changes: 33 additions & 34 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@
{
"parser": "babel-eslint",
"extends": "airbnb",
"globals": {
},
"env": {
"browser": true,
"node": true,
"jasmine": true
},
"rules": {
"arrow-parens": "off",
"arrow-body-style": "off",
"prefer-arrow-callback": ["error", {"allowNamedFunctions": true}],
"object-curly-spacing": "off",
"max-len": "off",
"new-cap": ["error", {"capIsNew": false}],
"newline-per-chained-call": "off",
"no-plusplus": "off",
"no-mixed-operators": "off",
"no-console": "off",
"no-continue": "off",
"no-lonely-if": "off",
"no-underscore-dangle": "off",
"object-shorthand": "off",
"quotes": "off",
"class-methods-use-this": "off",
"semi": "off",
"no-param-reassign": ["error", { "props": false }],
"import/extensions": ["error", "never"],
"import/no-unresolved": ["error", {"ignore": ["nylas-exports", "nylas-component-kit", "electron", "nylas-store", "react-dom/server", "nylas-observables", "windows-shortcuts", "moment-round", "chrono-node", "event-kit", "enzyme"]}]
},
"settings": {
"import/core-modules": [ "electron", "jasmine" ]
}
"parser": "babel-eslint",
"extends": "standard",
"plugins": [
"react",
"standard",
"promise",
"import",
"jsx-a11y"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"jasmine": true
},
"rules": {
"semi": ["off"],
"react/jsx-uses-vars": [2],
"space-before-function-paren": ["off"],
"no-multiple-empty-lines": ["off"],
"quotes": ["off"],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}]
}
}
16 changes: 2 additions & 14 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@
"url": ""
},
"scripts": {
"test": "xo",
"start": "electron . --enable-logging",
"build": "electron-packager . --out=dist --asar --overwrite --all",
"postinstall": "rm -f ./node_modules/electron-rxdb; ln -s ../../ ./node_modules/electron-rxdb; ./node_modules/.bin/electron-rebuild"
},
"files": [
"index.js",
"index.html",
"index.css"
"index.js"
],
"keywords": [
"electron-app",
Expand All @@ -34,16 +31,7 @@
"react-dom": "^15.3.2"
},
"devDependencies": {
"devtron": "^1.3.0",
"electron-prebuilt-compile": "^1.4.4",
"electron-rebuild": "^1.2.1",
"xo": "^0.16.0"
},
"xo": {
"esnext": true,
"envs": [
"node",
"browser"
]
"electron-rebuild": "^1.2.1"
}
}
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@
"rx-lite": "^4.0.8"
},
"devDependencies": {
"babel-eslint": "^7.0.0",
"babel-eslint": "7.1.0",
"babel-preset-electron": "^0.37.8",
"babel-preset-es2016-node5": "^1.1.2",
"babel-preset-react": "^6.16.0",
"electron-prebuilt-compile": "^1.4.4",
"esdoc-es7-plugin": "0.0.3",
"eslint": "^3.8.0",
"eslint-config-airbnb": "^12.0.0",
"eslint-plugin-import": "^1.16.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.4.1",
"eslint": "3.10.1",
"eslint-config-standard": "^6.2.1",
"eslint-plugin-import": "2.2.0",
"eslint-plugin-jsx-a11y": "2.2.3",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-react": "6.7.1",
"eslint-plugin-standard": "^2.0.1",
"eslint_d": "4.2.0",
"jasmine": "^2.5.2"
},
"scripts": {
Expand Down

0 comments on commit d85aab9

Please sign in to comment.