Skip to content

Instantly share code, notes, and snippets.

@MubashirWaheed
Last active January 2, 2023 22:46
Show Gist options
  • Save MubashirWaheed/9a1d16b76ac54a06d732a46c7350885c to your computer and use it in GitHub Desktop.
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
"scripts":{
"lint": "eslint './src/**/*.{ts,tsx}'"
}
{
"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