This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to 0.62 and bump package to 0.5.0
- Upgrade stale packages - Upgrade example app to work with 0.62, it also now targets release RN instead of master making it easier for people to test - Update README to make using the package easier
- Loading branch information
1 parent
4f895ce
commit 4863912
Showing
44 changed files
with
4,876 additions
and
6,522 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,99 @@ | ||
module.exports = { | ||
// Airbnb is the base, prettier is here so that eslint doesn't conflict with prettier | ||
extends: ['airbnb', 'prettier', 'prettier/react'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react', 'react-native', 'import', '@typescript-eslint'], | ||
rules: { | ||
'no-console': 'off', | ||
// Lines will be broken before binary operators | ||
'operator-linebreak': ['error', 'before'], | ||
// Allow imports from dev and peer dependencies | ||
'import/no-extraneous-dependencies': [ | ||
'error', | ||
{ devDependencies: true, peerDependencies: true }, | ||
], | ||
'react/jsx-filename-extension': ['error', { extensions: ['.tsx'] }], | ||
// This rule doesn't play nice with Prettier | ||
'react/jsx-one-expression-per-line': 'off', | ||
// This rule doesn't play nice with Prettier | ||
'react/jsx-wrap-multilines': 'off', | ||
// Remove this rule because we only destructure props, but never state | ||
'react/destructuring-assignment': 'off', | ||
'react/prop-types': 'off', | ||
'@typescript-eslint/adjacent-overload-signatures': 'error', | ||
'@typescript-eslint/array-type': ['error', {default: 'array'}], | ||
'@typescript-eslint/consistent-type-assertions': 'error', | ||
'@typescript-eslint/generic-type-naming': ['error', '^[a-zA-Z]+$'], | ||
'@typescript-eslint/no-array-constructor': 'error', | ||
'@typescript-eslint/no-empty-interface': 'error', | ||
'@typescript-eslint/no-explicit-any': 'error', | ||
'@typescript-eslint/no-extraneous-class': 'error', | ||
'@typescript-eslint/no-inferrable-types': 'error', | ||
'@typescript-eslint/no-misused-new': 'error', | ||
'@typescript-eslint/no-namespace': 'error', | ||
'@typescript-eslint/no-non-null-assertion': 'error', | ||
'@typescript-eslint/no-parameter-properties': 'error', | ||
'@typescript-eslint/no-this-alias': 'error', | ||
'@typescript-eslint/no-type-alias': [ | ||
'error', | ||
{ | ||
allowAliases: 'always', | ||
allowCallbacks: 'always', | ||
allowMappedTypes: 'always', | ||
}, | ||
], | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ ignoreRestSiblings: true }, | ||
], | ||
'@typescript-eslint/prefer-namespace-keyword': 'error', | ||
'@typescript-eslint/type-annotation-spacing': 'error', | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
extensions: [ | ||
'.js', | ||
'.android.js', | ||
'.ios.js', | ||
'.jsx', | ||
'.android.jsx', | ||
'.ios.jsx', | ||
'.tsx', | ||
'.ts', | ||
'.android.tsx', | ||
'.android.ts', | ||
'.ios.tsx', | ||
'.ios.ts', | ||
], | ||
}, | ||
root: true, | ||
// Airbnb is the base, prettier is here so that eslint doesn't conflict with prettier | ||
extends: ['airbnb', 'prettier', 'prettier/react'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react', 'react-native', 'import', '@typescript-eslint'], | ||
rules: { | ||
'no-console': 'off', | ||
'no-else-return': 'off', | ||
// Lines will be broken before binary operators | ||
'operator-linebreak': ['error', 'before'], | ||
// Allow imports from dev and peer dependencies | ||
'import/no-extraneous-dependencies': [ | ||
'error', | ||
{ devDependencies: true, peerDependencies: true }, | ||
], | ||
'react/jsx-filename-extension': ['error', { extensions: ['.tsx', '.jsx'] }], | ||
// This rule doesn't play nice with Prettier | ||
'react/jsx-one-expression-per-line': 'off', | ||
// This rule doesn't play nice with Prettier | ||
'react/jsx-wrap-multilines': 'off', | ||
// Remove this rule because we only destructure props, but never state | ||
'react/destructuring-assignment': 'off', | ||
'react/prop-types': 'off', | ||
'react/jsx-props-no-spreading': 'off', | ||
'react/static-property-placement': 'off', | ||
'react/state-in-constructor': 'off', | ||
'@typescript-eslint/adjacent-overload-signatures': 'error', | ||
'@typescript-eslint/array-type': [ | ||
'error', | ||
{ | ||
default: 'array', | ||
}, | ||
], | ||
'@typescript-eslint/generic-type-naming': ['error', '^[a-zA-Z]+$'], | ||
'@typescript-eslint/no-array-constructor': 'error', | ||
'@typescript-eslint/no-empty-interface': 'error', | ||
'@typescript-eslint/no-explicit-any': 'error', | ||
'@typescript-eslint/no-extraneous-class': 'error', | ||
'@typescript-eslint/no-inferrable-types': 'error', | ||
'@typescript-eslint/no-misused-new': 'error', | ||
'@typescript-eslint/no-namespace': 'error', | ||
'@typescript-eslint/no-non-null-assertion': 'error', | ||
'@typescript-eslint/consistent-type-assertions': [ | ||
'error', | ||
{ | ||
assertionStyle: 'as', | ||
}, | ||
], | ||
'@typescript-eslint/no-parameter-properties': 'error', | ||
'@typescript-eslint/no-this-alias': 'error', | ||
'@typescript-eslint/triple-slash-reference': [ | ||
'error', | ||
{ path: 'never', types: 'never', lib: 'never' }, | ||
], | ||
'@typescript-eslint/no-type-alias': [ | ||
'error', | ||
{ | ||
allowAliases: 'always', | ||
allowCallbacks: 'always', | ||
allowMappedTypes: 'always', | ||
}, | ||
], | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ ignoreRestSiblings: true }, | ||
], | ||
'@typescript-eslint/consistent-type-definitions': [ | ||
'error', | ||
'interface', | ||
], | ||
'@typescript-eslint/prefer-namespace-keyword': 'error', | ||
'@typescript-eslint/type-annotation-spacing': 'error', | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
extensions: [ | ||
'.js', | ||
'.android.js', | ||
'.ios.js', | ||
'.jsx', | ||
'.android.jsx', | ||
'.ios.jsx', | ||
'.tsx', | ||
'.ts', | ||
'.android.tsx', | ||
'.android.ts', | ||
'.ios.tsx', | ||
'.ios.ts', | ||
], | ||
}, | ||
}, | ||
}; | ||
}, | ||
globals: { | ||
fetch: false, | ||
HermesInternal: false, | ||
} | ||
}; |
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 +1,4 @@ | ||
# specific for windows script files | ||
*.bat text eol=crlf | ||
|
||
*.pbxproj -text |
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 |
---|---|---|
|
@@ -69,3 +69,6 @@ scripts/examples_postinstall.js | |
tsconfig.json | ||
yarn.lock | ||
CODE_OF_CONDUCT.md | ||
lib/ | ||
android/README.md | ||
src/ |
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.