40 lines
1.2 KiB
JavaScript
40 lines
1.2 KiB
JavaScript
|
module.exports = {
|
||
|
env: {
|
||
|
browser: true,
|
||
|
es2021: true,
|
||
|
},
|
||
|
extends: [
|
||
|
'eslint:recommended',
|
||
|
'plugin:react/recommended',
|
||
|
'google',
|
||
|
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
|
||
|
'plugin:@typescript-eslint/eslint-recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
|
||
|
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
|
||
|
'plugin:css/recommended',
|
||
|
'plugin:prettier/recommended',
|
||
|
],
|
||
|
parser: '@typescript-eslint/parser',
|
||
|
parserOptions: {
|
||
|
ecmaFeatures: {
|
||
|
jsx: true,
|
||
|
},
|
||
|
ecmaVersion: 'latest',
|
||
|
sourceType: 'module',
|
||
|
},
|
||
|
plugins: ['react', '@typescript-eslint', 'prettier', 'css'],
|
||
|
rules: {
|
||
|
'react/react-in-jsx-scope': 'off',
|
||
|
'react/jsx-indent': ['off'],
|
||
|
},
|
||
|
settings: {
|
||
|
react: {
|
||
|
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
|
||
|
},
|
||
|
'import/resolver': {
|
||
|
node: {
|
||
|
extensions: ['.js', '.jsx', '.ts', '.tsx', '.css'],
|
||
|
paths: ['./src'],
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
};
|