Skip to content

Instantly share code, notes, and snippets.

@vinodchauhan7
Created January 17, 2021 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinodchauhan7/ec7f0f7277671af3b3248b16187ac851 to your computer and use it in GitHub Desktop.
Save vinodchauhan7/ec7f0f7277671af3b3248b16187ac851 to your computer and use it in GitHub Desktop.
eslint configuration
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"favoritemedium-typescript/config/react"
],
"env": {
"node": true,
"es6": true
},
"rules": {
"react/jsx-one-expression-per-line":"off",
"@typescript-eslint/explicit-function-return-type":"off",
"no-console": "off",
"@typescript-eslint/no-magic-numbers": "off",
"react/prop-types": 0,
"react/jsx-props-no-spreading": "off",
"brace-style": "error",
"@typescript-eslint/camelcase": "off",
"react/jsx-indent": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unused-vars-experimental": "error",
"no-unused-vars": "off",
"linebreak-style":[2,"windows"],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "function",
"format": ["PascalCase", "camelCase"]
},
{ "selector": "interface", "format": ["PascalCase"], "prefix": ["I"] }
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment