forked from yochaigal/Cairn-FoundryVTT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (43 loc) · 935 Bytes
/
.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
const path = require('path');
module.exports = {
"env": {
"browser": true,
"es2021": true,
"jquery": true
},
"extends": [
"eslint:recommended",
"@typhonjs-fvtt/eslint-config-foundry.js",
"plugin:i18n-json/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"plugins": ["import"],
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"prefer-const": 2,
"i18n-json/valid-message-syntax": [
2,
{
"syntax": "icu"
}
],
"i18n-json/valid-json": 2,
"i18n-json/sorted-keys": [
2,
{
"order": "asc",
"indentSpaces": 2
}
],
"i18n-json/identical-keys": [2, {
filePath: path.resolve('lang/en.json')
}],
"no-return-await": "error"
}
}