From 023127f8be869181bc04fe0f3b127c64ddb907c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Fri, 12 Nov 2021 10:44:18 +0100 Subject: [PATCH] [cleanup] cleanup style --- .eslintrc.js | 10 +++++----- package.json | 4 ++-- src/components/CalculationTable.vue | 4 ++-- src/components/Pricelist.vue | 2 +- src/pages/Receipts.vue | 2 +- src/utils/filter.ts | 7 ++++++- 6 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index ab9cd5e..b1c98ba 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -17,11 +17,11 @@ module.exports = { project: resolve(__dirname, './tsconfig.json'), tsconfigRootDir: __dirname, ecmaVersion: 2019, // Allows for the parsing of modern ECMAScript features - sourceType: 'module' // Allows for the use of imports + sourceType: 'module', // Allows for the use of imports }, env: { - browser: true + browser: true, }, // Rules order is important, please avoid shuffling them @@ -70,6 +70,6 @@ module.exports = { '@typescript-eslint/explicit-module-boundary-types': 'off', // allow debugger during development only - 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' - } -} + 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', + }, +}; diff --git a/package.json b/package.json index ab290ef..a0f41d2 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "main": "src/index.ts", "types": "src/api.d.ts", "scripts": { - "format": "prettier --config ./package.json --write '{,!(node_modules)/**/}*.ts'", + "format": "prettier --config ./package.json --write '{,!(node_modules)/**/}*.{ts,vue,js}'", "lint": "eslint --ext .js,.ts,.vue ./src" }, "dependencies": { @@ -42,7 +42,7 @@ "prettier": { "singleQuote": true, "semi": true, - "printWidth": 120, + "printWidth": 100, "arrowParens": "always" } } diff --git a/src/components/CalculationTable.vue b/src/components/CalculationTable.vue index d15b1ba..ab94f79 100644 --- a/src/components/CalculationTable.vue +++ b/src/components/CalculationTable.vue @@ -55,7 +55,7 @@