Skip to content

Commit

Permalink
updates test and lint configs
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVolland committed Apr 1, 2021
1 parent 5ca4a7a commit f8ad90c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 38 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Expand Up @@ -6,3 +6,4 @@ dist
coverage

.eslintrc.js
jest.config.js
1 change: 0 additions & 1 deletion .eslintrc.js
Expand Up @@ -4,7 +4,6 @@ module.exports = {
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig-eslint.json",
"sourceType": "module"
},
"plugins": [
Expand Down
10 changes: 5 additions & 5 deletions jest.config.js
@@ -1,16 +1,16 @@
const testRegex = 'src/.*\\.spec.ts$';

module.exports = {
'moduleFileExtensions': [
'ts',
'js'
],
// 'transform': {
// '^.+\\.ts$': '<rootDir>/node_modules/babel-jest'
// },
'transformIgnorePatterns': [
'node_modules/(?!(geostyler-style)/)'
],
'testRegex': '/src/.*\\.spec.(ts|js)$',
'testRegex': testRegex,
'collectCoverageFrom': [
'src/*.ts'
'src/*.ts',
'!' + testRegex
]
};
22 changes: 6 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -30,7 +30,7 @@
"stream": "0.0.2",
"timers": "^0.1.1",
"xml2js": "^0.4.23",
"xmldom": "^0.2.1"
"xmldom": "^0.5.0"
},
"scripts": {
"build": "tsc -p tsconfig.json && npm run build:browser",
Expand All @@ -56,7 +56,6 @@
"@types/node": "^12.12.54",
"@types/xml2js": "^0.4.5",
"@typescript-eslint/eslint-plugin": "^3.9.0",
"@typescript-eslint/eslint-plugin-tslint": "^3.9.0",
"@typescript-eslint/parser": "^3.9.0",
"babel-jest": "^26.3.0",
"coveralls": "^3.1.0",
Expand Down
14 changes: 0 additions & 14 deletions tsconfig-eslint.json

This file was deleted.

0 comments on commit f8ad90c

Please sign in to comment.