2018-06-01 12:35:51 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
2022-02-23 06:03:55 +00:00
|
|
|
node: true,
|
2023-06-21 10:38:39 +00:00
|
|
|
browser: true,
|
2023-06-23 05:10:16 +00:00
|
|
|
es2018: true,
|
2018-06-01 12:35:51 +00:00
|
|
|
},
|
|
|
|
rules: {
|
2023-06-21 10:38:39 +00:00
|
|
|
'no-console': 'warn',
|
|
|
|
'no-debugger': 'warn',
|
2022-02-23 06:03:55 +00:00
|
|
|
'arrow-body-style': 'off',
|
2023-06-23 05:10:16 +00:00
|
|
|
'prettier/prettier': 'warn',
|
2023-06-21 10:38:39 +00:00
|
|
|
'prefer-arrow-callback': 'warn',
|
2023-01-31 08:06:03 +00:00
|
|
|
'vue/no-mutating-props': 'off',
|
2022-02-23 06:03:55 +00:00
|
|
|
'vue/multi-word-component-names': 'off',
|
|
|
|
'vue/no-useless-template-attributes': 'off',
|
2023-06-21 10:38:39 +00:00
|
|
|
'vue/one-component-per-file': 'off',
|
2023-06-23 06:59:51 +00:00
|
|
|
'vue/no-reserved-component-names': 'off',
|
2023-06-21 10:38:39 +00:00
|
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
2023-06-22 06:09:32 +00:00
|
|
|
'@typescript-eslint/no-floating-promises': 'warn',
|
|
|
|
'@typescript-eslint/no-misused-promises': 'warn',
|
2019-12-12 17:37:43 +00:00
|
|
|
},
|
2023-06-23 05:10:16 +00:00
|
|
|
parser: 'vue-eslint-parser',
|
|
|
|
parserOptions: {
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
project: true,
|
|
|
|
tsconfigRootDir: __dirname,
|
|
|
|
sourceType: 'module',
|
|
|
|
extraFileExtensions: ['.vue'],
|
|
|
|
},
|
|
|
|
plugins: ['@typescript-eslint', 'prettier'],
|
2023-06-21 10:38:39 +00:00
|
|
|
extends: [
|
2023-06-23 05:10:16 +00:00
|
|
|
'plugin:vue/vue3-recommended',
|
2023-06-21 10:38:39 +00:00
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
2023-06-23 06:59:51 +00:00
|
|
|
'plugin:prettier/recommended',
|
2023-06-21 10:38:39 +00:00
|
|
|
],
|
2023-06-26 08:10:23 +00:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.vue'],
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/no-misused-promises': 'off',
|
|
|
|
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
|
|
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
|
|
'@typescript-eslint/no-unsafe-call': 'off',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2023-06-22 08:52:54 +00:00
|
|
|
ignorePatterns: [
|
2023-06-23 05:10:16 +00:00
|
|
|
'*.mjs',
|
2023-06-27 06:12:47 +00:00
|
|
|
'uitest',
|
2023-06-22 08:52:54 +00:00
|
|
|
'.eslintrc.js',
|
|
|
|
'tailwind.config.js',
|
|
|
|
'node_modules',
|
|
|
|
'dist_electron',
|
|
|
|
'*.spec.ts',
|
|
|
|
'vite.config.ts',
|
|
|
|
'postcss.config.js',
|
2023-06-26 08:10:23 +00:00
|
|
|
'src/components/**/*.vue', // Incrementally fix these
|
2024-01-25 03:11:31 +00:00
|
|
|
'electron-builder.ts',
|
2023-06-22 08:52:54 +00:00
|
|
|
],
|
2019-12-12 17:37:43 +00:00
|
|
|
};
|