generated from ExpTechTW/Example
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patheslint.config.js
46 lines (44 loc) · 949 Bytes
/
eslint.config.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
// @ts-check
const ts = require('typescript-eslint');
const js = require('@eslint/js');
const globals = require('globals');
const stylistic = require('@stylistic/eslint-plugin');
module.exports = ts.config(
js.configs.recommended,
...ts.configs.strict,
...ts.configs.stylistic,
stylistic.configs.customize({
arrowParens: true,
semi: true,
flat: true,
}),
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.es2015,
L: 'readonly',
variable: 'writable',
constant: 'writable',
TREM: 'writable',
api: 'readonly',
ipcRenderer: 'readonly',
ipcMain: 'readonly',
reportMarkers: 'readonly',
},
},
},
{
files: [
'./src/**/*.{js}',
'eslint.config.js',
],
},
{
rules: {
'curly': ['error'],
'@typescript-eslint/no-require-imports': ['off'],
},
},
);