eslint-plugin-k6-linting-rules

0.0.3 • Public • Published

eslint-plugin-k6-linting-rules

Linting rule set to support linting of k6 tests. View the project on npm View the project on GitHub

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-k6-linting-rules:

npm install eslint-plugin-k6-linting-rules --save-dev

Usage

Add k6-linting-rules to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "k6-linting-rules"
    ]
}

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

{
    "rules": {
        "k6-linting-rules/k6": 2
    }
}

Rules

As of version 0.0.1 this package adds the following rules:

    'import/no-unresolved': 0,
    'no-restricted-globals': 0,
    'import/extensions': 0,
    'no-prototype-builtins': 0,
    'semi': 1,
    'quotes': 2

Version History

0.0.3

No functional changes. Updates relate to automated workflows etc.

0.0.1

First release. Adds rules to eslint for support of linting k6 tests.

Package Sidebar

Install

npm i eslint-plugin-k6-linting-rules

Weekly Downloads

35

Version

0.0.3

License

ISC

Unpacked Size

6.34 kB

Total Files

10

Last publish

Collaborators

  • thequalityduck