Commit | Line | Data |
---|---|---|
ebf80fe4 JB |
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([ | |
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 | ]) |