blacklake-code-style-guide
TypeScript icon, indicating that this package has built-in type declarations

1.1.10 • Public • Published

blacklake-code-style-guide

定制化代码风格指南,包含 prettier,eslint,stylelint 的配置文件合集

Use

eslint

in .eslintrc.js

module.exports = {
  extends: [require.resolve('blacklake-code-style-guide/dist/eslint')],

  // in antd-design-pro
  globals: {
    ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,
    page: true,
  },

  rules: {
    // your rules
  },
};

link

jsx-a11y

unicorn

stylelint

in .stylelintrc.js

module.exports = {
  extends: [require.resolve('blacklake-code-style-guide/dist/stylelint')],
  rules: {
    // your rules
  },
};

prettier

in .prettierrc.js

const fabric = require('blacklake-code-style-guide/dist/prettier');

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

Package Sidebar

Install

npm i blacklake-code-style-guide

Weekly Downloads

0

Version

1.1.10

License

MIT

Unpacked Size

28.6 kB

Total Files

17

Last publish

Collaborators

  • leomyili