Skip to content

Commit

Permalink
add eslint checks - fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Apr 21, 2020
1 parent f8b5ff7 commit a4f7a7a
Show file tree
Hide file tree
Showing 46 changed files with 925 additions and 376 deletions.
11 changes: 11 additions & 0 deletions .eslintignore
@@ -0,0 +1,11 @@
# don't ever lint node_modules
node_modules
# don't lint build output (make sure it's set to your correct build folder name)
lib
# don't lint nyc coverage output
coverage
# test fixtures
test/__fixtures__

/*.js
/*.ts
17 changes: 17 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,17 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/ban-ts-ignore': 0,
'@typescript-eslint/no-namespace': 1
}
};
8 changes: 4 additions & 4 deletions jest.config.js
Expand Up @@ -10,10 +10,10 @@ module.exports = {
collectCoverage: true,
coverageThreshold: {
global: {
branches: 1,
functions: 1,
lines: 1,
statements: 1
branches: 48,
functions: 56,
lines: 65,
statements: 65
}
},
testEnvironment: 'node',
Expand Down

0 comments on commit a4f7a7a

Please sign in to comment.