fix(eslint): modified rules to finally stop screaming about unused vars even if they're preceded by an underscore
This commit is contained in:
parent
a0d87a0013
commit
c7fadbcaf1
|
|
@ -41,6 +41,11 @@ export default defineConfigWithVueTs(
|
|||
'error',
|
||||
{ prefer: 'type-imports' }
|
||||
],
|
||||
"no-unused-vars": "off",
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'warn',
|
||||
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' }
|
||||
],
|
||||
}
|
||||
},
|
||||
// https://github.com/vuejs/eslint-config-typescript
|
||||
|
|
@ -70,11 +75,8 @@ export default defineConfigWithVueTs(
|
|||
'prefer-promise-reject-errors': 'off',
|
||||
|
||||
// warn about unused but underscored variables
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
'no-unused-vars': [
|
||||
'warn',
|
||||
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' }
|
||||
],
|
||||
|
||||
'no-unused-vars': 'off',
|
||||
|
||||
// allow debugger during development only
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable */
|
||||
import { defineBoot } from '#q-app/wrappers';
|
||||
import axios, { type AxiosInstance } from 'axios';
|
||||
|
||||
|
|
|
|||
2
src/env.d.ts
vendored
2
src/env.d.ts
vendored
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable */
|
||||
|
||||
declare namespace NodeJS {
|
||||
interface ProcessEnv {
|
||||
NODE_ENV: string;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
setup
|
||||
lang="ts"
|
||||
>
|
||||
/* eslint-disable */
|
||||
import EmployeeListTableItem from 'src/modules/employee-list/components/employee-list-table-item.vue';
|
||||
|
||||
import { onMounted, ref } from 'vue';
|
||||
|
|
@ -24,7 +23,7 @@
|
|||
hide_inactive_users: true,
|
||||
});
|
||||
|
||||
const filterEmployeeRows = (rows: readonly EmployeeProfile[], terms: EmployeeListFilters): EmployeeProfile[] => {
|
||||
const filterEmployeeRows = (rows: readonly EmployeeProfile[], terms: EmployeeListFilters, _cols: readonly QTableColumn<EmployeeProfile>[]): EmployeeProfile[] => {
|
||||
let result = [...rows];
|
||||
|
||||
if (terms.hide_inactive_users) {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,5 @@
|
|||
import type { QTableColumn } from "quasar";
|
||||
|
||||
/* eslint-disable */
|
||||
export enum NavigatorConstants {
|
||||
NEXT_PERIOD = 1,
|
||||
PREVIOUS_PERIOD = -1,
|
||||
}
|
||||
|
||||
export interface TimesheetOverview {
|
||||
email: string;
|
||||
employee_name: string;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
export enum RouteNames {
|
||||
/* eslint-disable */
|
||||
LOGIN = 'login',
|
||||
LOGIN_SUCCESS = 'login-success',
|
||||
DASHBOARD = 'dashboard',
|
||||
|
|
|
|||
1
src/stores/store-flag.d.ts
vendored
1
src/stores/store-flag.d.ts
vendored
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable */
|
||||
// THIS FEATURE-FLAG FILE IS AUTOGENERATED,
|
||||
// REMOVAL OR CHANGES WILL CAUSE RELATED TYPES TO STOP WORKING
|
||||
import 'quasar/dist/types/feature-flag';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user