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 'capitalized-comments': 'warn',
49 'class-methods-use-this': 'error',
72 'sonarjs/cognitive-complexity': 'warn',
73 'keyword-spacing': 'error',
80 'varsIgnorePattern': '^_',
83 'object-curly-spacing': [
87 'prefer-const': 'error',
97 'vars-on-top': 'error',
108 "n/no-unpublished-require": "off",