-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updates packages in all * Update example app packages * Update version to 51.0.0 * Update yarn.lock * Update more packages + use metro for example app + other fixes + updated eslint * js -> jsx * Fix tests * Update workflow node version * Fix web date picker * Proper ts lint and address linter errors * Fix build issue * Fix remaining linter errors * Update ci.yml with 51
- Loading branch information
1 parent
8d34ab2
commit f579db0
Showing
76 changed files
with
5,803 additions
and
8,515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
quoteProps: "consistent", | ||
semi: true, | ||
singleQuote: false, | ||
tabWidth: 2, | ||
trailingComma: "es5", | ||
useTabs: false, | ||
bracketSpacing: true, | ||
endOfLine: "auto", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
const { fixupPluginRules } = require("@eslint/compat"); | ||
const esLintReactNative = require("eslint-plugin-react-native"); | ||
const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended"); | ||
const hooksPlugin = require("eslint-plugin-react-hooks"); | ||
const tsEslint = require("typescript-eslint"); | ||
|
||
module.exports = [ | ||
...tsEslint.configs.recommended, | ||
eslintPluginPrettierRecommended, | ||
|
||
// Workaround for `eslint-plugin-react-native` not supporting eslint flat configs | ||
// https://github.com/facebook/react-native/issues/42996#issuecomment-2275994981 | ||
{ | ||
name: "eslint-plugin-react-native", | ||
plugins: { | ||
"react-native": fixupPluginRules({ | ||
rules: esLintReactNative.rules, | ||
}), | ||
}, | ||
rules: { | ||
...esLintReactNative.configs.all.rules, | ||
"react-native/sort-styles": "off", | ||
"react-native/no-inline-styles": "warn", | ||
}, | ||
}, | ||
|
||
// Workaround for `eslint-plugin-react-hooks` not supporting eslint flat configs | ||
// https://github.com/facebook/react/issues/28313#issuecomment-2379308650 | ||
{ | ||
plugins: { | ||
"react-hooks": fixupPluginRules(hooksPlugin), | ||
}, | ||
rules: hooksPlugin.configs.recommended.rules, | ||
}, | ||
{ | ||
ignores: [ | ||
"scripts", | ||
"example/web-build", | ||
"node_modules/", | ||
"**/lib/**", | ||
"**/__generated__/**", | ||
"jest-setup.js", | ||
], | ||
}, | ||
{ | ||
rules: { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-require-imports": "off", | ||
"@typescript-eslint/no-unused-expressions": "off", | ||
"@typescript-eslint/no-unnecessary-type-constraint": "off", | ||
"react-native/no-inline-styles": "off", | ||
"react-native/no-color-literals": "off", | ||
|
||
// ignore unused vars that start with underscore | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
args: "all", | ||
argsIgnorePattern: "^_", | ||
caughtErrors: "all", | ||
caughtErrorsIgnorePattern: "^_", | ||
destructuredArrayIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.