You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// parser: '@typescript-eslint/parser', // Specifies the ESLint parser
3
+
parserOptions: {
4
+
ecmaVersion: 2020,// Allows for the parsing of modern ECMAScript features
5
+
sourceType: 'module',// Allows for the use of imports
6
+
ecmaFeatures: {
7
+
jsx: true,// Allows for the parsing of JSX
8
+
},
9
+
},
10
+
settings: {
11
+
react: {
12
+
version: 'detect',// Tells eslint-plugin-react to automatically detect the version of React to use
13
+
},
14
+
},
15
+
extends: [
16
+
'react-app',
17
+
'plugin:react/recommended',// Uses the recommended rules from @eslint-plugin-react
18
+
'plugin:prettier/recommended',// Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
19
+
],
20
+
plugins: ['react','react-hooks'],
21
+
rules: {
22
+
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
23
+
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
0 commit comments