Skip to content

Instantly share code, notes, and snippets.

@thaycacac
Last active June 21, 2019 01:30
Show Gist options
  • Save thaycacac/d93a0068f359a7456aff5785d2edea4e to your computer and use it in GitHub Desktop.
Save thaycacac/d93a0068f359a7456aff5785d2edea4e to your computer and use it in GitHub Desktop.
Config project nuxtjs
yarn add -D @nuxtjs/eslint-config babel-eslint eslint eslint-config-standard eslint-loader eslint-plugin-babel eslint-plugin-import eslint-plugin-node eslint-plugin-prettier eslint-plugin-promise eslint-plugin-standard eslint-plugin-vue prettier

File .eslintrc.js

module.exports = {
  root: true,
  env: {
    browser: true,
    node: true,
  },
  parserOptions: {
    parser: 'babel-eslint',
  },
  extends: [
    '@nuxtjs',
    'plugin:vue/recommended',
    'plugin:prettier/recommended',
    'prettier/vue',
  ],
  plugins: ['prettier'],
  // add your custom rules here
  rules: {
    'no-console': 'off',
    'vue/no-v-html': 'off',
    'no-useless-return': 'off',
  },
}

File .prettierrc

{
  "semi": false,
  "singleQuote": true,
  "trailingComma": "all"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment