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

@orion.ui/orion-linter

v1.0.6

Published

Linting based on Stylistic & Stylelint

Readme

@orion.ui/orion-linter

Shared linting configurations and custom rules for Orion UI projects. This package provides a unified code style guide using ESLint (with custom TypeScript and Vue rules) and Stylelint.

Features

  • ESLint:
    • TypeScript support
    • Vue.js 3 support
    • Stylistic rules
    • Custom rules for Orion architecture patterns
  • Stylelint:
    • LESS support
    • BEM naming convention
    • Property ordering (clean order)
    • Unit filtering

Installation

Install the package and its peer dependencies:

npm install -D @orion.ui/orion-linter eslint stylelint typescript

Usage

ESLint Configuration

Create an eslint.config.mjs file in your project root:

import { getESLintConfig } from '@orion.ui/orion-linter';
export default await getESLintConfig();

OR

import { getESLintConfig } from '@orion.ui/orion-linter';

const orionConfig = await getESLintConfig();

export default [
  ...orionConfig,
  {
    // Your custom overrides here
    rules: {
      // ...
    }
  }
];

Stylelint Configuration

Create a stylelint.config.mjs file in your project root:

import { getStylelintConfig } from '@orion.ui/orion-linter';
export default await getStylelintConfig();

OR

import { getStylelintConfig } from '@orion.ui/orion-linter';

const orionConfig = await getStylelintConfig();

export default {
  ...orionConfig,
  rules: {
    ...orionConfig.rules,
    // Your custom overrides here
  }
};

Custom ESLint Rules

This package includes several custom rules designed to enforce architectural patterns within Orion projects. All rules are prefixed with orion-rules/.

| Rule Name | Description | |-----------|-------------| | async-suffix | Enforces async functions to have an 'Async' suffix. | | class-name-match-filename | Ensures class names match their filenames. | | default-props-are-static-readonly | Enforces default props to be static readonly. | | events-are-in-camel-case | Enforces event names to be in camelCase. | | force-dynamic-vue-imports-in-router | Requires dynamic imports for Vue components in router files. | | force-dynamic-vue-imports-in-services | Requires dynamic imports for Vue components in services. | | get-set-adjacent | Enforces getters and setters to be defined adjacently. | | get-set-one-liner | Enforces simple getters and setters to be on a single line. | | no-api-in-entity | Prevents API usage inside Entity classes. | | no-api-in-setup | Prevents API usage inside Vue setup functions (use services instead). | | no-entity-in-service | Prevents Entity usage inside Service classes. | | no-export-type-in-ts | Disallows exporting types in .ts files (prefer .d.ts files). | | popables-are-readonly | Enforces "popable" properties to be readonly. | | private-property-if-only-in-template | Ensures properties not used in the template are marked as private. | | state-are-private-readonly | Enforces state properties to be private and readonly. | | template-refs-are-readonly | Enforces template refs to be readonly. |

Requirements

  • Node.js >= 18.12.0
  • ESLint >= 9.0.0
  • Stylelint >= 16.0.0
  • TypeScript >= 5.0.0

License

MIT