Skip to content

Instantly share code, notes, and snippets.

@joshnavdev
Last active November 3, 2022 18:51
Show Gist options
  • Save joshnavdev/3d1365a918dd6c8f733b041e61725aa7 to your computer and use it in GitHub Desktop.
Save joshnavdev/3d1365a918dd6c8f733b041e61725aa7 to your computer and use it in GitHub Desktop.
ESLint config React, TypeScript, Airbnb, Prettier and Jest
{
"extends": [
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended",
"plugin:import/recommended"
],
"plugins": ["react", "@typescript-eslint", "jest"],
"env": {
"browser": true,
"es6": true,
"jest": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"no-console": "warn"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment