New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

saber-spec

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saber-spec

eslint/stylelint/editorconfig

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

spec

NPM version NPM downloads

Easy to use eslint/stylelint/prettier. And spec means specification.

Features

  • eslint
  • stylelint
  • eslint support TypeScript
  • commitlint
  • prettier

Install

$ npm i --save-dev saber-spec eslint stylelint @commitlint/cli

Usage

eslint rules

Create a .eslintrc.js

const { eslint } = require('saber-spec');

module.exports = eslint;

eslint support TypeScript rules

Create a .eslintrc.js

const { tslint } = require('saber-spec');

module.exports = tslint;

stylelint rules

in .stylelintrc.js

const { stylelint } = require('saber-spec');

module.exports = stylelint;

prettier rules

in .prettierrc.js

const { prettier } = require('saber-spec');

module.exports = prettier;

commitlint rules

in .commitlintrc.js

const { commitlint } = require('saber-spec');

module.exports = commitlint;

FAQ

Custom config

const { eslint, deepmerge } = require('saber-spec');

module.exports = deepmerge(eslint, {
  rules: {
    // custom config
  },
});

Error: Cannot find module 'eslint-plugin-foo'

Eslint is not yet supported having plugins as dependencies in shareable config. issue. As a temporary solution, you need add the plugin to devDependencies in your project, like npm i --save-dev eslint-plugin-jsx-a11y.

Warning: incorrect peer dependency "eslint-plugin-react-hooks@^1.7.0"

issue

FAQs

Package last updated on 18 Apr 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