@code-rub/filter-files
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

@code-rub/filter-files plugin

Usage

Install with npm or yarn:

  • npm i --save-dev @code-rub/filter-files
  • yarn add --dev @code-rub/filter-files

Setup inside of your code-rub.config.js file:

  • Add @code-rub/filter-files to the plugins array.
  • Add an entry to pluginConfiguration with @code-rub/filter-files as the key.
    • Set up any bannedFileNames, bannedGlobPatterns, and allowedFileTypes inside of the config. Below is an example configuration, as used in this repository.
module.exports = {
  plugins: [
    '@code-rub/filter-files',
  ],
  pluginConfiguration: {
    '@code-rub/filter-files': {
      allowedFileExtensions: ['.ts', '.js'],
      bannedGlobPatterns: ['*.config.ts'],
      bannedFileNames: ['jest.config.js', 'code-rub.config.js', 'jest.preset.js'],
    },
  },
};

Readme

Keywords

none

Package Sidebar

Install

npm i @code-rub/filter-files

Weekly Downloads

85

Version

1.3.1

License

none

Unpacked Size

4.44 kB

Total Files

14

Last publish

Collaborators

  • agentender