Skip to content

Commit

Permalink
More linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Nov 3, 2021
1 parent 9b75a71 commit 7a9e178
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
10 changes: 2 additions & 8 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
sourceType: 'script',
ecmaVersion: 2019,
sourceType: 'module',
},
plugins: ['prettier', 'node'],
extends: ['eslint:recommended', 'plugin:node/recommended', 'prettier'],
Expand All @@ -18,10 +18,6 @@ module.exports = {
files: ['**/*.ts'],

parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},

plugins: ['@typescript-eslint'],
extends: ['plugin:@typescript-eslint/recommended'],
Expand All @@ -39,8 +35,6 @@ module.exports = {
},

rules: {
'node/no-unsupported-features/es-syntax': ['error', { ignores: ['modules'] }],

// we should work to remove these overrides
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-use-before-define': 'off',
Expand Down
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
export default {
transform: {},
testEnvironment: 'node',
roots: ['<rootDir>/lib/'],
}
};
1 change: 0 additions & 1 deletion src/bin.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as path from 'path';
import { existsSync } from 'fs';
import execa from 'execa';
import { join } from 'path';
Expand Down

0 comments on commit 7a9e178

Please sign in to comment.