Last active
July 4, 2021 16:38
-
-
Save rhythm-sharma/130e665d09a61dba0bab10a8e8f7a011 to your computer and use it in GitHub Desktop.
Configure eslint
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
| { | |
| "parserOptions": { | |
| "ecmaVersion": 2020, | |
| "sourceType": "module", | |
| "ecmaFeatures": { | |
| "jsx": true, | |
| "modules": true | |
| } | |
| }, | |
| "env": { | |
| "browser": true, | |
| "node": true | |
| }, | |
| "plugins": ["react", "prettier"], | |
| "extends": [ | |
| "eslint:recommended", | |
| "plugin:react/recommended", | |
| "prettier", | |
| ], | |
| "rules": {}, | |
| "settings": { | |
| "react": { | |
| "version": "detect" | |
| } | |
| }, | |
| "overrides": [ | |
| { | |
| "files": "**/*.+(ts|tsx)", | |
| "parser": "@typescript-eslint/parser", | |
| "parserOptions": { | |
| "compilerOptions": { | |
| "target": "esnext", | |
| "module": "esnext", | |
| "moduleResolution": "node", | |
| "allowJs": true, | |
| "noEmit": false, | |
| "strict": true, | |
| "isolatedModules": true, | |
| "esModuleInterop": true, | |
| "noImplicitAny": false, | |
| "jsx": "react" | |
| }, | |
| "include": ["src/**/*.tsx"] | |
| }, | |
| "plugins": ["@typescript-eslint/eslint-plugin"], | |
| "extends": [ | |
| "plugin:@typescript-eslint/eslint-recommended", | |
| "plugin:@typescript-eslint/recommended" | |
| ] | |
| } | |
| ], | |
| "ignorePatterns": ["node_modules/"] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment