2018-06-01 18:05:51 +05:30
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
2022-02-23 11:33:55 +05:30
|
|
|
node: true,
|
2023-06-21 16:08:39 +05:30
|
|
|
browser: true,
|
2023-06-23 10:40:16 +05:30
|
|
|
es2018: true,
|
2018-06-01 18:05:51 +05:30
|
|
|
},
|
|
|
|
rules: {
|
2023-06-21 16:08:39 +05:30
|
|
|
'no-console': 'warn',
|
|
|
|
'no-debugger': 'warn',
|
2022-02-23 11:33:55 +05:30
|
|
|
'arrow-body-style': 'off',
|
2023-06-23 10:40:16 +05:30
|
|
|
'prettier/prettier': 'warn',
|
2023-06-21 16:08:39 +05:30
|
|
|
'prefer-arrow-callback': 'warn',
|
2023-01-31 13:36:03 +05:30
|
|
|
'vue/no-mutating-props': 'off',
|
2022-02-23 11:33:55 +05:30
|
|
|
'vue/multi-word-component-names': 'off',
|
|
|
|
'vue/no-useless-template-attributes': 'off',
|
2023-06-21 16:08:39 +05:30
|
|
|
'vue/one-component-per-file': 'off',
|
2023-06-23 12:29:51 +05:30
|
|
|
'vue/no-reserved-component-names': 'off',
|
2023-06-21 16:08:39 +05:30
|
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
2023-06-22 11:39:32 +05:30
|
|
|
'@typescript-eslint/no-floating-promises': 'warn',
|
|
|
|
'@typescript-eslint/no-misused-promises': 'warn',
|
2019-12-12 23:07:43 +05:30
|
|
|
},
|
2023-06-23 10:40:16 +05:30
|
|
|
parser: 'vue-eslint-parser',
|
|
|
|
parserOptions: {
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
project: true,
|
|
|
|
tsconfigRootDir: __dirname,
|
|
|
|
sourceType: 'module',
|
|
|
|
extraFileExtensions: ['.vue'],
|
|
|
|
},
|
|
|
|
plugins: ['@typescript-eslint', 'prettier'],
|
2023-06-21 16:08:39 +05:30
|
|
|
extends: [
|
2023-06-23 10:40:16 +05:30
|
|
|
'plugin:vue/vue3-recommended',
|
2023-06-21 16:08:39 +05:30
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
2023-06-23 12:29:51 +05:30
|
|
|
'plugin:prettier/recommended',
|
2023-06-21 16:08:39 +05:30
|
|
|
],
|
2023-06-26 13:40:23 +05:30
|
|
|
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 14:22:54 +05:30
|
|
|
ignorePatterns: [
|
2023-06-23 10:40:16 +05:30
|
|
|
'*.mjs',
|
2023-06-27 11:42:47 +05:30
|
|
|
'uitest',
|
2023-06-22 14:22:54 +05:30
|
|
|
'.eslintrc.js',
|
|
|
|
'tailwind.config.js',
|
|
|
|
'node_modules',
|
|
|
|
'dist_electron',
|
|
|
|
'*.spec.ts',
|
|
|
|
'vite.config.ts',
|
|
|
|
'postcss.config.js',
|
2023-06-26 13:40:23 +05:30
|
|
|
'src/components/**/*.vue', // Incrementally fix these
|
2023-06-22 14:22:54 +05:30
|
|
|
],
|
2019-12-12 23:07:43 +05:30
|
|
|
};
|