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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@floracodex/eslint-config

v1.1.2

Published

Shared ESLint flat-config presets for Flora Codex TypeScript projects (lib, backend, frontend, functions)

Downloads

660

Readme

@floracodex/eslint-config

Shared ESLint flat-config presets for Flora Codex TypeScript projects.

This package exists to keep Flora Codex's projects on a single, consistent ESLint configuration. It is published publicly so our consumers can install it from npm. It is not a community-facing project — issues, feature requests, and PRs are not actively triaged from outside contributors.

Presets

Four presets, exported as separate subpaths so consumers only pull in the dependencies they need.

| Preset | Subpath | For | |---|---|---| | lib | @floracodex/eslint-config/lib | Standalone TypeScript libraries (Node ≥20, no framework) — strict rules | | backend | @floracodex/eslint-config/backend | Backend service applications — lax rules, *.spec.ts overrides, jest globals, CommonJS | | frontend | @floracodex/eslint-config/frontend | Frontend apps and libs — browser + jasmine globals, HTML template rules | | functions | @floracodex/eslint-config/functions | Cloud function runtimes (Node 20) — node + jest globals, CommonJS, default-export friendly |

The lib preset is intentionally stricter than the application presets (severity = error on safety rules; the app presets downgrade them to warn to accommodate codebases that aren't fully strict-typed yet).

Install

npm install --save-dev @floracodex/eslint-config eslint

ESLint itself is a peer dependency. Plugin dependencies (typescript-eslint, @stylistic/eslint-plugin, globals, @eslint/js, angular-eslint) ship as transitive dependencies — consumers do not need to install them directly.

Usage

lib

// eslint.config.mjs
import {createConfig} from '@floracodex/eslint-config/lib';

export default createConfig({
    rootDir: import.meta.dirname,
    tsconfigs: ['./tsconfig.json', './tsconfig.test.json']
});

backend

import {createConfig} from '@floracodex/eslint-config/backend';

export default createConfig({
    rootDir: import.meta.dirname
});

frontend

import {createConfig} from '@floracodex/eslint-config/frontend';
import tseslint from 'typescript-eslint';

export default tseslint.config(
    ...createConfig({rootDir: import.meta.dirname}),
    {
        files: ['**/*.ts'],
        rules: {
            '@angular-eslint/component-selector': ['warn', {type: 'element', prefix: 'fc', style: 'kebab-case'}],
            '@angular-eslint/directive-selector': ['warn', {type: 'attribute', prefix: 'fc', style: 'camelCase'}]
        }
    }
);

The frontend preset deliberately does not enforce a component selector prefix — projects set their own.

functions

import {createConfig} from '@floracodex/eslint-config/functions';

export default createConfig({
    rootDir: import.meta.dirname
});

Factory options

interface CreateConfigOptions {
    rootDir: string;          // pass import.meta.dirname
    tsconfigs?: string[];     // explicit `parserOptions.project` paths; falls back to projectService when omitted
    ignores?: string[];       // appended to the preset's defaults
}

Overrides

Each preset returns a flat-config array. Spread it and append your own blocks:

import {createConfig} from '@floracodex/eslint-config/backend';
import tseslint from 'typescript-eslint';

export default tseslint.config(
    ...createConfig({rootDir: import.meta.dirname}),
    {
        files: ['scripts/**'],
        rules: {'no-console': 'off'}
    }
);

Versioning

  • major — rule semantic change (a previously passing codebase may now fail)
  • minor — new rules, plugin upgrades that are non-semantic
  • patch — bugfixes, doc-only

Plugin versions are pinned internally; consumers pick up upgrades via npm update.

Build before lint

The package's own eslint.config.mjs imports createConfig from ./dist/lib.js — ESLint cannot load the config until dist/ has been built. Run npm run build before npm run lint in this repo. The config file itself is not linted (it is in the default ignore list); the constraint is purely about ESLint being able to resolve the runtime import.

License

MIT — Copyright Flora Codex, LLC.