Commit 95953644 authored by Daniel Eggert's avatar Daniel Eggert
Browse files

updated eslint config

parent 5fafb670
module.exports = {
// https://eslint.org/docs/user-guide/configuring#using-configuration-files-1
root: true,
// https://eslint.org/docs/user-guide/configuring#specifying-environments
env: {
browser: true,
node: true,
jest: true
},
// https://eslint.org/docs/user-guide/configuring#specifying-parser
parser: 'vue-eslint-parser',
// https://vuejs.github.io/eslint-plugin-vue/user-guide/#faq
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2017,
sourceType: 'module',
project: './tsconfig.json'
},
// https://eslint.org/docs/user-guide/configuring#extending-configuration-files
// order matters: from least important to most important in terms of overriding
// Prettier + Vue: https://medium.com/@gogl.alex/how-to-properly-set-up-eslint-with-prettier-for-vue-or-nuxt-in-vscode-e42532099a9c
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/recommended',
'prettier',
'prettier/vue',
'prettier/@typescript-eslint'
],
// https://eslint.org/docs/user-guide/configuring#configuring-plugins
plugins: ['vue', '@typescript-eslint'],
rules: {
"@typescript-eslint/no-empty-interface": 1,
// https://github.com/typescript-eslint/typescript-eslint/issues/103
"@typescript-eslint/no-parameter-properties": 0,
"no-console": "off",
}
};
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:vue/essential",
"standard"
],
"parserOptions": {
"ecmaVersion": 12,
"parser": "@typescript-eslint/parser",
"sourceType": "module"
},
"plugins": [
"vue",
"@typescript-eslint"
],
"rules": {
"space-before-function-paren": ["error", "always"],
"no-useless-constructor": "off"
}
}
{
"semi": true,
"singleQuote": true
}
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment