2021-08-02 18:39:56 +01:00
|
|
|
// Copyright (C) 2021 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
node: true
|
|
|
|
},
|
2021-08-05 12:46:48 +01:00
|
|
|
extends: [
|
2021-08-10 14:11:11 +01:00
|
|
|
'plugin:vue/recommended',
|
2021-08-02 18:39:56 +01:00
|
|
|
'eslint:recommended',
|
|
|
|
'@vue/typescript/recommended',
|
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
|
|
|
2021-08-05 12:46:48 +01:00
|
|
|
"indent": ["warn", 4],
|
2021-08-10 14:11:11 +01:00
|
|
|
"vue/html-indent": ["warn", 4],
|
2021-08-05 12:46:48 +01:00
|
|
|
|
|
|
|
"@typescript-eslint/no-explicit-any": "off", // TODO: fix
|
|
|
|
|
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
"warn", {
|
|
|
|
"vars": "all",
|
|
|
|
"args": "all",
|
|
|
|
"argsIgnorePattern": "^_"
|
|
|
|
}],
|
|
|
|
|
|
|
|
'@typescript-eslint/no-empty-function': "off",
|
|
|
|
'@typescript-eslint/no-var-requires': "off",
|
2021-08-10 14:11:11 +01:00
|
|
|
|
|
|
|
"vue/max-attributes-per-line": ["off"],
|
|
|
|
"vue/singleline-html-element-content-newline": ["off"],
|
|
|
|
|
|
|
|
"vue/no-v-html": ["off"], // needs a dedicated fix
|
2021-08-12 14:04:46 +01:00
|
|
|
|
|
|
|
"vue/block-lang": ["error", {"script": {"lang": "ts"}}],
|
|
|
|
"vue/html-button-has-type": ["error"],
|
|
|
|
"vue/no-unused-properties": ["warn"],
|
|
|
|
"vue/no-unused-refs": ["warn"],
|
|
|
|
"vue/no-useless-v-bind": ["warn"],
|
2021-08-02 18:39:56 +01:00
|
|
|
},
|
|
|
|
}
|