2018-07-27 17:31:39 +02:00
|
|
|
module.exports = {
|
2020-12-18 14:42:36 +01:00
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
commonjs: true,
|
2022-06-17 05:20:28 +02:00
|
|
|
es2021: true,
|
2020-12-18 14:42:36 +01:00
|
|
|
node: true,
|
|
|
|
mocha: true,
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:vue/recommended",
|
2021-07-12 19:25:37 +02:00
|
|
|
"prettier",
|
2020-12-18 14:42:36 +01:00
|
|
|
"plugin:prettier-vue/recommended",
|
|
|
|
],
|
|
|
|
|
|
|
|
settings: {
|
|
|
|
"prettier-vue": {
|
|
|
|
// Settings for how to process Vue SFC Blocks
|
|
|
|
SFCBlocks: {
|
|
|
|
template: false,
|
2020-12-18 16:59:34 +01:00
|
|
|
script: false,
|
|
|
|
style: false,
|
2020-12-18 14:42:36 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
// Use prettierrc for prettier options or not (default: `true`)
|
|
|
|
usePrettierrc: true,
|
|
|
|
|
|
|
|
// Set the options for `prettier.getFileInfo`.
|
|
|
|
// @see https://prettier.io/docs/en/api.html#prettiergetfileinfofilepath-options
|
|
|
|
fileInfoOptions: {
|
|
|
|
// Path to ignore file (default: `'.prettierignore'`)
|
|
|
|
// Notice that the ignore file is only used for this plugin
|
|
|
|
ignorePath: ".testignore",
|
|
|
|
|
|
|
|
// Process the files in `node_modules` or not (default: `false`)
|
|
|
|
withNodeModules: false,
|
|
|
|
},
|
2018-07-27 17:31:39 +02:00
|
|
|
},
|
2020-12-18 14:42:36 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
parserOptions: {
|
2022-06-17 05:20:28 +02:00
|
|
|
ecmaVersion: "latest",
|
2020-12-18 14:42:36 +01:00
|
|
|
sourceType: "module",
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
// 'comma-dangle': ['error', 'always-multiline'],
|
|
|
|
indent: ["error", 2, { SwitchCase: 1 }],
|
|
|
|
"linebreak-style": ["error", "unix"],
|
|
|
|
quotes: ["off", "double"], // Easier for Go developers!
|
|
|
|
semi: ["error", "always"],
|
|
|
|
"no-unused-vars": ["warn"],
|
|
|
|
"no-console": 0,
|
2020-12-18 14:55:10 +01:00
|
|
|
"no-case-declarations": 0,
|
2020-12-18 14:42:36 +01:00
|
|
|
"no-prototype-builtins": 0,
|
2023-03-24 19:34:40 +01:00
|
|
|
"vue/no-v-text-v-html-on-component": 0,
|
2022-05-27 16:06:43 +02:00
|
|
|
"vue/valid-model-definition": 0,
|
|
|
|
"vue/valid-attribute-name": 0,
|
2022-01-27 22:34:55 +01:00
|
|
|
"vue/first-attribute-linebreak": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
singleline: "ignore",
|
|
|
|
multiline: "ignore",
|
|
|
|
},
|
|
|
|
],
|
2020-12-18 14:42:36 +01:00
|
|
|
"prettier-vue/prettier": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
// Override all options of `prettier` here
|
|
|
|
// @see https://prettier.io/docs/en/options.html
|
|
|
|
printWidth: 100,
|
|
|
|
singleQuote: false,
|
|
|
|
semi: true,
|
|
|
|
trailingComma: "es5",
|
|
|
|
htmlWhitespaceSensitivity: "strict",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2019-05-09 06:18:22 +02:00
|
|
|
};
|