Skip to content

Commit e1fbc13

Browse files
Add pretter config and CI
1 parent 617ebd1 commit e1fbc13

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.pre-commit-config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ repos:
3030
name: ruff lint
3131
- id: ruff-format
3232
files: ^tin/.*
33+
- repo: https://github.com/pre-commit/mirrors-prettier
34+
rev: v2.5.1
35+
hooks:
36+
- id: prettier
37+
types_or: [ javascript, css ]

.prettierrc.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/** @type {import("prettier").Config} */
2+
const config = {
3+
trailingComma: 'es5',
4+
tabWidth: 2,
5+
semi: true,
6+
singleQuote: true,
7+
};
8+
9+
module.exports = config;

0 commit comments

Comments
 (0)