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

@ttab/coffeescript-style

Package Overview
Dependencies
Maintainers
6
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ttab/coffeescript-style

TT AB Linter for coffeescript

  • 0.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
6
Weekly downloads
 
Created
Source

#CoffeeScript Style Guide

  • Custom Rules
  • How To Use

This Style Guide is based on this one

Custom linter rules

Differences from the default CoffeeScript linter are

{
  "arrow_spacing": {
    "level": "warn"
  },
  "no_trailing_whitespace": {
    "level": "warn"
  },
  "max_line_length": {
    "value": 120,
    "level": "warn"
  },
  "indentation": {
    "value": 4
  },
  "colon_assignment_spacing": {
    level: "ignore",
  },
  "no_empty_param_list": {
    "level": "warn"
  },
  "space_operators": {
    "level": "warn"
  }
}

How to use in a project

Add as a dev dependency

npm i --dev @ttab/coffeescript-style

or

yarn add -D @ttab/coffeescript-style

Add a local coffeelint.json file in the root folder on your project that extends this linter config

{
    "extends": "@ttab/coffeescript-style"
}

Add a script in package.json

"scripts": {
    "lint": "coffeelint ./**/*.coffee",
}

Run the linter with

npm run lint

or

yarn lint

FAQs

Package last updated on 25 Apr 2024

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