Skip to content

Commit

Permalink
drop node 8
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Oct 13, 2020
1 parent e801118 commit 8ce6cf7
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
plugins: ['node', 'prettier', '@typescript-eslint'],
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:node/recommended', 'plugin:prettier/recommended'],
env: {
node: true,
},
rules: {
'node/shebang': 'off',
},
overrides: [
{
env: { mocha: true },
files: '**/*-test.ts',
plugins: ['mocha'],
extends: ['plugin:mocha/recommended'],
rules: {
'node/no-unpublished-require': 'off',
'mocha/no-setup-in-describe': 'off',
'mocha/no-hooks-for-single-case': 'off',
},
},
],
};
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
singleQuote: true,
trailingComma: 'all',
arrowParens: 'avoid',
printWidth: 100,
endOfLine: 'auto',
};
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ dist: trusty

language: node_js
node_js:
- '8'
- '10'
- '12'

Expand Down
1 change: 0 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
environment:
MOCHA_REPORTER: 'mocha-appveyor-reporter'
matrix:
- nodejs_version: '8'
- nodejs_version: '10'
- nodejs_version: '12'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"lint": "eslint ."
},
"engines": {
"node": "8.* || 10.* || >= 12"
"node": "10.* || >= 12"
}
}

0 comments on commit 8ce6cf7

Please sign in to comment.