Created
November 23, 2024 19:06
-
-
Save wouterds/eb1459e2567aadc9d0a903197d7e5885 to your computer and use it in GitHub Desktop.
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
/** @type {import('eslint').Linter.Config} */ | |
module.exports = { | |
root: true, | |
parser: '@typescript-eslint/parser', | |
extends: [ | |
'eslint:recommended', | |
'plugin:@typescript-eslint/eslint-recommended', | |
'plugin:@typescript-eslint/recommended', | |
'plugin:prettier/recommended', | |
'plugin:react/recommended', | |
'plugin:react-hooks/recommended', | |
'prettier', | |
], | |
plugins: ['@typescript-eslint', 'simple-import-sort', 'prettier'], | |
settings: { | |
react: { | |
version: 'detect', | |
}, | |
}, | |
env: { | |
browser: true, | |
commonjs: true, | |
es6: true, | |
}, | |
rules: { | |
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], | |
'simple-import-sort/imports': 'error', | |
'simple-import-sort/exports': 'error', | |
'react/react-in-jsx-scope': 'off', | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment