-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
42 lines (41 loc) · 990 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
extends: [
'eslint:recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'prettier',
],
settings: {
'import/ignore': ['react-native'],
react: {
version: '18',
},
},
rules: {
'react/react-in-jsx-scope': 'off',
},
overrides: [
{
files: ['**/*.{js,cjs}', '@taddy/babel-plugin/**'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
],
env: {
browser: true,
es2022: true,
node: true,
},
};