0889866b17
Some linters do not work properly without those annotations. This was done with a batch replace. Also needed to turn off two lint rules, they will be re-enabled in the followup change. This way the batch change can be clearly separated from manual modifications. Change-Id: I891ae09689520edaba5588c1f2206766db2d2b90
46 lines
1.3 KiB
JavaScript
46 lines
1.3 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",
|
|
|
|
"vue/max-attributes-per-line": ["off"],
|
|
"vue/singleline-html-element-content-newline": ["off"],
|
|
|
|
"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"],
|
|
|
|
"vue/one-component-per-file": ["off"],
|
|
"vue/no-unused-components": ["off"],
|
|
},
|
|
} |