Skip to content

Commit

Permalink
feat: add support for groupon/node10
Browse files Browse the repository at this point in the history
  • Loading branch information
dbushong committed Mar 14, 2019
1 parent addefd0 commit 3be91a5
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8
10
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
language: node_js
node_js:
- 8.9.0
- 10.14.1
deploy:
- provider: script
script: ./node_modules/.bin/nlm release
skip_cleanup: true
'on':
branch: master
node: 8.9.0
node: 10.14.1
3 changes: 3 additions & 0 deletions examples/eslint/node10/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = require('../../../node10');
10 changes: 10 additions & 0 deletions examples/eslint/node10/for-await-of.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict';

function fn() {}

async function loop() {
for await (const x of [5]) {
fn(x);
}
}
loop();
4 changes: 4 additions & 0 deletions examples/eslint/node10/regexp-capture-group.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
'use strict';

const re = /foo(?:<suffix>...)/;
'foobar'.match(re);
50 changes: 50 additions & 0 deletions node10.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* Copyright (c) 2015, Groupon, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* Neither the name of GROUPON nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

'use strict';

const basics = require('./lib/basics');

const opinions = require('./lib/rules/opinions');
const conventions = require('./lib/rules/conventions');
const mistakes = require('./lib/rules/mistakes');

module.exports = Object.assign(basics, {
rules: Object.assign({}, opinions, conventions, mistakes, {
// Additional opinions

// Additional conventions

// Additional mistakes
'node/no-unsupported-features': [2, { version: '10.14.1' }],
}),
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"peerDependencies": {
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-mocha": "^5.1.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-prettier": "^2.6.2",
"eslint": "^5.1.0"
},
Expand All @@ -37,7 +37,7 @@
"eslint": "^5.1.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-mocha": "^5.1.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-prettier": "^2.6.2",
"globby": "^8.0.1",
"mocha": "^5.2.0",
Expand Down

0 comments on commit 3be91a5

Please sign in to comment.