Skip to content

Commit 74baf17

Browse files
committed
small improvements
1 parent 183049d commit 74baf17

8 files changed

Lines changed: 321 additions & 346 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Check the scripts in the `package.json` for build, watch, lint and test.
1919

2020
* TypeScript + Babel
2121
* Jest
22-
* Eslint
22+
* ESLint
2323
* Rollup
2424

2525
# History

babel.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
presets: [
3-
["@babel/preset-env", { targets: { node: "current" } }],
4-
"@babel/preset-typescript"
3+
['@babel/preset-env', { targets: { node: 'current' } }],
4+
'@babel/preset-typescript'
55
]
6-
};
6+
}

eslint.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import tsParser from '@typescript-eslint/parser';
2-
import tseslint from '@typescript-eslint/eslint-plugin';
3-
import importPlugin from 'eslint-plugin-import';
1+
import tsParser from '@typescript-eslint/parser'
2+
import tseslint from '@typescript-eslint/eslint-plugin'
3+
import importPlugin from 'eslint-plugin-import'
44

55
export default [
66
{
@@ -25,4 +25,4 @@ export default [
2525
'@typescript-eslint/no-explicit-any': 'warn',
2626
},
2727
},
28-
];
28+
]

jest.config.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
/** @type {import("jest").Config} */
1+
/** @type {import('jest').Config} */
22
export default {
33
// verbose: true, // Uncomment for detailed test output
44
collectCoverage: true,
5-
coverageDirectory: "coverage",
6-
testEnvironment: "jsdom",
5+
coverageDirectory: 'coverage',
6+
testEnvironment: 'jsdom',
77
testEnvironmentOptions: {
8-
customExportConditions: ["node"],
8+
customExportConditions: ['node'],
99
},
10-
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
10+
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
1111
transform: {
12-
"^.+\\.[tj]sx?$": ["babel-jest", { configFile: "./babel.config.js" }],
12+
'^.+\\.[tj]sx?$': ['babel-jest', { configFile: './babel.config.js' }],
1313
},
14-
setupFilesAfterEnv: ["./test/helpers/setup.ts"],
15-
testMatch: ["**/__tests__/**/*.ts?(x)", "**/?(*.)+(spec|test).ts?(x)"],
16-
roots: ["<rootDir>/src", "<rootDir>/test"],
17-
};
14+
setupFilesAfterEnv: ['./test/helpers/setup.ts'],
15+
testMatch: ['**/__tests__/**/*.ts?(x)', '**/?(*.)+(spec|test).ts?(x)'],
16+
roots: ['<rootDir>/src', '<rootDir>/test'],
17+
}

0 commit comments

Comments
 (0)