-
Notifications
You must be signed in to change notification settings - Fork 9
/
eslint.config.js
44 lines (43 loc) · 1.21 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import js from '@eslint/js';
import ts from 'typescript-eslint';
import globals from 'globals';
import prettierRecommended from 'eslint-plugin-prettier/recommended';
import jquery from 'eslint-plugin-jquery';
export default [
js.configs.recommended,
...ts.configs.recommended,
prettierRecommended,
{
files: ['**/*.js', '**/*.ts', '**/*.tsx'],
plugins: {
jquery,
},
languageOptions: {
sourceType: 'module',
ecmaVersion: 11,
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
...globals.browser,
...globals.es2020,
...globals.node,
},
},
rules: {
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'jquery/no-ajax': 2,
'jquery/no-ajax-events': 2,
'react/prop-types': 0,
},
settings: {
react: {
version: 'detect',
},
},
},
];