Skip to content

Instantly share code, notes, and snippets.

@ChoWonmin
Last active February 23, 2021 12:42
Show Gist options
  • Save ChoWonmin/287356739c98980202fc9b22836c2639 to your computer and use it in GitHub Desktop.
Save ChoWonmin/287356739c98980202fc9b22836c2639 to your computer and use it in GitHub Desktop.

Revisions

  1. ChoWonmin revised this gist Feb 23, 2021. 2 changed files with 9 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions setting.json
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,7 @@
    // airbnb .vscode sttiong.json
    "editor.codeActionsOnSave": {
    // prettier .vscode sttiong.json
    {
    "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
    },
    "editor.formatOnSave": true,
    }
    4 changes: 4 additions & 0 deletions setting.json(airbnb)
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    // airbnb .vscode sttiong.json
    "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
    }
  2. ChoWonmin revised this gist Feb 23, 2021. 2 changed files with 5 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions setting.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    // airbnb .vscode sttiong.json
    "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
    }
    1 change: 1 addition & 0 deletions settiong.json
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    // prettier .vscode sttiong.json
    {
    "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  3. ChoWonmin created this gist Feb 9, 2021.
    7 changes: 7 additions & 0 deletions .editorconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    [*.{js,jsx,ts,tsx,vue}]
    indent_style = space
    indent_size = 2
    end_of_line = lf
    trim_trailing_whitespace = true
    insert_final_newline = true
    max_line_length = 100
    18 changes: 18 additions & 0 deletions .eslintrc.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    // default
    module.exports = {
    root: true,
    env: {
    node: true
    },
    'extends': [
    'plugin:vue/essential',
    'eslint:recommended'
    ],
    rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
    },
    parserOptions: {
    parser: 'babel-eslint'
    }
    }
    18 changes: 18 additions & 0 deletions airbnb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    // airbnb
    module.exports = {
    root: true,
    env: {
    node: true,
    },
    extends: [
    'plugin:vue/essential',
    '@vue/airbnb',
    ],
    parserOptions: {
    parser: 'babel-eslint',
    },
    rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
    },
    };
    15 changes: 15 additions & 0 deletions prettier
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    // prettier
    module.exports = {
    root: true,
    env: {
    node: true
    },
    extends: ["plugin:vue/essential", "eslint:recommended", "@vue/prettier"],
    parserOptions: {
    parser: "babel-eslint"
    },
    rules: {
    "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
    "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
    }
    };
    6 changes: 6 additions & 0 deletions settiong.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    {
    "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
    },
    "editor.formatOnSave": true,
    }