Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kablamo/eslint-plugin

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kablamo/eslint-plugin

`yarn add -D @kablamo/eslint-plugin`

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
312
increased by80.35%
Maintainers
6
Weekly downloads
 
Created
Source

Kablamo eslint plugin

yarn add -D @kablamo/eslint-plugin

Add the following to your .eslintrc.js.

module.exports = {
  plugins: ["@kablamo"],
  extends: ["plugin:@kablamo/recommended"],
};

Rules

test-id-prefix-match-path

This rule fixes the first argument of createTestIds(prefix, [ ...ids]) to be a prefix derived from the files current directory. This ensures consistent unique prefixes per component.

You can still suffix variables to the end of your test id for example data-testid={\${testId.myId}-${uuid}`}`.

test-id-consistent-naming

This rule ensures common misspellings always get fixed to the kebab-case data-testid by default.

This can be configured to data-test-id.

module.exports = {
  plugins: ["@kablamo"],
  extends: ["plugin:@kablamo/recommended"],
  rules: {
    "@kablamo/test-id-consistent-naming": ["error", "data-test-id"],
  },
};

Configurations

This plugin contains a reccomended elsint ruleset to enable the included rules.

Developing

Run yarn test from the root of the project.

FAQs

Package last updated on 15 Feb 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc