Add ESLint integration and Angular linting support

Configured ESLint for the project with Angular and TypeScript support. Added angular-eslint dependencies, updated angular.json to include linting, and created eslint.config.js for lint rules. Updated package.json and package-lock.json with new dev dependencies.
This commit is contained in:
2026-02-01 17:04:07 +01:00
parent b0ad2dc3d1
commit 2d25b568f5
17 changed files with 2172 additions and 57 deletions

View File

@@ -1,11 +1,9 @@
import {
Container,
MoveDirection,
OutMode,
Engine
} from "@tsparticles/engine";
import {NgParticlesService, NgxParticlesModule} from "@tsparticles/angular";
import {Component} from '@angular/core';
import { Component, inject } from '@angular/core';
import {loadFull} from 'tsparticles';
@Component({
@@ -18,6 +16,8 @@ import {loadFull} from 'tsparticles';
styleUrl: './particles-bg.component.scss',
})
export class ParticlesBgComponent {
private readonly ngParticlesService = inject(NgParticlesService);
id = "tsparticles";
/* Starting from 1.19.0 you can use a remote url (AJAX request) to a JSON with the configuration */
@@ -92,7 +92,7 @@ export class ParticlesBgComponent {
detectRetina: true,*/
};
constructor(private readonly ngParticlesService: NgParticlesService) {}
async particlesInit(engine: Engine): Promise<void> {
await loadFull(engine);
}