Permalink
Browse files

Incorporating prettier as an eslint-plugin, setup, prettifying files.…

… Flow setup
  • Loading branch information...
rgommezz committed May 26, 2017
1 parent 508bd01 commit 9ac7fcd2cf2189890651a689f1ee3ac7593d6f5d
View
@@ -1,2 +1,3 @@
node_modules/
coverage/
flow-typed/
View
@@ -1,8 +1,18 @@
{
"extends": [
"airbnb"
"airbnb",
"plugin:flowtype/recommended",
"plugin:react/recommended",
"prettier",
"prettier/flowtype",
"prettier/react"
],
"parser": "babel-eslint",
"plugins": [
"flowtype",
"react",
"prettier"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
@@ -17,27 +27,16 @@
"jest": true
},
"rules": {
"strict": 0,
"max-len": 0,
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0,
"newline-per-chained-call": ["error", {"ignoreChainWithDepth": 5}],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/forbid-prop-types": 0,
"react/no-unused-prop-types": 0,
"react/sort-comp": 0,
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"import/extensions": 0,
"no-use-before-define": 0,
"import/no-extraneous-dependencies": 0,
"global-require": 0,
"react/prop-types": 0,
"react/require-default-props": 0
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/require-default-props": 0,
"prettier/prettier": [2, {
"singleQuote": true
}]
},
"globals": {
"jest": true
View
@@ -0,0 +1,31 @@
[ignore]
; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
.*/react-native/.*
[include]
[options]
emoji=true
module.system=haste
munge_underscores=true
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-7]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-7]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
unsafe.enable_getters_and_setters=true
[version]
^0.47.0
View
@@ -11,3 +11,6 @@ coverage/
#IntelliJ
.idea
#Flow
flow-typed
Oops, something went wrong.

0 comments on commit 9ac7fcd

Please sign in to comment.