Commit | Line | Data |
---|---|---|
24a482da | 1 | // @ts-check |
7fd91296 | 2 | // eslint-disable-next-line n/no-unpublished-require |
2d786acc JB |
3 | const { defineConfig } = require('eslint-define-config') |
4 | ||
5 | module.exports = defineConfig({ | |
24a482da | 6 | root: true, |
2d786acc JB |
7 | env: { |
8 | es2021: true, | |
9 | node: true | |
10 | }, | |
24a482da JB |
11 | parserOptions: { |
12 | ecmaVersion: 2021, | |
13 | sourceType: 'module' | |
14 | }, | |
51c84d4b | 15 | plugins: ['promise', 'jsdoc'], |
2d786acc JB |
16 | extends: [ |
17 | 'standard', | |
18 | 'eslint:recommended', | |
7fd91296 | 19 | 'plugin:n/recommended', |
e9bfc28e | 20 | 'plugin:jsdoc/recommended', |
2d786acc | 21 | 'plugin:import/recommended', |
51c84d4b | 22 | 'plugin:promise/recommended' |
2d786acc JB |
23 | ], |
24 | rules: { | |
25 | 'sort-imports': [ | |
26 | 'warn', | |
27 | { | |
28 | ignoreMemberSort: true, | |
29 | ignoreDeclarationSort: true | |
30 | } | |
31 | ] | |
32 | } | |
33 | }) |