Skip to content

Commit 5b704b3

Browse files
authored
Merge pull request #67 from BSStudio/feature/add-babel-eslint
Add Babel and ESlint support
2 parents 96b4caf + 9429ba2 commit 5b704b3

19 files changed

Lines changed: 5228 additions & 1576 deletions

integration/.dockerignore

Lines changed: 0 additions & 190 deletions
This file was deleted.

integration/.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
env: {
3+
es2021: true,
4+
jest: true,
5+
node: true,
6+
},
7+
parserOptions: {
8+
sourceType: 'module',
9+
},
10+
extends: ['prettier', 'plugin:prettier/recommended', 'plugin:jest/all'],
11+
plugins: ['prettier', 'jest'],
12+
rules: {
13+
'jest/no-hooks': 'off',
14+
'sort-imports': 'error',
15+
},
16+
}

integration/.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true
4+
}

integration/babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [['@babel/preset-env', { targets: { node: 'current' } }]],
3+
}

integration/jest.config.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
/*
2-
* For a detailed explanation regarding each configuration property, visit:
3-
* https://jestjs.io/docs/en/configuration.html
4-
*/
51
module.exports = {
6-
reporters: ["default", ["jest-junit", {outputDirectory: "out"}]],
7-
globalSetup: './test/env/setup.js',
8-
globalTeardown: './test/env/teardown.js',
9-
testEnvironment: './test/env/testcontainersEnvironment.js',
10-
};
2+
reporters: ['default', ['jest-junit', { outputDirectory: 'out' }]],
3+
globalSetup: './test/env/setup.js',
4+
globalTeardown: './test/env/teardown.js',
5+
testEnvironment: './test/env/testcontainersEnvironment.js',
6+
}

0 commit comments

Comments
 (0)