-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslintrc.js
59 lines (58 loc) · 1.38 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
49
50
51
52
53
54
55
56
57
58
module.exports = {
env: {
node: true,
browser: true,
es6: true,
"jest/globals": true
},
parser: "babel-eslint",
parserOptions: {
sourceType: "module",
allowImportExportEverywhere: true
},
extends: [
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@next/next/recommended",
"plugin:github/recommended"
],
settings: {
react: {
version: 'latest',
},
},
plugins: ['github', 'jest', 'simple-import-sort'],
ignorePatterns: ["jest.config.js"],
rules: {
'max-len': [2, { code: 120, tabWidth: 4, ignoreUrls: true }],
indent: [
'error',
2,
{
"ignoredNodes": ["TemplateLiteral"]
}
],
'linebreak-style': [
'error',
'unix',
],
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
}],
'no-use-before-define': ['error', { functions: false, classes: true, variables: true }],
'eslint-comments/no-use': 0,
'simple-import-sort/imports': "error",
'simple-import-sort/exports': "error",
'sort-imports': 0,
'react/prop-types': 0,
'react/react-in-jsx-scope': 0,
'import/no-commonjs': 0,
'@next/next/no-img-element': 0,
'i18n-text/no-en': 0,
'react/no-unescaped-entities': 0,
},
};