forked from flamingchickens1540/CLUCK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
30 lines (28 loc) · 919 Bytes
/
eslint.config.js
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
// @ts-check
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import globals from 'globals'
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{ files: ['src/**/*.ts'] },
{
ignores: ['public/', '**/moses.js', '**/_*.ts', 'build/']
},
{ files: ['static/js/**.js'], languageOptions: { globals: globals.browser } },
{
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'prefer-const': 'warn',
'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': 'allow-with-description' }]
}
}
)