Created
February 5, 2019 10:54
-
-
Save renganatha10/79c907909ac06bf8fa7c7c0598a1b050 to your computer and use it in GitHub Desktop.
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
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": false, | |
"es6": true, | |
"node": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended", | |
"plugin:flowtype/recommended", | |
"plugin:import/errors", | |
"plugin:import/warnings" | |
], | |
"parserOptions": { | |
"ecmaVersion": 9, | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"sourceType": "module" | |
}, | |
"settings": { | |
"react": { | |
"version": "16.6.3" | |
}, | |
}, | |
"plugins": ["flowtype", "react", "react-native", "import"], | |
"globals": { | |
"describe": true, | |
"it": true, | |
"expect": true, | |
"__DEV__": false, | |
"__dirname": false, | |
"alert": false, | |
"Blob": false, | |
"cancelAnimationFrame": false, | |
"cancelIdleCallback": false, | |
"clearImmediate": true, | |
"clearInterval": false, | |
"clearTimeout": false, | |
"console": false, | |
"escape": false, | |
"Event": false, | |
"EventTarget": false, | |
"exports": false, | |
"fetch": false, | |
"File": false, | |
"FileReader": false, | |
"FormData": false, | |
"global": false, | |
"Map": true, | |
"module": false, | |
"navigator": false, | |
"process": false, | |
"Promise": true, | |
"requestAnimationFrame": true, | |
"requestIdleCallback": true, | |
"require": false, | |
"Set": true, | |
"setImmediate": true, | |
"setInterval": false, | |
"setTimeout": false, | |
"WebSocket": false, | |
"window": false, | |
"XMLHttpRequest": false, | |
"jest": true | |
}, | |
"rules": { | |
"no-underscore-dangle": [ | |
"error", | |
{ | |
"allowAfterThis": true | |
} | |
], | |
"import/prefer-default-export": 0, | |
"react/jsx-filename-extension": 0, | |
"react/require-default-props": 0, | |
"no-return-assign": 0, | |
"camelcase": 0, | |
"react/prefer-stateless-function": 0, | |
"import/no-extraneous-dependencies": 0, | |
"no-mixed-operators": 0, | |
"curly": 0, | |
"arrow-parens": 0, | |
"max-len": [ | |
"error", | |
{ | |
"code": 100, | |
"ignoreUrls": true, | |
"ignoreStrings": true, | |
"ignoreTemplateLiterals": true, | |
"ignoreComments": true | |
} | |
], | |
"indent": [ | |
"error", | |
2, | |
{ | |
"SwitchCase": 1, | |
"ignoredNodes": ["ConditionalExpression"] | |
} | |
], | |
"linebreak-style": ["error", "unix"], | |
"quotes": [ | |
"error", | |
"single", | |
{ | |
"avoidEscape": true | |
} | |
], | |
"semi": 2, | |
"prefer-const": ["error"], | |
"no-var": ["error"], | |
"no-new-object": ["error"], | |
"object-shorthand": ["error"], | |
"quote-props": ["error", "as-needed"], | |
"no-array-constructor": ["error"], | |
"array-callback-return": ["error"], | |
"prefer-rest-params": ["error"], | |
"prefer-arrow-callback": ["error"], | |
"arrow-spacing": ["error"], | |
"arrow-body-style": ["error", "as-needed"], | |
"no-useless-constructor": ["error"], | |
"no-dupe-class-members": ["error"], | |
"no-duplicate-imports": ["error"], | |
"no-iterator": ["error"], | |
"no-restricted-syntax": ["error"], | |
"generator-star-spacing": ["error", "after"], | |
"dot-notation": ["error"], | |
"eqeqeq": ["error"], | |
"no-unneeded-ternary": ["error"], | |
"brace-style": ["error"], | |
"space-before-blocks": ["error"], | |
"keyword-spacing": ["error"], | |
"space-infix-ops": ["error"], | |
"eol-last": ["error"], | |
"padded-blocks": ["error", "never"], | |
"space-in-parens": ["error"], | |
"array-bracket-spacing": ["error"], | |
"no-multiple-empty-lines": ["error"], | |
"key-spacing": ["error"], | |
"object-curly-spacing": [ | |
"error", | |
"always", | |
{ | |
"objectsInObjects": true, | |
"arraysInObjects": true | |
} | |
], | |
"no-trailing-spaces": ["error"], | |
"no-multi-spaces": ["error"], | |
"no-irregular-whitespace": ["error"], | |
"new-cap": ["off"], | |
"comma-spacing": [ | |
2, | |
{ | |
"before": false, | |
"after": true | |
} | |
], | |
"react-native/no-unused-styles": 2, | |
"react-native/split-platform-components": 2, | |
"react-native/no-inline-styles": 2, | |
"react-native/no-color-literals": 2 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment