npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@team23/eslint-config-team23-angular

v18.0.2

Published

A set of eslint rules used by TEAM23 for angular projects

Downloads

279

Readme

eslint-config-team23-angular

A comprehensive ESLint configuration used by TEAM23 for maintaining consistent and strict angular coding standards.

Installation

Add the library to your package.json as a devDependency:

npm i --save-dev @team23/eslint-config-team23-angular

To use the shareable config, import the package inside an eslint.config.js file and add it to the exported array:

// eslint.config.js (ES Module)
import { createAngularEslintConfig } from "@team23/eslint-config-team23-angular";

export default [
    ...createAngularEslintConfig(),
];
// eslint.config.js (CommonJS)
const { createAngularEslintConfig } = require('@team23/eslint-config-team23-angular');

module.exports = [
    ...createAngularEslintConfig(),
];

Overriding Settings

You can override settings from the shareable config by adding them directly into your eslint.config.js file after importing the shareable config. For example:

// eslint.config.js
import { createAngularEslintConfig } from "@team23/eslint-config-team23-angular";

export default [
    ...createAngularEslintConfig(),

    // Any settings added here will override team23Angular
    {
        rules: {
            "@angular-eslint/template/cyclomatic-complexity": "error",
        }
    }
];

Compatibility

Nx

If you are extending plugin:@nx/angular in your eslint config, you will use the FlatCompat utility make them available in your flat config. (See the migration guide for more on this process.) While the Nx config can be used this way in parallel with the team23 Angular config, both configs define the plugin @angular-eslint, which is not allowed. To use both configs, you can overwrite the plugins parameter in the FlatCompat result:

// eslint.config.js
import { createAngularEslintConfig } from "@team23/eslint-config-team23-angular";

// Prepare compat following the migration guide
// [...]

export default [
    ...createAngularEslintConfig(),

    ...compat
        .extends('plugin:@nx/angular')
        .map(config => ({
            ...config,
            // Replace the plugins object to prevent redefining
            plugins: {},
        })),
];

Development

Creating a new version after rule changes

  1. Update CHANGELOG.md.
  2. Run npm version [ | major | minor | patch] -m "feat(core): ".
  3. Push commits and tags.
  4. Run npm publish --access public to publish the new version to npm.