Socket
Book a DemoInstallSign in
Socket

@datawrapper/eslint-config

Package Overview
Dependencies
Maintainers
16
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@datawrapper/eslint-config

Shared eslint-config for Datawrapper projects

0.2.2
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
16
Weekly downloads
 
Created
Source

A shared set of eslint rules to be used across Datawrapper projects.

To use this config, install it via NPM:

npm install -D @datawrapper/eslint-config

Then you can include it in your project's eslint configuration, which most probably lives in its package.json:

"eslintConfig": {
    "extends": "@datawrapper/eslint-config"
}

For chart embeds, there is a particular restrictive set of rules that limits the use of certain window and document attributes:

"eslintConfig": {
    "extends": "@datawrapper/eslint-config/chart-plugin"
}

This config does not include the necessary parser and plugins for use with Svelte. Here's how the eslint-config for a chart plugin would look in practice:

"eslintConfig": {
    "parser": "babel-eslint",
    "extends": [
        "@datawrapper/eslint-config/chart-plugin",
        "plugin:@tivac/svelte/svelte"
    ],
    "plugins": [
        "html",
        "@tivac/svelte"
    ]
},

FAQs

Package last updated on 31 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.