refactor: adjust linting to latest eslint changes

This commit is contained in:
Rainer Killinger
2022-03-07 16:06:05 +01:00
parent 91b1e3a52b
commit eea8d6d339
10 changed files with 252 additions and 47 deletions

View File

@@ -19,7 +19,7 @@
export function hashStringToInt(string_: string): number {
return [...string_].reduce(
(accumulator, current) =>
current.charCodeAt(0) +
(current.codePointAt(0) ?? 0) +
(accumulator << 6) +
(accumulator << 16) -
accumulator,

View File

@@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
/* eslint-disable @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-explicit-any, unicorn/no-thenable */
import {TestBed} from '@angular/core/testing';
import {Client} from '@openstapps/api/lib/client';
import {

View File

@@ -43,6 +43,7 @@ export class ScheduleViewComponent extends CalendarViewComponent {
routeFragment = 'schedule/recurring';
weekDates = Array.from({length: 7}).map(
/* eslint-disable-next-line unicorn/consistent-function-scoping */
(_, i) => moment(new Date(2022, 0, 2 + i)), // 02/01/2022 is a Sunday
);

View File

@@ -14,7 +14,7 @@
*/
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// `ng build --env=prod` then `environment.production.ts` will be used instead.
// The list of which env maps to which file can be found in `.angular-cli.json`.
export const environment = {

View File

@@ -14,7 +14,7 @@
*/
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// `ng build --env=prod` then `environment.production.ts` will be used instead.
// The list of which env maps to which file can be found in `.angular-cli.json`.
export const environment = {