Skip to content

Instantly share code, notes, and snippets.

View abalad's full-sized avatar
🏠
Working from home

Maicon Wagner abalad

🏠
Working from home
View GitHub Profile
@abalad
abalad / config.md
Created April 20, 2024 18:30 — forked from eneajaho/config.md
Angular ESLint & Prettier Configuration

Install Angular ESLint

ng add @angular-eslint/schematics

Install Prettier and Prettier-ESLint dependencies

npm install prettier prettier-eslint eslint-config-prettier eslint-plugin-prettier --save-dev

ESLint configuration

Filename: .eslintrc.json

import { Sails } from './sails';
import { SailsModel } from './sails.model';
import { SailsRequest } from './sails.request';
import { SailsModelInterface } from './sails.model.interface';
import { RequestCriteria } from './sails.request.criteria';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { SailsResponse } from './sails.response';
export class SailsQuery<T extends SailsModelInterface, U extends SailsModelInterface = T&{ new(): T }> {
import SailsIO from 'sails.io.js';
import * as SocketIO from 'socket.io-client';
import { SailsResponse } from './sails.response';
import { SailsConfig } from './sails.config';
import { Inject, InjectionToken, Injector } from '@angular/core';
import { SailsIOClient } from './sails.io.client';
import { SailsInterceptorConstructor, SailsInterceptorInterface } from './sails.interceptor';
import { SailsInterceptorHandler, SailsInterceptorHandlerInterface } from './sails.interceptor.handler';
import { SailsOptions } from './sails.options';
import { isString } from './utils';
import { NgxsEntityStateModel } from '../../shared/plugins/ngrx-entity/ngxs-entity.state.model';
import { NgxsEntityAdapter } from '../../shared/plugins/ngrx-entity/ngxs-entity.adapter';
import { LoadUsuariosSuccess, AddUserSuccess, UpdateUserSuccess, RemoveUserSuccess } from './user.actions';
export class UserStateModel extends NgxsEntityStateModel<UserModel> {}
@State<UserStateModel>({
name: 'user',
defaults: UserStateModel.InitialState()
/*
MIT License
Copyright (c) 2018 Temainfo Sistemas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
/*
MIT License
Copyright (c) 2018 Temainfo Sistemas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is