@fe6/norm
fe6 的代码美化
Last updated a month ago by fe6 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @fe6/norm 
SYNC missed versions from official npm registry.

norm

一个包含 prettier,eslint,stylelint 的配置文件合集,统一美化标准。

@fe6/norm NPM downloads GitHub code size in bytes GitHub

使用

JavaScriptVue 2.x 项目中的 .eslintrc.js

module.exports = {
  extends: [require.resolve('@fe6/norm/src/eslint/vue2-js')],
  rules: {
    // your rules
  },
};

TypeScriptVue 2.x 项目中的 .eslintrc.js

module.exports = {
  extends: [require.resolve('@fe6/norm/src/eslint/vue2-ts')],
  rules: {
    // your rules
  },
};

在普通的 JavaScript 项目中的 .eslintrc.js

module.exports = {
  extends: [require.resolve('@fe6/norm/src/eslint/js')],
  rules: {
    // your rules
  },
};

在有 jest 普通的 JavaScript 项目中的 .eslintrc.js

module.exports = {
  extends: [require.resolve('@fe6/norm/src/eslint/jest')],
  rules: {
    // your rules
  },
};

.stylelintrc.js

module.exports = {
  extends: [require.resolve('@fe6/norm/src/stylelint')],
  rules: {
    // your rules
  },
};

.prettierrc.js

const prettier = require('@fe6/norm/src/prettier');

module.exports = {
  ...prettier,
};

Current Tags

  • 2.0.5                                ...           latest (a month ago)

14 Versions

  • 2.0.5                                ...           a month ago
  • 2.0.4                                ...           a month ago
  • 2.0.3                                ...           a month ago
  • 2.0.2                                ...           a month ago
  • 2.0.1                                ...           a month ago
  • 2.0.0                                ...           a month ago
  • 1.0.7                                ...           5 months ago
  • 1.0.6                                ...           5 months ago
  • 1.0.5                                ...           5 months ago
  • 1.0.4                                ...           5 months ago
  • 1.0.3                                ...           5 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 14
Last Day 0
Last Week 14
Last Month 73
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |