Run eslint --fix

This commit is contained in:
Jerko Steiner 2019-09-16 21:04:10 +07:00
parent 9165b96e0f
commit 400d1cd213
18 changed files with 68 additions and 67 deletions

View File

@ -53,3 +53,4 @@ overrides:
'@typescript-eslint/no-var-requires': off
env:
node: true
es6: true

View File

@ -1,5 +1,5 @@
module.exports = {
projects: [
"<rootDir>/packages/*/src"
]
"<rootDir>/packages/*/src",
],
}

View File

@ -1,18 +1,18 @@
module.exports = {
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js'],
maxConcurrency: 1,
verbose: false
verbose: false,
}

View File

@ -1,17 +1,17 @@
module.exports = {
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js'],
verbose: false
verbose: false,
}

View File

@ -1,17 +1,17 @@
module.exports = {
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js'],
verbose: false
verbose: false,
}

View File

@ -1,16 +1,16 @@
module.exports = {
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js']
setupFiles: ['<rootDir>/jest.setup.js'],
}

View File

@ -1,16 +1,16 @@
module.exports = {
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js']
setupFiles: ['<rootDir>/jest.setup.js'],
}

View File

@ -1,16 +1,16 @@
module.exports = {
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js']
setupFiles: ['<rootDir>/jest.setup.js'],
}

View File

@ -1,16 +1,16 @@
module.exports = {
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js']
setupFiles: ['<rootDir>/jest.setup.js'],
}

View File

@ -1,22 +1,22 @@
module.exports = {
globals: {
'ts-jest': {
compiler: 'ttypescript'
}
compiler: 'ttypescript',
},
},
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js'],
verbose: false
verbose: false,
}

View File

@ -1,16 +1,16 @@
module.exports = {
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js']
setupFiles: ['<rootDir>/jest.setup.js'],
}

View File

@ -1,16 +1,16 @@
module.exports = {
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js']
setupFiles: ['<rootDir>/jest.setup.js'],
}

View File

@ -1,22 +1,22 @@
module.exports = {
globals: {
'ts-jest': {
compiler: 'ttypescript'
}
compiler: 'ttypescript',
},
},
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js'],
verbose: false
verbose: false,
}

View File

@ -1,16 +1,16 @@
module.exports = {
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js']
setupFiles: ['<rootDir>/jest.setup.js'],
}

View File

@ -1,18 +1,18 @@
module.exports = {
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js'],
maxConcurrency: 1,
verbose: false
verbose: false,
}

View File

@ -1,16 +1,16 @@
module.exports = {
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js']
setupFiles: ['<rootDir>/jest.setup.js'],
}

View File

@ -1,16 +1,16 @@
module.exports = {
roots: [
'<rootDir>/src'
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js']
setupFiles: ['<rootDir>/jest.setup.js'],
}

View File

@ -28,7 +28,7 @@ function getDependencies(root) {
if (dep.startsWith('@rondo.dev/')) {
return {
file: require.resolve(dep),
isDep: false
isDep: false,
}
}
return {