1 import globals from 'globals';
2 import js from '@eslint/js';
5 js.configs.recommended,
7 ignores: ['resources/**/*-stub.js', 'resources/**/*.ts'],
14 ecmaVersion: 'latest',
20 'arrow-parens': ['error', 'as-needed'],
22 'padded-blocks': ['error', {
27 'object-curly-spacing': ['error', 'never'],
29 'space-before-function-paren': ['error', {
35 'import/prefer-default-export': 'off',
37 'no-plusplus': ['error', {
38 allowForLoopAfterthoughts: true,
41 'arrow-body-style': 'off',
42 'no-restricted-syntax': 'off',
44 'prefer-destructuring': 'off',
45 'class-methods-use-this': 'off',
46 'no-param-reassign': 'off',
48 'no-console': ['warn', {
49 allow: ['error', 'warn'],
54 'max-len': ['error', {
58 ignoreComments: false,
59 ignoreRegExpLiterals: true,
61 ignoreTemplateLiterals: true,