Skip to content

Commit

Permalink
BRAIN-39 - Slimed eslint config and it's deps
Browse files Browse the repository at this point in the history
  • Loading branch information
cyl3x committed Sep 25, 2024
1 parent d6a923f commit eb84f42
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
23 changes: 9 additions & 14 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
plugins: ['vue', '@typescript-eslint'],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
project: './tsconfig.json',
extraFileExtensions: ['.vue'],
},
env: {
browser: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:vue/vue3-recommended',
'eslint:recommended',
'@vue/eslint-config-typescript'
],
parserOptions: {
ecmaVersion: 'latest'
},

rules: {
'no-undef': 'off',
curly: ['error', 'multi-or-nest', 'consistent'],
Expand Down Expand Up @@ -103,4 +98,4 @@ module.exports = {
}],
/* vue rules */
},
};
}
2 changes: 2 additions & 0 deletions assets/runtime.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import type { Api } from '@/service/api';
import type { Notify } from '@/service/notify';
import type { Filters } from '@/service/filters';
import type { I18n } from '@/i18n';

declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$api: Api,
$notify: Notify,
$filters: Filters,
$t: I18n['global']['t'],
}
}
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
},
"include": [
"./assets/**/*.ts",
"./assets/**/*.vue",
"./.eslintrc.js"
"./assets/**/*.vue"
],
}

0 comments on commit eb84f42

Please sign in to comment.