fix(eslint): modified rules to finally stop screaming about unused vars even if they're preceded by an underscore

This commit is contained in:
Nicolas Drolet 2025-12-05 17:01:57 -05:00
parent a0d87a0013
commit c7fadbcaf1
7 changed files with 8 additions and 18 deletions

View File

@ -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'

View File

@ -1,4 +1,3 @@
/* eslint-disable */
import { defineBoot } from '#q-app/wrappers';
import axios, { type AxiosInstance } from 'axios';

2
src/env.d.ts vendored
View File

@ -1,5 +1,3 @@
/* eslint-disable */
declare namespace NodeJS {
interface ProcessEnv {
NODE_ENV: string;

View File

@ -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) {

View File

@ -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;

View File

@ -1,5 +1,4 @@
export enum RouteNames {
/* eslint-disable */
LOGIN = 'login',
LOGIN_SUCCESS = 'login-success',
DASHBOARD = 'dashboard',

View File

@ -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';