eslint-plugin-k6-linting-rules

1.0.2 • 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.

/eslint-plugin-k6-linting-rules/

    Package Sidebar

    Install

    npm i eslint-plugin-k6-linting-rules

    Weekly Downloads

    306

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    7.51 kB

    Total Files

    11

    Last publish

    Collaborators

    • thequalityduck