chore: configure vscode eslint for flat config
[benchmarks-js.git] / eslint.config.js
CommitLineData
ebf80fe4
JB
1/* eslint-disable n/no-unpublished-import */
2import js from '@eslint/js'
3import { defineFlatConfig } from 'eslint-define-config'
4import jsdoc from 'eslint-plugin-jsdoc'
5import nodePlugin from 'eslint-plugin-n'
6import simpleImportSort from 'eslint-plugin-simple-import-sort'
7import globals from 'globals'
8import neostandard from 'neostandard'
9
10export default defineFlatConfig([
ebf80fe4
JB
11 js.configs.recommended,
12 nodePlugin.configs['flat/recommended'],
e35aad12
JB
13 jsdoc.configs['flat/recommended'],
14 ...neostandard({
15 globals: {
16 ...globals.node,
17 },
18 }),
ebf80fe4
JB
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])