forked from olifolkerd/tabulator
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.js
More file actions
46 lines (38 loc) · 841 Bytes
/
eslint.config.js
File metadata and controls
46 lines (38 loc) · 841 Bytes
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
const {
defineConfig,
globalIgnores,
} = require("eslint/config");
const globals = require("globals");
module.exports = defineConfig([{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.amd,
"luxon": "readonly",
"XLSX": "readonly",
"jspdf": "readonly",
},
"ecmaVersion": "latest",
"sourceType": "module",
parserOptions: {},
},
"rules": {
"semi": "error",
"indent": ["error", "tab", {
VariableDeclarator: 0,
"SwitchCase": 1,
}],
"no-unused-vars": ["warn", {
"vars": "all",
"args": "none",
"ignoreRestSiblings": false,
}],
"no-fallthrough": "off",
"no-inner-declarations": "off",
"no-prototype-builtins": "off",
"no-empty": ["error", {
"allowEmptyCatch": true,
}],
},
}, globalIgnores(["**/.eslintrc.js", "**/dist", "**/examples"])]);