eslint-plugin-expect-file
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

eslint-plugin-expect-file

Enforce the use of specific file name, extension, type, ...

Installation

pnpm add -D eslint eslint-plugin-expect-file

Usage

Add it to your .eslintrc.js:

module.exports = {
  plugins: ['expect-file'],
  rules: {
    'expect-file/name-to-match-extension': [
      'warn',
      {
        './source/**': ['.ts'],
        './test/**': ['.test.ts'],
      },
    ],
    'expect-file/path-to-match-pattern': [
      'warn',
      {
        './source/**': ['**/*.ts'],
        './test/**': ['**/*.test.ts'],
      },
    ],
  },
};

Scaffolded with @skarab/skaffold

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-expect-file

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

8.81 kB

Total Files

11

Last publish

Collaborators

  • skarab