Skip to content

Commit cdc93f4

Browse files
author
Alex Plischke
authored
style: format all code with prettier (#42)
* style: format all code with prettier * build: don't package src dir * build: add husky
1 parent ecf2e5f commit cdc93f4

17 files changed

+761
-211
lines changed

.editorconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/lib

.eslintrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"es2022": true,
5+
"node": true,
6+
"jest/globals": true
7+
},
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/recommended",
11+
"plugin:prettier/recommended"
12+
],
13+
"plugins": [
14+
"jest",
15+
"@typescript-eslint"
16+
],
17+
"parser": "@typescript-eslint/parser",
18+
"rules": {
19+
"@typescript-eslint/no-explicit-any": "warn",
20+
"@typescript-eslint/no-var-requires": "warn"
21+
}
22+
}

.eslintrc.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run lint

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/lib

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

0 commit comments

Comments
 (0)