-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.cjs
48 lines (41 loc) · 855 Bytes
/
.eslintrc.cjs
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
// SPDX-FileCopyrightText: 2022 Johannes Loher
// SPDX-FileCopyrightText: 2022 David Archibald
//
// SPDX-License-Identifier: MIT
module.exports = {
parser: "@babel/eslint-parser",
parserOptions: {
requireConfigFile: false,
ecmaVersion: 2020,
extraFileExtensions: [".cjs", ".mjs"],
sourceType: "module",
},
env: {
browser: true,
es6: true,
},
globals: {
$: "readonly",
dnd5e: "readonly",
globalThis: "readonly",
isEmpty: "readonly",
libWrapper: "readonly",
},
extends: [
"eslint:recommended",
"@typhonjs-fvtt/eslint-config-foundry.js/0.8.0",
"plugin:prettier/recommended",
],
plugins: [],
rules: {
// Specify any specific ESLint rules.
},
overrides: [
{
files: ["./*.js", "./*.cjs", "./*.mjs"],
env: {
node: true,
},
},
],
};