Skip to content

Commit

Permalink
style(lint): enable node/no-unsupported-features rule
Browse files Browse the repository at this point in the history
  • Loading branch information
macklinu committed Feb 11, 2018
1 parent 18c97de commit 255e1b6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
'plugin:eslint-plugin/recommended',
'prettier',
],
plugins: ['eslint-plugin', 'prettier'],
plugins: ['eslint-plugin', 'node', 'prettier'],
parserOptions: {
ecmaVersion: 2017,
},
Expand All @@ -25,6 +25,7 @@ module.exports = {
'https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/{{name}}.md',
},
],
'node/no-unsupported-features': ['error', { version: 4 }],
'prettier/prettier': 'error',
},
overrides: [
Expand Down
1 change: 1 addition & 0 deletions dangerfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

// eslint-disable-next-line node/no-unsupported-features
const { danger, fail } = require('danger');

// Ensure that people include a description on their PRs
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"eslint": "^4.10.0",
"eslint-config-prettier": "^2.7.0",
"eslint-plugin-eslint-plugin": "^1.4.0",
"eslint-plugin-node": "^6.0.0",
"eslint-plugin-prettier": "^2.3.1",
"husky": "^0.14.3",
"jest": "^22.0.4",
Expand Down
17 changes: 16 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1591,6 +1591,15 @@ eslint-plugin-eslint-plugin@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-plugin/-/eslint-plugin-eslint-plugin-1.4.0.tgz#382dc6692a741a52072d5f3fff5dacdcf291ef49"

eslint-plugin-node@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-6.0.0.tgz#5ad5ee6b5346aec6cc9cde0b8619caed2c6d8f25"
dependencies:
ignore "^3.3.6"
minimatch "^3.0.4"
resolve "^1.3.3"
semver "^5.4.1"

eslint-plugin-prettier@^2.3.1:
version "2.4.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.4.0.tgz#85cab0775c6d5e3344ef01e78d960f166fb93aae"
Expand Down Expand Up @@ -2295,7 +2304,7 @@ iconv-lite@0.4.19, iconv-lite@^0.4.17:
version "0.4.19"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b"

ignore@^3.3.3, ignore@^3.3.5:
ignore@^3.3.3, ignore@^3.3.5, ignore@^3.3.6:
version "3.3.7"
resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021"

Expand Down Expand Up @@ -4218,6 +4227,12 @@ resolve@1.1.7:
version "1.1.7"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"

resolve@^1.3.3:
version "1.5.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36"
dependencies:
path-parse "^1.0.5"

responselike@1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7"
Expand Down

0 comments on commit 255e1b6

Please sign in to comment.