-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
99 lines (98 loc) · 2.93 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/* eslint-disable @typescript-eslint/no-require-imports */
const { getWords, getGlobalWords } = require('modules-words');
module.exports = {
extends: ['alloy', 'alloy/typescript'],
env: {
// 您的环境变量(包含多个预定义的全局变量)
// Your environments (which contains several predefined global variables)
//
// browser: true,
// node: true,
// mocha: true,
// jest: true,
// jquery: true
webextensions: true
},
globals: {
// 您的全局变量(设置为 false 表示它不允许被重新赋值)
// Your global variables (setting to false means it's not allowed to be reassigned)
//
// myGlobal: false
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'no-undef': 'off'
}
}
],
plugins: ['spellcheck'],
rules: {
// 自定义您的规则
// Customize your rules
semi: [1],
'spellcheck/spell-checker': [
'warn',
{
skipWords: [
...getWords('video.js'),
...getWords('@mui/system'),
...getWords('react-icons/ai'),
...getWords('@emotion/react'),
...getWords('react-icons/bs'),
...getWords('axios'),
...getWords('typescript'),
...getGlobalWords(),
'href',
'netflix',
'nflxvideo',
'xml',
'br',
'player-timedtext',
'webextensions',
'globals',
'tsx',
'youdao',
'tgt',
'anki',
'fefefe',
'favicon',
'ico',
'cloze',
'jpeg',
'mousedown',
'mouseup',
'Mui',
'dom',
'keydown',
'ondataavailable',
'onstop',
'webpack',
'onloadend',
'loadend',
'undef',
'caiyun',
'zh',
'videojs',
'vjs',
'srt',
'autoplay',
'offscreen',
'msg',
'no-cors',
'ctx',
'timeupdate',
'7yboofgmqoa5cbp2flgn',
'useractive',
'userinactive',
'wordlist',
'rect',
'rects',
'gi',
'fullscreenchange'
]
}
]
}
};