e43af5eb3d
Fixes two things: All button tags must have type field specified, otherwise it defaults to submit, which is mostly not correct for our site. Disallows unused refs. Change-Id: I28bb44aab9c153f83fec16fc4023a453444c3926
47 lines
1.4 KiB
JavaScript
47 lines
1.4 KiB
JavaScript
// Copyright (C) 2021 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true
|
|
},
|
|
extends: [
|
|
'plugin:vue/recommended',
|
|
'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',
|
|
|
|
"indent": ["warn", 4],
|
|
"vue/html-indent": ["warn", 4],
|
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn", {
|
|
"vars": "all",
|
|
"args": "all",
|
|
"argsIgnorePattern": "^_"
|
|
}],
|
|
|
|
'@typescript-eslint/no-empty-function': "off",
|
|
'@typescript-eslint/no-var-requires': "off",
|
|
|
|
'@typescript-eslint/no-explicit-any': "off", // TODO: not everything has been fixed yet
|
|
|
|
"vue/max-attributes-per-line": ["off"],
|
|
"vue/singleline-html-element-content-newline": ["off"],
|
|
|
|
"vue/no-v-html": ["off"], // needs a dedicated fix
|
|
|
|
"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"],
|
|
},
|
|
} |