@zebra-c/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

@zebra-c/eslint-config

支持 vue、react umi

安装

npm install @zebra-c/eslint-config -D

Vue

.eslintrc.js

Add to your eslint config (.eslintrc.js):

module.exports = {
  extends: [require.resolve("@zebra-c/eslint-config/dist/eslint.vue")]
};

.prettierrc.js

const fabric = require("@zebra-c/eslint-config");

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

React Umi

.eslintrc.js

module.exports = {
  extends: [require.resolve("@zebra-c/eslint-config/dist/eslint.umi")]
};

.prettierrc.js

const fabric = require("@zebra-c/eslint-config");

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

.prettierignore

**/*.svg
package.json
.umi
.umi-production
/dist
.dockerignore
.DS_Store
.eslintignore
*.png
*.toml
docker
.editorconfig
Dockerfile*
.gitignore
.prettierignore
LICENSE
.eslintcache
*.lock
yarn-error.log
.history

./src/styles/icons/**
.env
.env.local
**.sh

.eslintignore

/lambda/
/scripts
/config
.history
/src/styles/icons/
/static/
.stylelintrc.js
.prettierrc.js
.config/config.ts

.editorconfig

# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.gradle]
indent_size = 4

[BUCK]
indent_size = 4

Package Sidebar

Install

npm i @zebra-c/eslint-config

Weekly Downloads

4

Version

0.1.3

License

none

Unpacked Size

5.26 kB

Total Files

10

Last publish

Collaborators

  • wangchaoqun777
  • cjjlovedsn
  • azebra