Created
January 17, 2021 16:25
-
-
Save vinodchauhan7/ec7f0f7277671af3b3248b16187ac851 to your computer and use it in GitHub Desktop.
eslint configuration
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": "@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