forked from hoangsonww/The-MovieVerse-Database
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
executable file
·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 = {
env: {
browser: true,
es2021: true,
},
extends: ['eslint:recommended', 'plugin:react/recommended'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react'],
rules: {
'no-console': [
1,
{
allow: ['warn', 'error'],
},
],
'comma-dangle': 'warn',
'no-lonely-if': 'warn',
'prefer-destructuring': 'warn',
'valid-jsdoc': 'warn',
'object-shorthand': 'warn',
'import/prefer-default-export': 'off',
'no-underscore-dangle': 'warn',
'func-names': [0],
'no-param-reassign': 'warn',
'no-undef': 'warn',
'no-unreachable': 'off',
'dot-notation': 'warn',
'no-restricted-syntax': 'off',
'no-await-in-loop': 'off',
quotes: ['error', 'single'],
'no-multi-spaces': ['error'],
indent: ['off', 2],
semi: ['error', 'always'],
'no-process-env': ['warn'],
'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: false }],
camelcase: ['error'],
'max-len': ['error', { code: 150 }],
'linebreak-style': 'off',
// 'curly': [2, 'multi'],
'object-curly-spacing': ['error', 'always'],
},
};