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