forked from tt-driver-apps/react-native-slider
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added eslint config and fixes warnings
- Loading branch information
1 parent
0967611
commit c1e8795
Showing
3 changed files
with
92 additions
and
25 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,70 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"env": { | ||
"es6": true | ||
}, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"plugins": [ | ||
"react" | ||
], | ||
"globals": { | ||
"__DEV__": true, | ||
"__dirname": false, | ||
"__fbBatchedBridgeConfig": false, | ||
"cancelAnimationFrame": false, | ||
"clearImmediate": true, | ||
"clearInterval": false, | ||
"clearTimeout": false, | ||
"console": false, | ||
"document": false, | ||
"escape": false, | ||
"exports": false, | ||
"fetch": false, | ||
"global": false, | ||
"jest": false, | ||
"Map": true, | ||
"module": false, | ||
"navigator": false, | ||
"process": false, | ||
"Promise": true, | ||
"requestAnimationFrame": true, | ||
"require": false, | ||
"Set": true, | ||
"setImmediate": true, | ||
"setInterval": false, | ||
"setTimeout": false, | ||
"window": false, | ||
"XMLHttpRequest": false, | ||
"pit": false | ||
}, | ||
"rules": { | ||
"indent": [ | ||
2, | ||
2 | ||
], | ||
"quotes": [ | ||
2, | ||
"single", | ||
"avoid-escape" | ||
], | ||
"linebreak-style": [ | ||
2, | ||
"unix" | ||
], | ||
"semi": [ | ||
2, | ||
"always" | ||
], | ||
"strict": [ | ||
2, | ||
"global" | ||
], | ||
"global-strict": 0, | ||
"no-use-before-define": 0, | ||
"comma-dangle": 0, | ||
"no-underscore-dangle": 0, | ||
"eol-last": 1 | ||
} | ||
} |
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