mirror of
https://github.com/promptfoo/promptfoo.git
synced 2023-08-15 01:10:51 +03:00
Expand prettier and add prettierignore
This commit is contained in:
@@ -1 +1 @@
|
||||
process.env.OPENAI_API_KEY = 'foo'
|
||||
process.env.OPENAI_API_KEY = 'foo';
|
||||
|
||||
1
.prettierignore
Normal file
1
.prettierignore
Normal file
@@ -0,0 +1 @@
|
||||
dist
|
||||
@@ -1,3 +1,3 @@
|
||||
trailingComma: "all"
|
||||
trailingComma: 'all'
|
||||
singleQuote: true
|
||||
printWidth: 100
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user