2 const globals
= require('globals');
3 const js
= require('@eslint/js');
4 const jsdoc
= require('eslint-plugin-jsdoc');
5 const node
= require('eslint-plugin-n');
6 const security
= require('eslint-plugin-security');
7 const sonarjs
= require('eslint-plugin-sonarjs');
9 const { FlatCompat
} = require('@eslint/eslintrc');
10 const compat
= new FlatCompat();
13 js
.configs
.recommended
,
14 ...compat
.config(node
.configs
.recommended
),
15 security
.configs
.recommended
,
16 ...compat
.config(sonarjs
.configs
.recommended
),
17 jsdoc
.configs
['flat/recommended'],
31 'array-element-newline': [
46 'block-scoped-var': 'error',
47 'block-spacing': 'error',
48 'brace-style': 'error',
49 'callback-return': 'error',
51 'class-methods-use-this': 'error',
74 'sonarjs/cognitive-complexity': 'warn',
75 'keyword-spacing': 'error',
82 'varsIgnorePattern': '^_',
85 'object-curly-spacing': [
89 'prefer-const': 'error',
99 'vars-on-top': 'error',
110 "n/no-unpublished-require": "off",