-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: format code with StandardJS (#328)
This commit fixes the style issues introduced in b128031 according to the output from StandardJS. Details: None Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b128031
commit 1216942
Showing
2 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module.exports = { | ||
presets: [ | ||
'@babel/preset-env', | ||
'@babel/preset-typescript', | ||
'@babel/preset-typescript' | ||
], | ||
sourceMaps: 'inline', | ||
}; | ||
sourceMaps: 'inline' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
/** @type {import('jest').Config} */ | ||
const config = { | ||
collectCoverage: true, | ||
coverageDirectory: "coverage", | ||
coverageProvider: "v8", | ||
testEnvironment: "node", | ||
coverageDirectory: 'coverage', | ||
coverageProvider: 'v8', | ||
testEnvironment: 'node', | ||
transform: { | ||
'^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { | ||
'^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { | ||
sourceMaps: false, | ||
plugins: ['@babel/plugin-transform-modules-commonjs'] | ||
}] | ||
}, | ||
moduleFileExtensions: ["js", "jsx", "ts", "tsx", "json", "node"], | ||
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'node'], | ||
testMatch: [ | ||
"**/__tests__/**/*.[jt]s?(x)", | ||
"**/?(*.)+(spec|test).[tj]s?(x)" | ||
'**/__tests__/**/*.[jt]s?(x)', | ||
'**/?(*.)+(spec|test).[tj]s?(x)' | ||
], | ||
collectCoverageFrom: [ | ||
"src/**/*.{js,jsx,ts,tsx}", | ||
"!src/**/*.d.ts", | ||
"!src/.vuepress/**/*", | ||
"!**/node_modules/**" | ||
'src/**/*.{js,jsx,ts,tsx}', | ||
'!src/**/*.d.ts', | ||
'!src/.vuepress/**/*', | ||
'!**/node_modules/**' | ||
], | ||
moduleNameMapper: { | ||
"^@/(.*)$": "<rootDir>/src/$1" | ||
'^@/(.*)$': '<rootDir>/src/$1' | ||
} | ||
}; | ||
} | ||
|
||
export default config; | ||
export default config |