-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.24 KB
/
.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
43
44
45
46
module.exports = {
extends: [
'expo',
'prettier',
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:storybook/recommended',
'plugin:@tanstack/eslint-plugin-query/recommended',
],
plugins: [
'prettier',
'@typescript-eslint',
'unused-imports',
'simple-import-sort',
'@tanstack/query',
],
rules: {
'@typescript-eslint/consistent-type-imports': 'error',
'prettier/prettier': 'error',
'react/jsx-curly-brace-presence': ['error', { props: 'never', children: 'never' }],
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'prefer-const': 'error',
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'variable',
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
},
{
selector: 'function',
format: ['camelCase', 'PascalCase'],
},
{
selector: 'typeLike',
format: ['PascalCase'],
},
],
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': 'error',
'react/react-in-jsx-scope': 'off',
},
};