forked from ultrabolido/PrinceJS
-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy patheslint.config.js
More file actions
49 lines (46 loc) · 1.17 KB
/
Copy patheslint.config.js
File metadata and controls
49 lines (46 loc) · 1.17 KB
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
"use strict";
const globals = require("globals");
const js = require("@eslint/js");
const configPrettier = require("eslint-config-prettier");
module.exports = [
{
ignores: ["**/lib/", "**/node_modules/"]
},
js.configs.recommended,
configPrettier,
{
languageOptions: {
ecmaVersion: 2024,
sourceType: "commonjs",
parserOptions: {
project: true,
tsconfigRootDir: __dirname
},
globals: {
...globals.node,
document: false,
window: false,
history: false,
PrinceJS: false,
Phaser: false
}
},
rules: {
strict: ["error"],
curly: ["error"],
"no-unused-vars": ["off"],
"no-restricted-modules": ["off"],
"no-eval": ["error"],
"no-implied-eval": ["error"],
"no-console": ["error"],
"no-throw-literal": ["error"],
"no-control-regex": ["off"],
"no-constant-binary-expression": ["off"],
"no-inner-declarations": ["off"],
"prefer-promise-reject-errors": ["error"],
"no-constant-condition": ["error", { checkLoops: false }],
"no-var": ["error"],
"no-prototype-builtins": ["off"]
}
}
];