Created
May 6, 2022 15:28
-
-
Save lloydjatkinson/c4fad7783915d573f816c9bc7f1f25b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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