1.0.2 • Published 10 months ago

eslint-plugin-k6-linting-rules v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

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.

1.0.2

10 months ago

1.0.1

11 months ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago