Skip to content

Commit b68ad2b

Browse files
committed
refactor: config files
1 parent ccd1165 commit b68ad2b

11 files changed

+41
-27
lines changed

.config/.commitlintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"],
3+
}

.config/.lintstagedrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"*.{js,ts,tsx}": ["yarn lint:fix"],
3+
"*.{json,md,yaml}": ["yarn lint:format"],
4+
}

.config/.lintstagedrc.js

-4
This file was deleted.

.config/commitlint.config.js

-3
This file was deleted.

.config/husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx commitlint --config .config/commitlint.config.js --edit $1
4+
npx commitlint --config .config/.commitlintrc --edit $1

.config/husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx lint-staged --config .config/.lintstagedrc.js
4+
npx lint-staged --config .config/.lintstagedrc

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.log
2+
*.tgz
3+
.env

.prettierrc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"arrowParens": "always",
3+
"endOfLine": "lf",
4+
"printWidth": 80,
5+
"semi": false,
6+
"singleQuote": true,
7+
"tabWidth": 4,
8+
"trailingComma": "all",
9+
"overrides": [
10+
{
11+
"files": "*.yaml",
12+
"options": {
13+
"tabWidth": 2,
14+
},
15+
},
16+
],
17+
}

.prettierrc.js

-17
This file was deleted.

.tool-versions

-1
This file was deleted.

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Introduction
2+
3+
`react-supabase` is a React Hooks library for [Supabase](https://supabase.io).
4+
5+
<br/>
6+
17
## Usage
28

39
Inside your React project directory, run the following:
@@ -11,3 +17,9 @@ Or with npm:
1117
```
1218
npm install react-supabase
1319
```
20+
21+
<br/>
22+
23+
## License
24+
25+
The MIT License.

0 commit comments

Comments
 (0)