2022-05-16 02:08:27 +02:00
|
|
|
// SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'module',
|
|
|
|
},
|
|
|
|
|
|
|
|
env: {
|
|
|
|
browser: true,
|
2022-11-28 00:52:31 +01:00
|
|
|
es2022: true,
|
|
|
|
jquery: true,
|
2022-05-16 02:08:27 +02:00
|
|
|
},
|
|
|
|
|
2022-11-28 00:52:31 +01:00
|
|
|
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
|
2022-05-16 02:08:27 +02:00
|
|
|
|
2022-11-28 00:52:31 +01:00
|
|
|
globals: {
|
|
|
|
Hooks: 'readonly',
|
|
|
|
Actor: 'readonly',
|
|
|
|
CONFIG: 'readonly',
|
|
|
|
ui: 'readonly',
|
|
|
|
Game: 'readonly',
|
|
|
|
game: 'readonly',
|
|
|
|
foundry: 'readonly',
|
|
|
|
Dialog: 'readonly',
|
|
|
|
twist: 'readonly',
|
|
|
|
},
|
2022-05-16 02:08:27 +02:00
|
|
|
|
|
|
|
rules: {},
|
|
|
|
|
|
|
|
overrides: [
|
|
|
|
{
|
2022-11-28 00:52:31 +01:00
|
|
|
files: ['./*.cjs', './*.js', './tools/**/*'],
|
|
|
|
env: { node: true, browser: false, jquery: false },
|
2022-05-16 02:08:27 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|