eslint-plugin-remove-test-urls

1.0.2 • Public • Published

eslint-plugin-remove-test-urls

This plugin finds any test urls from your project and warns you about them.

Installation

npm i eslint-plugin-remove-test-urls

or

yarn add eslint-plugin-remove-test-urls

Usage

Add below changes to .eslintrc.js file

module.exports = {
  ...
  plugins: [
    ...
   'remove-test-urls'
  ],
  ...
  rules: {
    "remove-test-urls/remove-test-urls": [
      'warn',
      {
        domains: ['domain.com'],
        subdomains: ['dev', 'staging', 'test'], // if you want to add subdomains add elements here, otherwise keep empty array
        exceptFileNameContains: ['test', 'mock'], // exclude files that contains these items in their names
      }
    ],
    ...
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Package Sidebar

Install

npm i eslint-plugin-remove-test-urls

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

3.87 kB

Total Files

4

Last publish

Collaborators

  • fuadpashayev