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

@thecolvinco/lint

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thecolvinco/lint

A package for easy control of all standardization of code and projects.

  • 1.1.26
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-92.31%
Maintainers
2
Weekly downloads
 
Created
Source

✍️ @thecolvinco/lint

A package for easy control of all standardization of code in all our projects.

View code format config here:

  • ESLint config
  • Stylelint config
  • Pretier config

🚀 Installation

npm install @thecolvinco/lint --save-dev

When you install the package, add the configuration of eslint and prettier in your package.json configuration.

{
  "prettier": "./node_modules/@thecolvinco/lint/.prettierrc.js",
  "eslintConfig": {
    "extends": ["./node_modules/@thecolvinco/lint/.eslintrc.js"]
  },
  "stylelint": {
    "extends": "./node_modules/@thecolvinco/lint/.stylelintrc.js"
  }
}

🅰️ Scripts

JS

When you execute the command they will only be launched for the the patern .js[x], .ts[x] files.

colvin-lint js

CSS

When you execute the command they will only be launched for the the patern .[s]css, .js[x], .ts[x] files.

colvin-lint css

Format JS and CSS files

It attempts to fix problems automatically. Similar to eslint --fix and stylelint --fix.

colvin-lint js --fix
colvin-lint css --fix

Only format staged files

Use flag for lint only staged files of a project. It is useful to reduce times in continuous integration, since the lining will only be carried out on the files that have been modified.

colvin-lint js --staged
colvin-lint css --staged

⌨️ IDE Extensions

Configure your extensions in your favourite editor:

Visual Studio Code

Configure VS Code preferences with esbenp.prettier-vscode

"editor.defaultFormatter": "esbenp.prettier-vscode"

FAQs

Package last updated on 02 Feb 2023

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