-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
executable file
·42 lines (42 loc) · 1.66 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
/* eslint-disable max-len */
module.exports = {
// https://github.com/qcolate/web-configs/blob/master/packages/eslint-config/react.js
// extends: ['airbnb', 'airbnb-typescript', 'prettier'],
extends: ['@qcolate/eslint-config'],
env: {
browser: true,
es2021: true,
jest: true,
},
globals: {
__DEV__: true,
__PROD__: true,
},
//
// 0 (off) / 1 (warn) / 2 (error)
rules: {
'max-len': [
2,
{
code: 80, // (default 80) enforces a maximum line length
ignoreComments: true, // ignores all trailing comments and comments on their own line
ignoreTrailingComments: true, // ignores only trailing comments
// ignoreUrls: true, // ignores lines that contain a URL
// tabWidth: 4, // (default 4) specifies the character width for tab characters
// comments: 80, // enforces a maximum line length for comments; defaults to value of code
// ignorePattern: true, // ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
// ignoreStrings: true, // ignores lines that contain a double-quoted or single-quoted string
// ignoreTemplateLiterals: true, // ignores lines that contain a template literal
// ignoreRegExpLiterals: true, // ignores lines that contain a RegExp literal
},
],
'spaced-comment': 0,
'no-restricted-exports': 0,
'react/function-component-definition': 0,
'react/no-namespace': 0,
'react/prefer-exact-props': 0,
'react/no-arrow-function-lifecycle': 0,
'react/no-invalid-html-attribute': 0,
'react/jsx-no-constructed-context-values': 0,
},
};