19852a767b
After migrating to eslint some errors were disabled to make it easier to migrate. This enables all the lint rules and treats all warnings as a build failure. Similarly, CI won't automatically try to fix mistakes. Change-Id: Iff9c4a59401900fc395cd566dd328f3a9c688a12
35 lines
905 B
JavaScript
35 lines
905 B
JavaScript
// Copyright (C) 2021 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true
|
|
},
|
|
extends: [
|
|
'plugin:vue/essential',
|
|
'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],
|
|
|
|
"@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",
|
|
},
|
|
} |