1 // eslint-disable-next-line n/no-unpublished-require
2 const { defineConfig } = require('eslint-define-config')
4 module.exports = defineConfig({
15 extends: ['eslint:recommended', 'plugin:import/recommended'],
19 project: './tsconfig.json'
28 ignoreDeclarationSort: true,
29 ignoreMemberSort: false,
30 memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
31 allowSeparatedGroups: true
38 'builtin', // Built-in imports (come from NodeJS native) go first
39 'external', // <- External imports
40 'internal', // <- Absolute imports
41 ['sibling', 'parent'], // <- Relative imports, the sibling and parent types they can be mingled together
42 'index', // <- Index imports
43 'unknown' // <- Unknown
45 'newlines-between': 'always',
47 /* Sort in ascending order. Options: ["ignore", "asc", "desc"] */
49 /* Ignore case. Options: [true, false] */
58 parser: '@typescript-eslint/parser',
60 project: './tsconfig.json'
62 plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
64 'plugin:@typescript-eslint/strict-type-checked',
65 'plugin:@typescript-eslint/stylistic-type-checked',
66 'plugin:import/typescript',
67 'standard-with-typescript'
70 'operator-linebreak': 'off',
71 'tsdoc/syntax': 'warn'
75 files: ['**/*.js', '**/*.cjs', '**/*.mjs'],
77 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard'],