Skip to content

Instantly share code, notes, and snippets.

@onlime
Created August 30, 2021 21:37
Show Gist options
  • Save onlime/4025b7535550b7a31c75f3ff89f926c5 to your computer and use it in GitHub Desktop.
Save onlime/4025b7535550b7a31c75f3ff89f926c5 to your computer and use it in GitHub Desktop.

Revisions

  1. onlime created this gist Aug 30, 2021.
    32 changes: 32 additions & 0 deletions .eslintrc.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    module.exports = {
    root: true,
    env: {
    browser: true,
    node: true,
    },
    parserOptions: {
    parser: '@babel/eslint-parser',
    requireConfigFile: false,
    },
    extends: [
    '@nuxtjs',
    'plugin:nuxt/recommended',
    'prettier'
    ],
    plugins: ['prettier'],
    rules: {
    'prettier/prettier': ['error'],
    'vue/html-indent': ['error', 4],
    'vue/singleline-html-element-content-newline': 0,
    'vue/component-name-in-template-casing': ['error', 'PascalCase'],
    'vue/valid-v-slot': [
    'error',
    {
    allowModifiers: true,
    },
    ],
    },
    globals: {
    _: true,
    },
    }
    3 changes: 3 additions & 0 deletions .prettierignore
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # Ignore artifacts:
    build
    coverage
    6 changes: 6 additions & 0 deletions .prettierrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    {
    "semi": false,
    "singleQuote": true,
    "tabWidth": 4,
    "printWidth": 120
    }
    13 changes: 13 additions & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    {
    "devDependencies": {
    "@babel/eslint-parser": "^7.15.0",
    "@nuxtjs/eslint-config": "^6.0.1",
    "@nuxtjs/eslint-module": "^3.0.2",
    "eslint": "^7.32.0",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-nuxt": "^2.0.0",
    "eslint-plugin-prettier": "^3.4.0",
    "eslint-plugin-vue": "^7.15.1",
    "prettier": "^2.3.2"
    }
    }
    12 changes: 12 additions & 0 deletions settings.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    {
    "vetur.format.defaultFormatter.html": "none",
    // Set the default
    "editor.formatOnSave": false,
    // Enable per-language
    "[javascript]": {
    "editor.formatOnSave": true
    },
    "[vue]": {
    "editor.formatOnSave": true
    }
    }