mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 16:13:06 +00:00
refactor: adjust linting to latest eslint changes
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user