Created
November 25, 2021 11:08
-
-
Save dbtek/936d918af81809186e39647beeb95a31 to your computer and use it in GitHub Desktop.
React Typescript Eslint & Prettier
This file contains hidden or 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
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 | |
}, | |
}; |
This file contains hidden or 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
{ | |
"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