Skip to content

Commit a2e5eff

Browse files
authored
fix: make react 19 compatible (#49)
* fix: make react 19 compatible * refactor: fix lint errors and warnings
1 parent 71bd250 commit a2e5eff

22 files changed

+15565
-28687
lines changed

.eslintignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
.eslintrc.js
2-
commitlint.config.js
3-
lib
4-
lint-staged.config.js
5-
package.config.ts
6-
*.js
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+
"node": true,
5+
"browser": true
6+
},
7+
"extends": [
8+
"sanity/typescript",
9+
"sanity/react",
10+
"plugin:prettier/recommended",
11+
"prettier"
12+
],
13+
"plugins": ["simple-import-sort"],
14+
"rules": {
15+
"react/prop-types": "off",
16+
"react/require-default-props": "off",
17+
"simple-import-sort/imports": "error",
18+
"simple-import-sort/exports": "error",
19+
"no-undef": "off",
20+
"no-use-before-define": "off"
21+
}
22+
}

.eslintrc.js

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

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ yalc.lock
6060
lib
6161

6262
.eslintcache
63-
63+
tsconfig.tsbuildinfo

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "es5",
5+
"bracketSpacing": true,
6+
"arrowParens": "avoid"
7+
}

.prettierrc.js

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

commitlint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module.exports = {
1+
export default {
22
extends: ['@commitlint/config-conventional'],
3-
}
3+
};

lint-staged.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
'**/*.{js,jsx}': ['eslint'],
33
'**/*.{ts,tsx}': ['eslint', () => 'tsc --noEmit'],
4-
}
4+
};

0 commit comments

Comments
 (0)