Expand prettier and add prettierignore

This commit is contained in:
Ian Webster
2023-05-01 13:37:12 -07:00
parent 94e176c99d
commit d3873a3f83
5 changed files with 8 additions and 8 deletions

View File

@@ -1 +1 @@
process.env.OPENAI_API_KEY = 'foo'
process.env.OPENAI_API_KEY = 'foo';

1
.prettierignore Normal file
View File

@@ -0,0 +1 @@
dist

View File

@@ -1,3 +1,3 @@
trailingComma: "all"
trailingComma: 'all'
singleQuote: true
printWidth: 100

View File

@@ -3,19 +3,18 @@ import type { Config } from 'jest';
const config: Config = {
transform: {
'\\.[jt]sx?$': 'ts-jest'
'\\.[jt]sx?$': 'ts-jest',
},
globals: {
'ts-jest': {
useESM: true,
}
},
},
moduleNameMapper: {
'(.+)\\.js': '$1'
'(.+)\\.js': '$1',
},
extensionsToTreatAsEsm: ['.ts'],
setupFiles: ["<rootDir>/.jest/setEnvVars.js"],
setupFiles: ['<rootDir>/.jest/setEnvVars.js'],
};
export default config;

View File

@@ -24,7 +24,7 @@
"prepare": "tsc",
"test": "jest",
"test:watch": "jest --watch",
"format": "prettier -w src/ test/ examples/"
"format": "prettier -w ."
},
"devDependencies": {
"@types/async": "^3.2.20",