2024-05-08 05:02:00 +02:00
|
|
|
import { createRequire } from 'node:module'
|
|
|
|
import antfu from '@antfu/eslint-config'
|
|
|
|
|
|
|
|
const require = createRequire(import.meta.url)
|
|
|
|
|
|
|
|
const autoImport = require('./.eslintrc-auto-import.json')
|
|
|
|
|
|
|
|
export default antfu(
|
|
|
|
{
|
|
|
|
typescript: false,
|
|
|
|
markdown: false,
|
|
|
|
ignores: [
|
|
|
|
'.github',
|
|
|
|
'.vscode',
|
|
|
|
'node_modules',
|
|
|
|
'dist',
|
|
|
|
'dist-electron',
|
|
|
|
'dist-release',
|
2024-09-09 12:58:17 +02:00
|
|
|
'electron/main.js',
|
2024-05-08 05:02:00 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
languageOptions: {
|
|
|
|
globals: {
|
|
|
|
...autoImport.globals,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'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',
|
2024-09-07 21:10:30 +02:00
|
|
|
'import/order': 'off',
|
2024-05-08 05:02:00 +02:00
|
|
|
|
|
|
|
'node/prefer-global/process': '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',
|
2024-05-13 16:49:39 +02:00
|
|
|
'no-unused-expressions': 'off',
|
2024-09-09 12:58:17 +02:00
|
|
|
'sort-imports': 'off',
|
2024-05-08 05:02:00 +02:00
|
|
|
|
|
|
|
'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',
|
2024-09-07 19:55:54 +02:00
|
|
|
|
|
|
|
'unicorn/consistent-function-scoping': 'off',
|
|
|
|
'regexp/no-unused-capturing-group': 'off',
|
|
|
|
'regexp/no-dupe-disjunctions': 'off',
|
2024-09-12 13:11:46 +02:00
|
|
|
'perfectionist/sort-imports': 'off',
|
2024-05-08 05:02:00 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
)
|