Skip to content

About

containerbase eslint plugin

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

@containerbase/eslint-plugin

ESLint plugin with the containerbase lint rules.

Usage

Enable all rules with the all config in your eslint.config.js:

import containerbase from '@containerbase/eslint-plugin';

export default [containerbase.configs.all];

Or pick single rules:

import containerbase from '@containerbase/eslint-plugin';

export default [
  {
    plugins: { '@containerbase': containerbase },
    rules: {
      '@containerbase/enforce-ts-extension': 'error',
      '@containerbase/test-root-describe': 'error',
    },
  },
];

Rules

  • enforce-ts-extension: in TypeScript files, local imports and exports (relative or ~ aliased) use .ts instead of .js, and local paths in vi.mock and friends have a file extension. Fixable.
  • test-root-describe: the root describe of a spec file is named after its path, without src/, lib/ or test/ and the .spec.ts suffix. Fixable.

About

containerbase eslint plugin

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages