forked from viarotel-org/escrcpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
85 lines (74 loc) · 2.22 KB
/
eslint.config.js
File metadata and controls
85 lines (74 loc) · 2.22 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { createRequire } from 'node:module'
import antfu from '@antfu/eslint-config'
const require = createRequire(import.meta.url)
const desktopAutoImport = require('./desktop/.eslintrc-auto-import.json')
export default antfu(
{
formatters: {
css: true,
html: true,
markdown: 'prettier',
},
ignores: [
'.github',
'.vscode',
'node_modules',
'dist',
'dist-electron',
'dist-release',
],
},
{
languageOptions: {
globals: {
'window.$preload': 'readonly',
't': 'readonly',
...desktopAutoImport.globals,
},
},
rules: {
'vue/html-self-closing': 'off',
'vue/block-order': 'off',
'vue/no-unused-refs': 'off',
'vue/no-mutating-props': 'off',
'vue/no-constant-condition': 'off',
'vue/eqeqeq': 'off',
'vue/custom-event-name-casing': 'off',
'vue/no-use-v-if-with-v-for': 'off',
'vue/component-tags-order': 'off',
'vue/no-unused-vars': 'off',
'regexp/no-unused-capturing-group': 'off',
'regexp/no-dupe-disjunctions': 'off',
'regexp/optimal-lookaround-quantifier': 'off',
'regexp/no-super-linear-backtracking': 'off',
'jsdoc/check-param-names': 'off',
'jsdoc/check-types': 'off',
'jsdoc/require-returns-description': 'off',
'antfu/consistent-list-newline': 'off',
'antfu/top-level-function': 'off',
'import/default': 'off',
'import/order': 'off',
'node/prefer-global/process': 'off',
'node/prefer-global/buffer': 'off',
'no-console': 'off',
'curly': 'off',
'eqeqeq': 'off',
'no-unused-vars': 'off',
'unused-imports/no-unused-vars': 'off',
'no-debugger': 'off',
'no-restricted-syntax': 'off',
'no-new': 'off',
'prefer-promise-reject-errors': 'off',
'no-unused-expressions': 'off',
'sort-imports': 'off',
'unicorn/consistent-function-scoping': 'off',
'perfectionist/sort-imports': 'off',
'no-control-regex': 'off',
'no-cond-assign': 'off',
'no-template-curly-in-string': 'off',
'pnpm/yaml-enforce-settings': 'off',
'ts/no-unsafe-function-type': 'off',
'ts/method-signature-style': 'off',
},
},
)