Skip to content

Commit

Permalink
Configure and run prettier on root
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrahms committed Feb 20, 2024
1 parent 3c9ee0d commit a084046
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ module.exports = {
// Allow console.log() statements
"no-console": "off",
},
ignorePatterns: [".eslintrc.js", "prettier.config.js", "jest.config.js", "public/**", "build/**", "node_modules/**"],
ignorePatterns: [
".eslintrc.js",
"prettier.config.js",
"jest.config.js",
"public/**",
"build/**",
"node_modules/**",
],
overrides: [],
parserOptions: {
ecmaVersion: "latest",
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tsconfig.json
2 changes: 1 addition & 1 deletion .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
plugins:
- '@trivago/prettier-plugin-sort-imports'
- "@trivago/prettier-plugin-sort-imports"
trailingComma: es5
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"webRoot": "${workspaceFolder}"
}
]
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# p0cli
# p0cli
6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
preset: "ts-jest",
testEnvironment: "node",
modulePathIgnorePatterns: ["/build"],
};
};
6 changes: 3 additions & 3 deletions p0
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ process.emit = function (name, data, ...args) {
if (
name === `warning` &&
typeof data === `object` &&
data.name === `ExperimentalWarning`
&& data.message.startsWith(`The Fetch API is an experimental feature.`)
data.name === `ExperimentalWarning` &&
data.message.startsWith(`The Fetch API is an experimental feature.`)
) {
return false;
}
return originalEmit.apply(process, arguments);
};

require(`${__dirname}/build/index.js`).main();
require(`${__dirname}/build/index.js`).main();

0 comments on commit a084046

Please sign in to comment.