-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up configs and flows from Expensify repository template #123
Conversation
bf2d6dc
to
303aee8
Compare
6b9bb47
to
9eaafec
Compare
58c72fc
to
1d0bcd8
Compare
20d3ad7
to
2e7c5d2
Compare
.eslintignore
Outdated
@@ -1,2 +1,8 @@ | |||
**/node_modules/* | |||
parser/react-native-live-markdown-parser.js | |||
**/react-native-live-markdown-parser.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not parser/react-native-live-markdown-parser.js
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out react-native-live-markdown-parser.js
can be found as well inside android subfolders.
But as we wawnt to setup eslints inside each folder, I'll exclude all files from parser as well (alongside every file js file from android and ios folder)
…om eslint ignore to enable ide highlights
@@ -31,6 +31,10 @@ | |||
"test": "jest", | |||
"typecheck": "tsc --noEmit", | |||
"lint": "eslint . --ext .js,.ts,.tsx", | |||
"lint:root": "eslint . --ext .js,.ts,.tsx --ignore-pattern '/example/**/*' --ignore-pattern '/WebExample/**/*' --ignore-pattern '/parser/**/*'", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move --ignore-pattern
arguments from here to ignorePatterns
option in .eslintrc.json
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we cannot as we just want to ignore this directories while executing lint:root
. If we would add it to ignorePatterns no errors would be visible in IDE on there directories
.eslintrc.js
Outdated
'@typescript-eslint/no-var-requires': 'warn', | ||
'eqeqeq': 'error', | ||
'no-unreachable': 'error', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Tomek Zawadzki <[email protected]>
No description provided.