build(deps-dev): apply updates
[benchmarks-js.git] / eslint.config.js
1 /* eslint-disable n/no-unpublished-import */
2 import js from '@eslint/js'
3 import { defineFlatConfig } from 'eslint-define-config'
4 import jsdoc from 'eslint-plugin-jsdoc'
5 import nodePlugin from 'eslint-plugin-n'
6 import simpleImportSort from 'eslint-plugin-simple-import-sort'
7 import globals from 'globals'
8 import neostandard from 'neostandard'
9
10 export default defineFlatConfig([
11 js.configs.recommended,
12 nodePlugin.configs['flat/recommended'],
13 jsdoc.configs['flat/recommended'],
14 ...neostandard({
15 globals: {
16 ...globals.node,
17 },
18 }),
19 {
20 plugins: {
21 'simple-import-sort': simpleImportSort,
22 },
23 rules: {
24 'simple-import-sort/imports': 'error',
25 'simple-import-sort/exports': 'error',
26 },
27 },
28 ])