eslint-plugin-test-filenames

0.0.1 • Public • Published

eslint-plugin-test-filenames

Add eslint rules to verify that test files meet standards

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-test-filenames:

$ npm install eslint-plugin-test-filenames --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-test-filenames globally.

Usage

Add test-filenames to the plugins section of your ESLint configuration file. You can omit the eslint-plugin- prefix:

---
plugins:
  - test-filenames

Then configure the rules you want to use under the rules section.

# ...

rules:
  - test-filenames/suffix: error

Supported Rules

List of supported rules

  • no-subdirs: Prevent directories within test directories
  • suffix: Require a filename suffix on every test file

/eslint-plugin-test-filenames/

    Package Sidebar

    Install

    npm i eslint-plugin-test-filenames

    Weekly Downloads

    340

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • spalger