Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lloydjatkinson/b9550190ec0a259f4ab4f47bd927e153 to your computer and use it in GitHub Desktop.
Save lloydjatkinson/b9550190ec0a259f4ab4f47bd927e153 to your computer and use it in GitHub Desktop.
/* eslint-disable quote-props */
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/base',
'plugin:vue/vue3-essential',
'plugin:vue/vue3-recommended',
'plugin:vue/vue3-strongly-recommended',
'@vue/typescript/recommended',
'@vue/airbnb',
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'object-shorthand': ['error', 'always'],
indent: ['error', 4],
'linebreak-style': 'off',
'eol-last': ['error', 'never'],
'max-len': ['error', { code: 450 }],
'space-before-function-paren': ['error', 'always'],
'vue/html-indent': ['error', 4, {
attribute: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: [],
}],
'vue/html-closing-bracket-newline': ['error', {
singleline: 'never',
multiline: 'never',
}],
'vue/new-line-between-multi-line-property': ['error', {
'minLineOfMultilineProperty': 2,
}],
'vue/multi-word-component-names': 'off',
// These are weird inconsistencies between eslint and typescript eslint integration. Need to make some GitHub issues.
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: {
jest: true,
},
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment