@ice/spec
eslint/stylelint/editorconfig
Last updated 3 months ago by sobear .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @ice/spec 
SYNC missed versions from official npm registry.

spec

NPM version build status Test coverage NPM downloads David deps

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

Features

  • [x] eslint
  • [x] stylelint
  • [x] eslint support TypeScript
  • [x] commitlint
  • [x] prettier

Install

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

Usage

eslint rules

Create a .eslintrc.js

const { eslint } = require('@ice/spec');

module.exports = eslint;

eslint support TypeScript rules

Create a .eslintrc.js

const { tslint } = require('@ice/spec');

module.exports = tslint;

stylelint rules

in .stylelintrc.js

const { stylelint } = require('@ice/spec');

module.exports = stylelint;

prettier rules

in .prettierrc.js

const { prettier } = require('@ice/spec');

module.exports = prettier;

commitlint rules

in .commitlintrc.js

const { commitlint } = require('@ice/spec');

module.exports = commitlint;

FAQ

Custom config

const { eslint, deepmerge } = require('@ice/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

Current Tags

  • 1.0.0-3                                ...           beta (3 months ago)
  • 1.0.1                                ...           latest (3 months ago)

22 Versions

  • 1.0.1                                ...           3 months ago
  • 1.0.0                                ...           3 months ago
  • 1.0.0-3                                ...           3 months ago
  • 1.0.0-2                                ...           3 months ago
  • 1.0.0-1                                ...           3 months ago
  • 1.0.0-0                                ...           3 months ago
  • 0.1.9                                ...           6 months ago
  • 0.1.8                                ...           8 months ago
  • 0.1.7                                ...           9 months ago
  • 0.1.6                                ...           9 months ago
  • 0.1.6-0                                ...           10 months ago
  • 0.1.5                                ...           10 months ago
  • 0.1.4                                ...           a year ago
  • 0.1.4-beta.3                                ...           a year ago
  • 0.1.4-beta.2                                ...           a year ago
  • 0.1.4-0                                ...           a year ago
  • 0.1.4-beta.1                                ...           a year ago
  • 0.1.4-beta.0                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Downloads
Today 30
This Week 225
This Month 1,309
Last Day 77
Last Week 348
Last Month 1,649
Dev Dependencies (8)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |