tickwerk/.eslintrc.cjs

39 lines
675 B
JavaScript
Raw Normal View History

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,
es2022: true,
jquery: true,
2022-05-16 02:08:27 +02:00
},
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
2022-05-16 02:08:27 +02: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: [
{
files: ['./*.cjs', './*.js', './tools/**/*'],
env: { node: true, browser: false, jquery: false },
2022-05-16 02:08:27 +02:00
},
],
};