forked from ClipplerBlood/sketch-tiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
46 lines (40 loc) · 909 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
// SPDX-FileCopyrightText: 2022 Johannes Loher
// SPDX-FileCopyrightText: 2022 David Archibald
//
// SPDX-License-Identifier: MIT
module.exports = {
parserOptions: {
ecmaVersion: 2020,
extraFileExtensions: ['.cjs', '.mjs'],
sourceType: 'module',
},
env: {
browser: true,
commonjs: true,
es2021: true,
jquery: true,
},
extends: ['eslint:recommended', '@typhonjs-fvtt/eslint-config-foundry.js/0.8.0', 'plugin:prettier/recommended'],
plugins: [],
rules: {
// Specify any specific ESLint rules.
'no-unused-vars': [
'error',
{ vars: 'local', args: 'after-used', ignoreRestSiblings: false, argsIgnorePattern: '^_' },
],
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
overrides: [
{
files: ['./*.js', './*.cjs', './*.mjs'],
env: {
node: true,
},
},
],
};