Skip to content

Commit 752a39e

Browse files
shudingnevilm-lt
authored andcommitted
chore: Clean up configurations (vercel#1792)
* clean up config files * match minor and patch releases for dev deps
1 parent f7ac9fb commit 752a39e

File tree

7 files changed

+19
-24
lines changed

7 files changed

+19
-24
lines changed

.eslintignore

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

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@
4747
"react-hooks/exhaustive-deps": 1,
4848
"react/prop-types": 0,
4949
"testing-library/no-unnecessary-act": 0
50-
}
50+
},
51+
"ignorePatterns": ["dist/", "node_modules", "scripts", "examples"]
5152
}

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@ dist
1111
examples/**/yarn.lock
1212
package-lock.json
1313
tsconfig.tsbuildinfo
14-
**/*.yalc
15-
yalc.lock
1614
coverage

.npmignore

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

.prettierrc

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

.yarnrc

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

package.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
"name": "swr",
33
"version": "1.2.0-beta.1",
44
"description": "React Hooks library for remote data fetching",
5+
"keywords": [
6+
"swr",
7+
"react",
8+
"hooks",
9+
"request",
10+
"cache",
11+
"fetch"
12+
],
513
"main": "./dist/index.js",
614
"module": "./dist/index.esm.js",
715
"exports": {
@@ -33,7 +41,7 @@
3341
"infinite/package.json",
3442
"immutable/package.json"
3543
],
36-
"repository": "vercel/swr",
44+
"repository": "github:vercel/swr",
3745
"homepage": "https://swr.vercel.app",
3846
"license": "MIT",
3947
"scripts": {
@@ -102,5 +110,13 @@
102110
},
103111
"peerDependencies": {
104112
"react": "^16.11.0 || ^17.0.0 || ^18.0.0"
113+
},
114+
"prettier": {
115+
"semi": false,
116+
"singleQuote": true,
117+
"useTabs": false,
118+
"trailingComma": "none",
119+
"tabWidth": 2,
120+
"arrowParens": "avoid"
105121
}
106122
}

0 commit comments

Comments
 (0)