2021-08-02 18:09:54 +01:00
|
|
|
// Copyright (C) 2021 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
node: true
|
|
|
|
},
|
2021-08-04 11:26:43 +01:00
|
|
|
extends: [
|
2021-08-10 14:05:40 +01:00
|
|
|
'plugin:vue/recommended',
|
2021-08-02 18:09:54 +01:00
|
|
|
'eslint:recommended',
|
|
|
|
'@vue/typescript/recommended',
|
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020
|
|
|
|
},
|
2021-08-31 16:25:49 +01:00
|
|
|
plugins: ["storj"],
|
2021-08-02 18:09:54 +01:00
|
|
|
rules: {
|
2021-08-31 16:25:49 +01:00
|
|
|
"linebreak-style": ["error", "unix"],
|
|
|
|
|
2021-08-02 18:09:54 +01:00
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
|
|
|
2021-08-05 12:07:45 +01:00
|
|
|
"indent": ["warn", 4],
|
2021-08-10 14:05:40 +01:00
|
|
|
"vue/html-indent": ["warn", 4],
|
2021-08-04 11:26:43 +01:00
|
|
|
|
|
|
|
"@typescript-eslint/no-unused-vars": [
|
2021-08-05 12:07:45 +01:00
|
|
|
"warn", {
|
2021-08-04 11:26:43 +01:00
|
|
|
"vars": "all",
|
|
|
|
"args": "all",
|
|
|
|
"argsIgnorePattern": "^_"
|
|
|
|
}],
|
|
|
|
|
|
|
|
'@typescript-eslint/no-empty-function': "off",
|
|
|
|
'@typescript-eslint/no-var-requires': "off",
|
2021-08-10 14:05:40 +01:00
|
|
|
|
2022-03-29 15:18:11 +01:00
|
|
|
"vue/multi-word-component-names": ["off"],
|
2021-08-10 14:05:40 +01:00
|
|
|
"vue/max-attributes-per-line": ["off"],
|
|
|
|
"vue/singleline-html-element-content-newline": ["off"],
|
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-31 14:49:45 +01:00
|
|
|
|
2021-08-31 13:58:25 +01:00
|
|
|
'vue/no-unregistered-components': ['warn', { ignorePatterns: ['router-link', 'router-view'] }],
|
2021-08-31 16:25:49 +01:00
|
|
|
|
|
|
|
'storj/vue/require-annotation': 'warn',
|
2021-08-02 18:09:54 +01:00
|
|
|
},
|
|
|
|
}
|