Skip to content

Instantly share code, notes, and snippets.

@davemerwin
Last active May 28, 2020 22:14
Show Gist options
  • Save davemerwin/a256a2f5fba56f2c8ed5ead83aa297ab to your computer and use it in GitHub Desktop.
Save davemerwin/a256a2f5fba56f2c8ed5ead83aa297ab to your computer and use it in GitHub Desktop.
Some sane defaults for a Nuxtjs, eslintrc file for VSCode
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
'@nuxtjs',
'prettier',
'prettier/vue',
'eslint:recommended',
// 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/recommended',
'plugin:prettier/recommended',
'plugin:nuxt/recommended'
],
// required to lint *.vue files
plugins: [
'vue'
],
// add your custom rules here
rules: {
'semi': [2, 'never'],
'no-console': 'off',
'camelcase': 'off',
'vue/max-attributes-per-line': 'off',
'vue/html-self-closing': 'off',
'vue/singleline-html-element-content-newline': 'off',
'prettier/prettier': ['error', {
'semi': false,
'endOfLine': 'auto'
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment