-
Notifications
You must be signed in to change notification settings - Fork 34
/
.eslintrc.js
executable file
·39 lines (39 loc) · 923 Bytes
/
.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
/* 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'],
//
// TODO disabled 'next/core-web-vitals'
// Plugin "import" was conflicted between ".eslintrc.js
// » eslint-config-airbnb
// » eslint-config-next/core-web-vitals
// extends: ['next/core-web-vitals', '@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)
ignoreComments: true,
ignoreTrailingComments: true,
},
],
'spaced-comment': 0,
//
//
// Next.js
'@next/next/no-img-element': 0,
},
};