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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user