-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.21 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
47
48
module.exports = {
parser: '@typescript-eslint/parser',
env: {
browser: true,
node: true,
es2021: true,
jest: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
// 'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
overrides: [],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
},
},
plugins: ['@typescript-eslint', 'prettier'],
settings: {},
rules: {
'@typescript-eslint/explicit-member-accessibility': 'off',
indent: ['error', 2],
'no-mixed-spaces-and-tabs': 'error',
'no-trailing-spaces': 'off',
'no-unused-vars': [
'error',
{ vars: 'all', varsIgnorePattern: '_', args: 'none' },
],
'react/prop-types': 'off',
semi: ['error', 'always'],
quotes: ['error', 'single', { allowTemplateLiterals: true }],
'brace-style': ['error', '1tbs'],
'max-len': [
'error',
{
code: 100, // Adjust based on your preferred line length
ignoreTemplateLiterals: true,
ignoreComments: true,
ignorePattern: '^import\\s.+\\sfrom\\s.+;$', // Ignore import statements
},
],
},
};