Skip to content

Instantly share code, notes, and snippets.

@renganatha10
Created June 7, 2019 09:11
Show Gist options
  • Save renganatha10/87ab8fd6c89087bea6d452128667c257 to your computer and use it in GitHub Desktop.
Save renganatha10/87ab8fd6c89087bea6d452128667c257 to your computer and use it in GitHub Desktop.
Eslint
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"prettier",
"prettier/react",
"prettier/@typescript-eslint"
],
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"settings": {
"react": {
"version": "16.8.6"
}
},
"plugins": ["react", "import", "prettier"],
"globals": {
"describe": true,
"it": true,
"expect": true,
"alert": 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": true,
"XMLHttpRequest": false,
"jest": true,
"document": true,
"URL": false
},
"rules": {
"indent": "off",
"no-var": 2,
"prefer-destructuring": 2,
"prefer-spread": 2,
"no-useless-constructor": 2,
"@typescript-eslint/indent": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-unused-vars": 2,
"@typescript-eslint/no-explicit-any": 0,
"react/forbid-prop-types": 0,
"react/require-default-props": 0,
"react/no-unused-prop-types": 0,
"react/prop-types": 0,
"react/prefer-stateless-function": 0,
"react/no-multi-comp": 2,
"react/destructuring-assignment": 2,
"react/jsx-no-bind": 2,
"react/no-unsafe": 2,
"import/order": 2,
"import/newline-after-import": 2,
"prettier/prettier": 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment