storj/web/storagenode/.eslintrc.js
Egon Elbre abf6bf9507 web/storagenode: enable vue/recommended linting
Change-Id: I0efefb9fdc1056ea3fb6d94951f8bb0231695aaa
2021-08-11 11:10:51 +03:00

41 lines
1.1 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-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",
"vue/max-attributes-per-line": ["off"],
"vue/singleline-html-element-content-newline": ["off"],
"vue/no-v-html": ["off"], // needs a dedicated fix
},
}