eslint-plugin-gatsby-no-static-queries

    1.0.1 • Public • Published

    ESLint-plugin-Gatsby-No-Static-Queries

    Build Status version downloads MIT License PRs Welcome

    Watch on GitHub Star on GitHub Tweet

    Ensure static queries are not used in Gatsby components This ensures you can safely use Conditional page builds.

    Installation

    You'll first need to install ESLint:

    $ npm i eslint --save-dev
    

    Next, install eslint-plugin-gatsby-no-static-queries:

    $ npm install eslint-plugin-gatsby-no-static-queries --save-dev
    

    Usage

    Add gatsby-no-static-queries to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

    {
        "plugins": [
            "gatsby-no-static-queries"
        ]
    }

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

    {
        "rules": {
            "gatsby-no-static-queries/nope": "error"
        }
    }

    Supported Rules

    • nope Don't use static queries

    Install

    npm i eslint-plugin-gatsby-no-static-queries

    DownloadsWeekly Downloads

    22

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    9.21 kB

    Total Files

    8

    Last publish

    Collaborators

    • larowlan