From 0026bc0099ad1e4d7d332815c83091fbc4226a4c Mon Sep 17 00:00:00 2001 From: David Rivera Date: Thu, 9 Mar 2017 14:42:59 -0600 Subject: [PATCH] Updated dependencies and ESLint rules --- .eslintrc.json | 30 ++++++++++++++++++++++-------- package.json | 6 +++--- yarn.lock | 32 ++++++++++++++++---------------- 3 files changed, 41 insertions(+), 27 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index a78ffad..74e48c3 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,8 +1,9 @@ { "extends": [ - "airbnb-base", + "eslint:recommended", + "plugin:import/errors", "plugin:import/warnings", - "plugin:import/errors" + "airbnb-base" ], "plugins": [ "import" @@ -24,18 +25,31 @@ } }, "rules": { - "import/no-extraneous-dependencies": [ - "error", { "devDependencies": true } - ], "valid-jsdoc": [1, { - "requireReturnDescription": false + "requireParamDescription": false, + "requireReturnDescription": false, + "requireReturn": false, + "requireReturnType": true, + "prefer": { "returns": "return" } + }], + "require-jsdoc": [2, { + "require": { + "FunctionDeclaration": true, + "MethodDefinition": true, + "ClassDeclaration": true + } }], "one-var": [2, { "uninitialized": "always" }], "max-len": 0, - "object-curly-spacing": [2, "never"], + "no-param-reassign": 0, "no-underscore-dangle": 0, - "no-param-reassign": 0 + "object-curly-spacing": [2, "never"], + "import/no-mutable-exports": 1, + "import/prefer-default-export": 1, + "import/no-extraneous-dependencies": [ + "error", { "devDependencies": true } + ] } } diff --git a/package.json b/package.json index 47b3c2e..3c74102 100644 --- a/package.json +++ b/package.json @@ -29,13 +29,13 @@ "devDependencies": { "babel-core": "^6.23.1", "babel-eslint": "^7.1.1", - "babel-loader": "^6.3.2", + "babel-loader": "^6.4.0", "babel-plugin-add-module-exports": "^0.2.1", "babel-preset-es2015": "^6.22.0", "babel-preset-stage-2": "^6.22.0", "clean-webpack-plugin": "^0.1.15", - "eslint": "^3.16.1", - "eslint-config-airbnb-base": "^11.1.0", + "eslint": "^3.17.1", + "eslint-config-airbnb-base": "^11.1.1", "eslint-loader": "^1.6.3", "eslint-plugin-import": "^2.2.0", "webpack": "^1.14.0", diff --git a/yarn.lock b/yarn.lock index 56c26fa..63c6cd9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -330,9 +330,9 @@ babel-helpers@^6.23.0: babel-runtime "^6.22.0" babel-template "^6.23.0" -babel-loader@^6.3.2: - version "6.3.2" - resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-6.3.2.tgz#18de4566385578c1b4f8ffe6cbc668f5e2a5ef03" +babel-loader@^6.4.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-6.4.0.tgz#e98c239662a22533b9e7a49594ef216d7635ea28" dependencies: find-cache-dir "^0.1.1" loader-utils "^0.2.16" @@ -1177,9 +1177,9 @@ escope@^3.6.0: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-config-airbnb-base@^11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-11.1.0.tgz#dc9b3ec70b8c74dcbe6d6257c9da3992c39ca2ca" +eslint-config-airbnb-base@^11.1.1: + version "11.1.1" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-11.1.1.tgz#61e9e89e4eb89f474f6913ac817be9fbb59063e0" eslint-import-resolver-node@^0.2.0: version "0.2.3" @@ -1220,9 +1220,9 @@ eslint-plugin-import@^2.2.0: minimatch "^3.0.3" pkg-up "^1.0.0" -eslint@^3.16.1: - version "3.16.1" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.16.1.tgz#9bc31fc7341692cf772e80607508f67d711c5609" +eslint@^3.17.1: + version "3.17.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.17.1.tgz#b80ae12d9c406d858406fccda627afce33ea10ea" dependencies: babel-code-frame "^6.16.0" chalk "^1.1.3" @@ -2439,10 +2439,11 @@ read-pkg@^1.0.0: normalize-package-data "^2.3.2" path-type "^1.0.0" -"readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@~2.0.0: - version "2.0.6" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.0.6.tgz#8f90341e68a53ccc928788dacfcd11b36eb9b78e" +"readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.1.0: + version "2.2.3" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.3.tgz#9cf49463985df016c8ae8813097a9293a9b33729" dependencies: + buffer-shims "^1.0.0" core-util-is "~1.0.0" inherits "~2.0.1" isarray "~1.0.0" @@ -2450,11 +2451,10 @@ read-pkg@^1.0.0: string_decoder "~0.10.x" util-deprecate "~1.0.1" -readable-stream@^2.1.0: - version "2.2.3" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.3.tgz#9cf49463985df016c8ae8813097a9293a9b33729" +readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@~2.0.0: + version "2.0.6" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.0.6.tgz#8f90341e68a53ccc928788dacfcd11b36eb9b78e" dependencies: - buffer-shims "^1.0.0" core-util-is "~1.0.0" inherits "~2.0.1" isarray "~1.0.0"