zoukankan      html  css  js  c++  java
  • 团队协作editconfig与eslint

    editconfig

    root = true
    
    [*]
    charset = utf-8
    indent_style = space
    indent_size = 2
    end_of_line = lf
    insert_final_newline = true
    trim_trailing_whitespace = true
    
    

    .eslintrc

    module.exports = {
        root: true,
        parserOptions: {
            parser: 'babel-eslint'
        },
        env: {
            browser: true,
        },
        extends: [
            // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
            // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
            'plugin:vue/essential',
            // https://github.com/standard/standard/blob/master/docs/RULES-en.md
            'standard'
        ],
        // required to lint *.vue files
        plugins: [
            'vue'
        ],
        // add your custom rules here
        rules: {
            // allow async-await
            'generator-star-spacing': 'off',
            'object-curly-spacing': 'off',
            // allow debugger during development
            'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
        }
    };
    
    
  • 相关阅读:
    正课day04
    正科day03
    正课day02
    正课day01
    预科day08
    Elasticsearch之-文档操作
    Elasticsearch之-映射管理
    Elasticsearch之-索引操作
    Elasticsearch之-倒排索引
    es安装官方,第三方插件
  • 原文地址:https://www.cnblogs.com/raind/p/11098188.html
Copyright © 2011-2022 走看看