Skip to content

Instantly share code, notes, and snippets.

@dbtek
Created November 25, 2021 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbtek/936d918af81809186e39647beeb95a31 to your computer and use it in GitHub Desktop.
Save dbtek/936d918af81809186e39647beeb95a31 to your computer and use it in GitHub Desktop.
React Typescript Eslint & Prettier
module.exports = {
ignorePatterns: ['.eslintrc.js'],
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/jsx-runtime',
'plugin:prettier/recommended',
],
settings: {
react: {
version: 'detect'
}
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
},
plugins: ['react', '@typescript-eslint'],
rules: {
'react/react-in-jsx-scope': 0,
'react/jsx-uses-react': 0
},
};
{
"singleQuote": true,
"trailingComma": "all",
"semi": true,
"bracketSpacing": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment