Skip to content

Commit

Permalink
fix: make react 19 compatible (#49)
Browse files Browse the repository at this point in the history
* fix: make react 19 compatible

* refactor: fix lint errors and warnings
  • Loading branch information
rexxars authored Dec 18, 2024
1 parent 71bd250 commit a2e5eff
Show file tree
Hide file tree
Showing 22 changed files with 15,565 additions and 28,687 deletions.
7 changes: 1 addition & 6 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
.eslintrc.js
commitlint.config.js
lib
lint-staged.config.js
package.config.ts
*.js
/lib
22 changes: 22 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"root": true,
"env": {
"node": true,
"browser": true
},
"extends": [
"sanity/typescript",
"sanity/react",
"plugin:prettier/recommended",
"prettier"
],
"plugins": ["simple-import-sort"],
"rules": {
"react/prop-types": "off",
"react/require-default-props": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"no-undef": "off",
"no-use-before-define": "off"
}
}
40 changes: 0 additions & 40 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ yalc.lock
lib

.eslintcache

tsconfig.tsbuildinfo
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"arrowParens": "avoid"
}
7 changes: 0 additions & 7 deletions .prettierrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
export default {
extends: ['@commitlint/config-conventional'],
}
};
4 changes: 2 additions & 2 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
'**/*.{js,jsx}': ['eslint'],
'**/*.{ts,tsx}': ['eslint', () => 'tsc --noEmit'],
}
};
Loading

0 comments on commit a2e5eff

Please sign in to comment.