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

lyra-lint

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lyra-lint

Lyra lint

  • 1.5.0
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

lyra lint

Opinated linter library for React using styled-components ​

Installation

  1. Install lyra-lint package:
npm install --save-dev lyra-lint
  1. Add these lines to package.json: ​
"eslintConfig": {
   "extends": ["./node_modules/lyra-lint/.eslintrc.js"]
 },
 "stylelint": {
   "extends": "./node_modules/lyra-lint/stylelint.config.js"
 },

Usage

  1. Add these scripts to the package.json:
"eslint": "./node_modules/.bin/eslint \"src/**/*.{js,jsx}\"",
"stylelint": "./node_modules/.bin/stylelint \"src/**/*.{js,jsx}\"",
"format": "npm run prettier -- --write",
"prettier": "./node_modules/.bin/prettier \"src/**/*.{js,jsx,css,json}\"",
  1. Add as a new property in the package.json in order to find the .prettierrc config from the package:
  "name": "",
  "version": "",
  "description": "",
  "main": "",
  "scripts": {},
  "keywords": [],
  "author": "",
  "license": "",
  "eslintConfig": {},
  "stylelint": {},
  "prettier": "./node_modules/lyra-lint/.prettierrc.js",
  "husky": {},
  "lint-staged": {},
  "devDependencies": {}
Lint JS files
$ npm run eslint [options]
Fix JS files
$ npm run eslint -- --fix [options]
Format JS files
$ npm run format [options]
Lint Styled-Components
$ npm run stylelint [options]
Fix Styled-Components
$ npm run stylelint -- --fix [options]

Keywords

FAQs

Package last updated on 25 Mar 2020

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