Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
eslint
module.exports = {
env: {
browser: true,
node: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
'prettier/prettier',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
plugins: ['react', '@typescript-eslint'],
rules: {
'react/jsx-filename-extension': [1, { extensions: ['.ts', '.tsx'] }],
'import/extensions': 'off',
},
settings: {
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.ts', '.tsx'],
},
},
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment