Skip to content

Instantly share code, notes, and snippets.

@itsMapleLeaf
Last active February 10, 2021 07:56
Show Gist options
  • Select an option

  • Save itsMapleLeaf/b0379fe628a3ea2d2243c820d0ef222d to your computer and use it in GitHub Desktop.

Select an option

Save itsMapleLeaf/b0379fe628a3ea2d2243c820d0ef222d to your computer and use it in GitHub Desktop.
eslint config
/*
packages:
@typescript-eslint/eslint-plugin
@typescript-eslint/parser
eslint
eslint-config-prettier
eslint-plugin-react
eslint-plugin-react-hooks
eslint-plugin-jsx-a11y
*/
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2021,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"no-undef": "off",
"no-unused-vars": "off",
"react/react-in-jsx-scope": ["off"]
},
"ignorePatterns": ["**/node_modules/**", "**/dist/**", "src/generated/**"],
"settings": {
"react": { "version": "detect" }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment