From 400d1cd2139dd978b9a630913355d84d07eeb3c7 Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Mon, 16 Sep 2019 21:04:10 +0700 Subject: [PATCH] Run eslint --fix --- .eslintrc.yaml | 1 + jest.config.js | 4 ++-- packages/argparse/jest.config.js | 8 ++++---- packages/client/jest.config.js | 8 ++++---- packages/common/jest.config.js | 8 ++++---- packages/config/jest.config.js | 8 ++++---- packages/http-client/jest.config.js | 8 ++++---- packages/http-types/jest.config.js | 8 ++++---- packages/image-upload/jest.config.js | 8 ++++---- packages/jsonrpc/jest.config.js | 12 ++++++------ packages/logger/jest.config.js | 8 ++++---- packages/redux/jest.config.js | 8 ++++---- packages/scripts/jest.config.js | 12 ++++++------ packages/scripts/template/jest.config.js | 8 ++++---- packages/tasq/jest.config.js | 8 ++++---- packages/test-utils/jest.config.js | 8 ++++---- packages/validator/jest.config.js | 8 ++++---- scripts/list-deps.js | 2 +- 18 files changed, 68 insertions(+), 67 deletions(-) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 0b08e16..9a6255e 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -53,3 +53,4 @@ overrides: '@typescript-eslint/no-var-requires': off env: node: true + es6: true diff --git a/jest.config.js b/jest.config.js index 310b27c..aff6eda 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,5 +1,5 @@ module.exports = { projects: [ - "/packages/*/src" - ] + "/packages/*/src", + ], } diff --git a/packages/argparse/jest.config.js b/packages/argparse/jest.config.js index 3a4457a..f481eec 100644 --- a/packages/argparse/jest.config.js +++ b/packages/argparse/jest.config.js @@ -1,18 +1,18 @@ module.exports = { roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], setupFiles: ['/jest.setup.js'], maxConcurrency: 1, - verbose: false + verbose: false, } diff --git a/packages/client/jest.config.js b/packages/client/jest.config.js index 7b62f2d..ec06ec7 100644 --- a/packages/client/jest.config.js +++ b/packages/client/jest.config.js @@ -1,17 +1,17 @@ module.exports = { roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], setupFiles: ['/jest.setup.js'], - verbose: false + verbose: false, } diff --git a/packages/common/jest.config.js b/packages/common/jest.config.js index 7b62f2d..ec06ec7 100644 --- a/packages/common/jest.config.js +++ b/packages/common/jest.config.js @@ -1,17 +1,17 @@ module.exports = { roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], setupFiles: ['/jest.setup.js'], - verbose: false + verbose: false, } diff --git a/packages/config/jest.config.js b/packages/config/jest.config.js index 737dab0..4c0cf86 100644 --- a/packages/config/jest.config.js +++ b/packages/config/jest.config.js @@ -1,16 +1,16 @@ module.exports = { roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], - setupFiles: ['/jest.setup.js'] + setupFiles: ['/jest.setup.js'], } diff --git a/packages/http-client/jest.config.js b/packages/http-client/jest.config.js index 737dab0..4c0cf86 100644 --- a/packages/http-client/jest.config.js +++ b/packages/http-client/jest.config.js @@ -1,16 +1,16 @@ module.exports = { roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], - setupFiles: ['/jest.setup.js'] + setupFiles: ['/jest.setup.js'], } diff --git a/packages/http-types/jest.config.js b/packages/http-types/jest.config.js index 737dab0..4c0cf86 100644 --- a/packages/http-types/jest.config.js +++ b/packages/http-types/jest.config.js @@ -1,16 +1,16 @@ module.exports = { roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], - setupFiles: ['/jest.setup.js'] + setupFiles: ['/jest.setup.js'], } diff --git a/packages/image-upload/jest.config.js b/packages/image-upload/jest.config.js index 737dab0..4c0cf86 100644 --- a/packages/image-upload/jest.config.js +++ b/packages/image-upload/jest.config.js @@ -1,16 +1,16 @@ module.exports = { roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], - setupFiles: ['/jest.setup.js'] + setupFiles: ['/jest.setup.js'], } diff --git a/packages/jsonrpc/jest.config.js b/packages/jsonrpc/jest.config.js index b3171a7..777a5de 100644 --- a/packages/jsonrpc/jest.config.js +++ b/packages/jsonrpc/jest.config.js @@ -1,22 +1,22 @@ module.exports = { globals: { 'ts-jest': { - compiler: 'ttypescript' - } + compiler: 'ttypescript', + }, }, roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], setupFiles: ['/jest.setup.js'], - verbose: false + verbose: false, } diff --git a/packages/logger/jest.config.js b/packages/logger/jest.config.js index 737dab0..4c0cf86 100644 --- a/packages/logger/jest.config.js +++ b/packages/logger/jest.config.js @@ -1,16 +1,16 @@ module.exports = { roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], - setupFiles: ['/jest.setup.js'] + setupFiles: ['/jest.setup.js'], } diff --git a/packages/redux/jest.config.js b/packages/redux/jest.config.js index 737dab0..4c0cf86 100644 --- a/packages/redux/jest.config.js +++ b/packages/redux/jest.config.js @@ -1,16 +1,16 @@ module.exports = { roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], - setupFiles: ['/jest.setup.js'] + setupFiles: ['/jest.setup.js'], } diff --git a/packages/scripts/jest.config.js b/packages/scripts/jest.config.js index b3171a7..777a5de 100644 --- a/packages/scripts/jest.config.js +++ b/packages/scripts/jest.config.js @@ -1,22 +1,22 @@ module.exports = { globals: { 'ts-jest': { - compiler: 'ttypescript' - } + compiler: 'ttypescript', + }, }, roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], setupFiles: ['/jest.setup.js'], - verbose: false + verbose: false, } diff --git a/packages/scripts/template/jest.config.js b/packages/scripts/template/jest.config.js index 737dab0..4c0cf86 100644 --- a/packages/scripts/template/jest.config.js +++ b/packages/scripts/template/jest.config.js @@ -1,16 +1,16 @@ module.exports = { roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], - setupFiles: ['/jest.setup.js'] + setupFiles: ['/jest.setup.js'], } diff --git a/packages/tasq/jest.config.js b/packages/tasq/jest.config.js index 3a4457a..f481eec 100644 --- a/packages/tasq/jest.config.js +++ b/packages/tasq/jest.config.js @@ -1,18 +1,18 @@ module.exports = { roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], setupFiles: ['/jest.setup.js'], maxConcurrency: 1, - verbose: false + verbose: false, } diff --git a/packages/test-utils/jest.config.js b/packages/test-utils/jest.config.js index 737dab0..4c0cf86 100644 --- a/packages/test-utils/jest.config.js +++ b/packages/test-utils/jest.config.js @@ -1,16 +1,16 @@ module.exports = { roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], - setupFiles: ['/jest.setup.js'] + setupFiles: ['/jest.setup.js'], } diff --git a/packages/validator/jest.config.js b/packages/validator/jest.config.js index 737dab0..4c0cf86 100644 --- a/packages/validator/jest.config.js +++ b/packages/validator/jest.config.js @@ -1,16 +1,16 @@ module.exports = { roots: [ - '/src' + '/src', ], transform: { - '^.+\\.tsx?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$', moduleFileExtensions: [ 'ts', 'tsx', 'js', - 'jsx' + 'jsx', ], - setupFiles: ['/jest.setup.js'] + setupFiles: ['/jest.setup.js'], } diff --git a/scripts/list-deps.js b/scripts/list-deps.js index b39cc3d..d7c3841 100755 --- a/scripts/list-deps.js +++ b/scripts/list-deps.js @@ -28,7 +28,7 @@ function getDependencies(root) { if (dep.startsWith('@rondo.dev/')) { return { file: require.resolve(dep), - isDep: false + isDep: false, } } return {