-
-
Notifications
You must be signed in to change notification settings - Fork 249
Expand file tree
/
Copy patheslint.config.mjs
More file actions
36 lines (35 loc) · 882 Bytes
/
eslint.config.mjs
File metadata and controls
36 lines (35 loc) · 882 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
34
35
36
import { defineConfig } from 'eslint/config'
import js from '@eslint/js'
import tseslint from 'typescript-eslint'
import prettierPlugin from 'eslint-plugin-prettier/recommended'
export default defineConfig(
{
ignores: [
'docs/**',
'package.json',
'package-lock.json',
'yarn.lock',
'node_modules/**'
]
},
js.configs.recommended,
...tseslint.configs.recommended,
prettierPlugin,
{
languageOptions: {
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: { jsx: true }
}
},
rules: {
'no-debugger': 2,
'no-console': 2,
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'error'
}
}
)