-
-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy patheslint.config.mjs
More file actions
33 lines (32 loc) · 1011 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
33 lines (32 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import eslint from '@eslint/js';
import {defineConfig} from 'eslint/config';
import ghostPlugin from 'eslint-plugin-ghost';
import tseslint from 'typescript-eslint';
export default defineConfig([
{ignores: ['build/**', 'cjs/**', 'es/**']},
{
files: ['**/*.ts'],
extends: [
eslint.configs.recommended,
tseslint.configs.recommended
],
languageOptions: {
parserOptions: {ecmaVersion: 2022, sourceType: 'module'}
},
plugins: {ghost: ghostPlugin},
rules: {
...ghostPlugin.configs.ts.rules,
'@typescript-eslint/no-explicit-any': 'error'
}
},
{
files: ['test/**/*.ts'],
rules: {
...ghostPlugin.configs['ts-test'].rules,
'ghost/mocha/no-global-tests': 'off',
'ghost/mocha/handle-done-callback': 'off',
'ghost/mocha/no-mocha-arrows': 'off',
'ghost/mocha/max-top-level-suites': 'off'
}
}
]);