run prettier

This commit is contained in:
Mutasem 2021-08-25 10:53:06 +02:00
parent aca588881f
commit 7141e4e513
6 changed files with 25 additions and 61 deletions

View file

@ -3,15 +3,12 @@ module.exports = {
env: {
node: true,
},
'extends': [
'plugin:vue/essential',
'@vue/typescript',
],
extends: ['plugin:vue/essential', '@vue/typescript'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'semi': [2, 'always'],
'indent': ['error', 'tab'],
semi: [2, 'always'],
indent: ['error', 'tab'],
'comma-dangle': ['error', 'always-multiline'],
'no-tabs': 0,
'no-labels': 0,

View file

@ -1,6 +1,6 @@
module.exports = {
presets: ['@vue/cli-plugin-babel/preset'],
plugins: [
["@babel/plugin-proposal-private-property-in-object", { "loose": true }],
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
],
};

View file

@ -262,8 +262,8 @@
--border-radius-base: 4px;
--border-radius-small: 2px;
--border-color-base: var(--color-foreground-base);
--border-color-light: var(--color-foreground-light);
--border-color-base: var(--color-foreground-base);
--border-color-light: var(--color-foreground-light);
--border-style-base: solid;
--border-width-base: 1px;

View file

@ -14,7 +14,8 @@ $loading-overlay-background-color: rgba(255, 255, 255, 0.35);
white-space: nowrap;
cursor: pointer;
border: var(--border-width-base) var.$button-border-color var(--border-style-base);
border: var(--border-width-base) var.$button-border-color
var(--border-style-base);
color: var.$button-font-color;
background-color: var.$button-background-color;
font-weight: var(--font-weight-bold);
@ -74,7 +75,7 @@ $loading-overlay-background-color: rgba(255, 255, 255, 0.35);
@include mixins.when(round) {
--button-border-radius: 20px;
}
}
@include mixins.when(circle) {
--button-padding-vertical: var(--spacing-xs);

View file

@ -668,7 +668,10 @@ $button-mini-padding-horizontal: 15px;
$button-font-color: var(--button-color, var(--color-text-xlight));
$button-background-color: var(--button-background-color, var(--color-primary));
$button-active-color: var(--button-active-color, var(--color-text-xlight));
$button-active-border-color: var(--button-active-border-color, var(--color-primary-shade-1));
$button-active-border-color: var(
--button-active-border-color,
var(--color-primary-shade-1)
);
$button-active-background-color: var(
--button-active-background-color,
var(--color-primary-shade-1)

View file

@ -1,17 +1,11 @@
{
"linterOptions": {
"exclude": [
"node_modules/**/*",
"../../node_modules/**/*"
]
"exclude": ["node_modules/**/*", "../../node_modules/**/*"]
},
"defaultSeverity": "error",
"jsRules": {},
"rules": {
"array-type": [
true,
"array-simple"
],
"array-type": [true, "array-simple"],
"arrow-return-shorthand": true,
"ban": [
true,
@ -22,36 +16,18 @@
],
"ban-types": [
true,
[
"Object",
"Use {} instead."
],
[
"String",
"Use 'string' instead."
],
[
"Number",
"Use 'number' instead."
],
[
"Boolean",
"Use 'boolean' instead."
]
["Object", "Use {} instead."],
["String", "Use 'string' instead."],
["Number", "Use 'number' instead."],
["Boolean", "Use 'boolean' instead."]
],
"class-name": true,
"curly": [
true,
"ignore-same-line"
],
"curly": [true, "ignore-same-line"],
"forin": true,
"jsdoc-format": true,
"label-position": true,
"indent": [true, "tabs", 2],
"member-access": [
true,
"no-public"
],
"member-access": [true, "no-public"],
"new-parens": true,
"no-angle-bracket-type-assertion": true,
"no-any": true,
@ -62,10 +38,7 @@
// "no-default-export": true,
"no-duplicate-variable": true,
"no-inferrable-types": true,
"no-namespace": [
true,
"allow-declarations"
],
"no-namespace": [true, "allow-declarations"],
"no-reference": true,
"no-string-throw": true,
"no-unused-expression": true,
@ -78,11 +51,7 @@
],
"prefer-const": true,
"radix": true,
"semicolon": [
true,
"always",
"ignore-bound-class-methods"
],
"semicolon": [true, "always", "ignore-bound-class-methods"],
"switch-default": true,
"trailing-comma": [
true,
@ -96,15 +65,9 @@
"esSpecCompliant": true
}
],
"triple-equals": [
true,
"allow-null-check"
],
"triple-equals": [true, "allow-null-check"],
"use-isnan": true,
"quotes": [
"error",
"single"
],
"quotes": ["error", "single"],
"variable-name": [
true,
"check-format",