-
-
Notifications
You must be signed in to change notification settings - Fork 298
/
.eslintrc.js
43 lines (43 loc) · 1.08 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
module.exports = {
root: true,
extends: '@mlaursen/eslint-config',
globals: {
gtag: 'readonly',
},
rules: {
// only used for prop-types and easily caught
'no-empty': 0,
},
overrides: [
{
files: [
'packages/documentation/src/**/*.ts',
'packages/documentation/src/**/*.tsx',
],
extends: 'plugin:@next/next/recommended',
rules: {
'@next/next/no-html-link-for-pages': [
1,
'packages/documentation/src/pages',
],
// I don't really want the image optimizations for the documentation site
// since I use random images from other services
'@next/next/no-img-element': 0,
},
},
{
files: ['packages/documentation/src/components/Demos/**/*.tsx'],
rules: {
// normally don't care about these for demos
'react/no-array-index-key': 0,
},
},
{
files: ['packages/*/src/index.ts'],
rules: {
// I don't know how to get @module to work but it's supported by typedoc
'tsdoc/syntax': 0,
},
},
],
};