Socket
Socket
Sign inDemoInstall

@ttab/coffeescript-style

Package Overview
Dependencies
0
Maintainers
6
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ttab/coffeescript-style

TT AB Linter for coffeescript


Version published
Weekly downloads
90
Maintainers
6
Install size
17.5 kB
Created
Weekly downloads
 

Readme

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

Last updated on 25 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc