Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created September 5, 2021 17:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amandeepmittal/dc35c5f76fff8240fc591fd51d76b9fa to your computer and use it in GitHub Desktop.
Save amandeepmittal/dc35c5f76fff8240fc591fd51d76b9fa to your computer and use it in GitHub Desktop.
rules: {
'prettier/prettier': ['error'],
'no-use-before-define': 0,
'react/forbid-prop-types': 0,
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/jsx-fragments': 0,
'react/jsx-props-no-spreading': 0,
'react/style-prop-object': 0,
'react/require-default-props': 0,
'react/prop-types': 0,
'react-native/no-inline-styles': 1,
'react-native/no-single-element-style-arrays': 0,
'react-native/no-unused-styles': 2,
'react-hooks/exhaustive-deps': 0,
'prefer-destructuring': 0,
'no-underscore-dangle': 0,
'arrow-body-style': 0,
'no-unused-vars': 'warn',
'jsx-quotes': ['error', 'prefer-single'],
'comma-dangle': 0
// "react-native/sort-styles": [
// "warn",
// "asc",
// { "ignoreClassNames": true, "ignoreStyleProperties": false }
// ]
}
node_modules/
.husky
.vscode
.expo-shared
assets/
metro.config.js
babel.config.js
index.js
{
"name": "customtravelui",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint .",
"prepare": "husky install",
"husky:initialize": "npx husky-init",
"pre-commit": "lint-staged",
"pod": "npx pod-install ios",
"generate": "npx react-native generate-bootsplash ./src/assets/original_icon.png --background-color=FF5722 --logo-width=100 --assets-path=./src/assets --flavor=main"
},
"lint-staged": {
"*.js": [
"yarn run lint"
]
},
"dependencies": {
"react": "17.0.2",
"react-native": "0.65.1",
"react-native-bootsplash": "^3.2.4"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^2.0.0",
"babel-jest": "^26.6.3",
"eslint": "7.14.0",
"husky": "^7.0.0",
"jest": "^26.6.3",
"lint-staged": "^11.1.2",
"metro-react-native-babel-preset": "^0.66.0",
"react-native-codegen": "^0.0.7",
"react-test-renderer": "17.0.2"
},
"jest": {
"preset": "react-native"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment