-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
57 lines (56 loc) · 1.6 KB
/
eslint.config.mjs
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
45
46
47
48
49
50
51
52
53
54
55
56
57
import jsdoc from 'eslint-plugin-jsdoc'
import sweetAlert2EslintConfig from '@sweetalert2/eslint-config'
// TODO: https://github.com/mozilla/eslint-plugin-no-unsanitized/issues/241
// import eslintPluginNoUnsanitized from 'eslint-plugin-no-unsanitized'
import pluginCypress from 'eslint-plugin-cypress/flat'
import globals from 'globals'
export default [
...sweetAlert2EslintConfig,
// eslintPluginNoUnsanitized,
jsdoc.configs['flat/recommended'],
pluginCypress.configs.recommended,
{
plugins: {
jsdoc,
},
rules: {
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-empty-interface': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-this-alias': 0,
'@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '_' }],
'@typescript-eslint/triple-slash-reference': 0,
'jsdoc/require-param-description': 0,
'jsdoc/require-property-description': 0,
'jsdoc/require-returns-description': 0,
'jsdoc/no-undefined-types': 0,
'jsdoc/tag-lines': 0,
'jsdoc/valid-types': 0,
},
},
{
files: ['sweetalert2.d.ts'],
rules: {
'jsdoc/require-param': 0,
'jsdoc/require-returns': 0,
'jsdoc/require-param-type': 0,
},
},
{
files: ['cypress/**/*.js'],
rules: {
'@typescript-eslint/no-unused-expressions': 0,
'no-unsanitized/property': 0,
'no-unused-expressions': 0,
'jsdoc/require-jsdoc': 0,
},
},
{
files: ['rollup.config.js', 'release.config.js'],
languageOptions: {
globals: {
...globals.node,
},
},
},
]