Git Product home page Git Product logo

alpine's Introduction

个人博客 Tangzuo

点击查看

启动

//安装依赖
npm install

//服务器环境
npm run build
npm run server

//开发环境
npm run start

开发规范

请启用 prettier 插件,在文件保存时会自动规范代码

vscode

插件->prettier->安装

webstorm

file->setting->搜索 prettier->启用 prettier 插件,并指定 prettier 包地址(需要本地全局安装 prettier 包)->fileWatcher->add 添加 prettier 文件监听,指定 perttier.cmd 执行文件位置

备忘录

开启 eslint

#安装eslint相关包
npm i babel-eslint eslint eslint-config-airbnb eslint-config-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react

eslint 配置

{
  "parser": "babel-eslint",
  "parserOptions": {
    "sourceType": "module",
    "allowImportExportEverywhere": true
  },
  "extends": ["airbnb", "prettier"],
  "env": {
    "browser": true,
    "node": true
  },
  "rules": {
    "arrow-parens": ["off"],
    "consistent-return": "off",
    "comma-dangle": "off",
    "generator-star-spacing": "off",
    "jsx-a11y/anchor-is-valid": "off",
    "no-console": "off",
    "no-use-before-define": "off",
    "no-multi-assign": "off"
  },
  "plugins": ["import", "react"],
  "settings": {
    "import/resolver": {
      "webpack": {
        "config": "../webpack.config.eslint.js"
      }
    }
  }
}

alpine's People

Contributors

53able avatar ahmedkandel avatar allmarkedup avatar atomgiant avatar bekliev avatar bencroker avatar benfurfie avatar bennash avatar calebporzio avatar calinou avatar dmitrybubyakin avatar erikscheepers avatar felixsc avatar hugodf avatar jokarz avatar jonaskuske avatar jreviews avatar julioocamargoo avatar keyurshah avatar lancebutler2 avatar marvinified avatar monkenwu avatar muzafferdede avatar philippbosch avatar rhengles avatar ryangjchandler avatar simotod avatar thiagomajesk avatar thormeier avatar zupolgec avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.