Skip to content

Commit

Permalink
Move Prettier configuration to ES module
Browse files Browse the repository at this point in the history
  • Loading branch information
tlinhart committed Jun 29, 2024
1 parent 9bb7f4e commit e865f4c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Check formatting with Prettier
run: npx prettier --check --ignore-unknown "**/*"
- name: Lint with ESLint
run: npx eslint "**/*.ts" eslint.config.mjs
run: npx eslint "**/*.ts" {eslint,prettier}.config.mjs
- name: Test with Mocha
run: npx mocha -r ts-node/register "**/*.spec.ts"
working-directory: nodejs
Expand Down
10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

5 changes: 5 additions & 0 deletions prettier.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import("prettier").Config} */
export default {
trailingComma: "es5",
bracketSpacing: false,
};

0 comments on commit e865f4c

Please sign in to comment.