2 const globals
= require('globals');
3 const js
= require('@eslint/js');
4 const node
= require('eslint-plugin-n');
5 const security
= require('eslint-plugin-security');
6 const sonarjs
= require('eslint-plugin-sonarjs');
8 const { FlatCompat
} = require('@eslint/eslintrc');
9 const compat
= new FlatCompat();
12 js
.configs
.recommended
,
13 ...compat
.config(node
.configs
.recommended
),
14 security
.configs
.recommended
,
15 ...compat
.config(sonarjs
.configs
.recommended
),
28 'array-element-newline': [
43 'block-scoped-var': 'error',
44 'block-spacing': 'error',
45 'brace-style': 'error',
46 'callback-return': 'error',
48 'class-methods-use-this': 'error',
71 'sonarjs/cognitive-complexity': 'warn',
72 'keyword-spacing': 'error',
79 'varsIgnorePattern': '^_',
82 'object-curly-spacing': [
86 'prefer-const': 'error',
96 'vars-on-top': 'error',
107 "n/no-unpublished-require": "off",