Last active
January 2, 2023 22:46
-
-
Save MubashirWaheed/9a1d16b76ac54a06d732a46c7350885c to your computer and use it in GitHub Desktop.
This is a basic configuration for react typescript project extended on the already added eslint rule in the create react app project
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
"scripts":{ | |
"lint": "eslint './src/**/*.{ts,tsx}'" | |
} |
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
{ | |
"env": { | |
"browser": true, | |
"es6": true, | |
"jest": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended", | |
"plugin:@typescript-eslint/recommended" | |
], | |
"plugins": ["react", "@typescript-eslint"], | |
"settings": { | |
"react": { | |
"pragma": "React", | |
"version": "detect" | |
} | |
}, | |
"rules": { | |
"@typescript-eslint/explicit-function-return-type": 0, | |
"@typescript-eslint/explicit-module-boundary-types": 0, | |
"react/react-in-jsx-scope": 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment