New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tkc-fe/eslint-plugin-tkc-linting

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tkc-fe/eslint-plugin-tkc-linting

A group of custom ESLint rules specifically for The Keyholding Company

  • 0.0.62
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-75%
Maintainers
3
Weekly downloads
 
Created
Source
INTERNAL DEVELOPER GUIDE

TKC Linting

Introduction

This package contains a whole host of ESLint rules for the different packages on the frontend. Install the core package below then enable the rules that pertain to the type of package that is being developed.

Installation 🛠

yarn add @tkc-fe/eslint-plugin-tkc-linting or npm i @tkc-fe/eslint-plugin-tkc-linting

Add tkc-eslint to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "@tkc-fe/tkc-linting"
    ]
}

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

{
    "rules": {
        "@tkc-fe/tkc-linting/<rule-name>": 'warn' || ['error', ...args]
    }
}

Supported Rules ✍️

HEX Code Restriction 🎨

Limit HEX codes to a specific file to enforce usage of the theming hooks.

"@tkc-fe/tkc-linting/no-hex-codes": [
    'error'         // Warning Type
    'colors.ts'     // File name allowed to contain HEX values
]

Enforce TODO: Comments to contain a Monday.com ticket ID reference.

"@tkc-fe/tkc-linting/todo-monday-tickets": 'error' // Warning type

Force Translations over Text 📚

This forces, and also suggests translation options rather than using string literals within react projects.

"@tkc-fe/tkc-linting/force-translation-text": 'error' // Warning type

FAQs

Package last updated on 27 Jul 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