Last active
September 6, 2020 13:05
-
-
Save ArturMiguel/2b7910bc7ca94a21c47ca62de795a7f7 to your computer and use it in GitHub Desktop.
My ESLint React config
This file contains hidden or 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
Show hidden characters
| { | |
| "env": { | |
| "browser": true, | |
| "es2020": true | |
| }, | |
| "extends": [ | |
| "plugin:react/recommended", | |
| "airbnb", | |
| "plugin:@typescript-eslint/recommended" | |
| ], | |
| "parser": "@typescript-eslint/parser", | |
| "parserOptions": { | |
| "ecmaFeatures": { | |
| "jsx": true | |
| }, | |
| "ecmaVersion": 11, | |
| "sourceType": "module" | |
| }, | |
| "plugins": [ | |
| "react", | |
| "@typescript-eslint" | |
| ], | |
| "rules": { | |
| "react/jsx-filename-extension": [ | |
| "error", { | |
| "extensions": [".ts", ".tsx"] | |
| } | |
| ], | |
| "quotes": ["error", "single"], | |
| "indent": ["error", 4, { "SwitchCase": 1 }], | |
| "react/jsx-indent": ["error", 4], | |
| "jsx-quotes": ["error", "prefer-single"], | |
| "import/prefer-default-export": "off", | |
| "import/extensions": "off", | |
| "linebreak-style": "off", | |
| "space-before-function-paren": "off", | |
| "react/prop-types": "off", | |
| "react/jsx-props-no-spreading": "off", | |
| "comma-dangle": "off", | |
| "import/no-unresolved": "off", | |
| "object-curly-newline": "off", | |
| "react/jsx-indent-props": [2, "first"], | |
| "max-len": "off", | |
| "no-case-declarations": "off" | |
| }, | |
| "settings": { | |
| "import/resolver": { | |
| "node": { | |
| "extensions": [ | |
| ".ts", | |
| ".tsx" | |
| ] | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment