generated from WrathChaos/react-native-typescript-library-starter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
133da13
commit b134365
Showing
10 changed files
with
6,590 additions
and
2,075 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
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,32 +1,122 @@ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"@react-native-community", | ||
"airbnb-typescript", | ||
"prettier", | ||
"prettier/@typescript-eslint", | ||
"prettier/react" | ||
], | ||
parser: "babel-eslint", | ||
plugins: ["react", "react-native"], | ||
ignorePatterns: [ | ||
"**/*/*.js", | ||
"*.js", | ||
"*.svg", | ||
"*.json", | ||
"*.png", | ||
"package.json", | ||
"package-lock.json", | ||
], | ||
parser: "@typescript-eslint/parser", | ||
plugins: [ | ||
"import", | ||
"react", | ||
"react-native", | ||
"prettier", | ||
"react-hooks", | ||
"@typescript-eslint", | ||
"promise", | ||
"jest", | ||
"unused-imports", | ||
], | ||
env: { | ||
jest: true, | ||
"react-native/react-native": true | ||
browser: true, | ||
es2021: true, | ||
"jest/globals": true, | ||
"react-native/react-native": true, | ||
}, | ||
settings: { | ||
"import/resolver": { | ||
node: { | ||
extensions: [ | ||
".js", | ||
".jsx", | ||
".ts", | ||
".tsx", | ||
".d.ts", | ||
".android.js", | ||
".android.jsx", | ||
".android.ts", | ||
".android.tsx", | ||
".ios.js", | ||
".ios.jsx", | ||
".ios.ts", | ||
".ios.tsx", | ||
".web.js", | ||
".web.jsx", | ||
".web.ts", | ||
".web.tsx", | ||
], | ||
}, | ||
}, | ||
}, | ||
rules: { | ||
// allow js file extension | ||
"react/jsx-filename-extension": [ | ||
quotes: [ | ||
"error", | ||
"double", | ||
{ | ||
extensions: [".js", ".jsx", ".tsx", ".ts"] | ||
} | ||
avoidEscape: true, | ||
}, | ||
], | ||
// for post defining style object in react-native | ||
"no-use-before-define": ["error", { variables: false }], | ||
// react-native rules | ||
"import/extensions": [ | ||
"error", | ||
"never", | ||
{ | ||
svg: "always", | ||
model: "always", | ||
style: "always", | ||
png: "always", | ||
jpg: "always", | ||
json: "always", | ||
constant: "always", | ||
}, | ||
], | ||
"react-hooks/exhaustive-deps": 0, | ||
"max-len": ["error", 120], | ||
"@typescript-eslint/ban-ts-comment": 2, | ||
"@typescript-eslint/no-empty-function": 0, | ||
"@typescript-eslint/no-explicit-any": 1, | ||
"@typescript-eslint/explicit-module-boundary-types": 0, | ||
"react/jsx-filename-extension": ["error", { extensions: [".tsx"] }], | ||
"react-native/no-unused-styles": 2, | ||
"react-native/split-platform-components": 2, | ||
"react-native/no-inline-styles": 2, | ||
"react-native/no-raw-text": 2 | ||
} | ||
"react-native/no-inline-styles": 0, | ||
"react-native/no-color-literals": 0, | ||
"react-native/no-raw-text": 0, | ||
"import/no-extraneous-dependencies": 2, | ||
"import/no-named-as-default-member": 2, | ||
"import/order": 0, | ||
"import/no-duplicates": 2, | ||
"import/no-useless-path-segments": 2, | ||
"import/no-cycle": 2, | ||
"import/prefer-default-export": 0, | ||
"import/no-anonymous-default-export": 0, | ||
"import/named": 0, | ||
"@typescript-eslint/no-empty-interface": 0, | ||
"import/namespace": 0, | ||
"import/default": 0, | ||
"import/no-named-as-default": 0, | ||
"import/no-unused-modules": 0, | ||
"import/no-deprecated": 0, | ||
"@typescript-eslint/indent": 0, | ||
"react-hooks/rules-of-hooks": 2, | ||
camelcase: 2, | ||
"prefer-destructuring": 2, | ||
"no-nested-ternary": 2, | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
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 @@ | ||
node_modules/** |
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,8 @@ | ||
{ | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"singleQuote": false, | ||
"trailingComma": "all", | ||
"tabWidth": 2, | ||
"semi": true | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "react-native-gorgeous-header", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "Fully customizable & easy to use gorgeous header view for React Native", | ||
"main": "./build/dist/GorgeousHeader.js", | ||
"repository": "[email protected]:WrathChaos/react-native-gorgeous-header.git", | ||
|
@@ -31,19 +31,19 @@ | |
}, | ||
"peerDependencies": { | ||
"react": ">= 16.x.x", | ||
"react-native": ">= 0.55.x" | ||
"react-native": "^0.68.1" | ||
}, | ||
"devDependencies": { | ||
"@react-native-community/eslint-config": "^0.0.5", | ||
"@types/react": "^16.9.22", | ||
"@types/react-native": "^0.63.0", | ||
"react-native-typescript-transformer": "^1.2.13", | ||
"typescript": "^3.7.4", | ||
"@react-native-community/eslint-config": "^0.0.5", | ||
"eslint": "^6.8.0", | ||
"eslint-config-airbnb": "^18.2.0", | ||
"husky": "^4.2.5", | ||
"lint-staged": "^10.2.11", | ||
"prettier": "^2.0.5" | ||
"prettier": "^2.0.5", | ||
"react-native-typescript-transformer": "^1.2.13", | ||
"typescript": "^3.7.4" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
|
Oops, something went wrong.