Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

50 integrate common prettifier config #54

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 21 additions & 18 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
module.exports = {
root: true,
env: {
node: true
node: true,
},
'extends': [
extends: [
"plugin:@typescript-eslint/recommended",
'plugin:vue/essential',
"plugin:vue/essential",
"plugin:vue/strongly-recommended",
"plugin:vue/recommended",
'eslint:recommended',
'@vue/typescript'
"eslint:recommended",
"@vue/typescript",
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? ['error', { "allow": ["warn", "error"] }] : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unused-vars': "warn",
'@typescript-eslint/explicit-function-return-type': 'off',
"curly": [2, "multi-line"],
"array-bracket-spacing": [2, "never"]
"no-console":
process.env.NODE_ENV === "production"
? ["error", { allow: ["warn", "error"] }]
: "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"no-unused-vars": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
curly: [2, "multi-line"],
"array-bracket-spacing": [2, "never"],
},
parser: "vue-eslint-parser",
parserOptions: {
parser: '@typescript-eslint/parser'
parser: "@typescript-eslint/parser",
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)",
],
rules: {
"@typescript-eslint/no-explicit-any": "off"
"@typescript-eslint/no-explicit-any": "off",
},
env: {
jest: true
}
}
jest: true,
},
},
],
ignorePatterns: ["**/*.spec.{j,t}s?(x)"],
};
8 changes: 3 additions & 5 deletions frontend/.htmvalidate.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"extends": [
"html-validate:recommended"
],
"extends": ["html-validate:recommended"],

"rules": {
"close-order": "error",
"void": ["warn", {"style": "omit"}]
"void": ["warn", { "style": "omit" }]
}
}
}
1 change: 1 addition & 0 deletions frontend/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@muenchen/prettier-codeformat"
6 changes: 6 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
# Kickstarter-GUI

## Project setup

```
npm install
```

### Compiles and hot-reloads for development

```
npm run serve
```

### Compiles and minifies for production

```
npm run build
```

### Run your tests

```
npm run test
```

### Lints and fixes files

```
npm run lint
```

### Customize configuration

See [Configuration Reference](https://cli.vuejs.org/config/).
7 changes: 1 addition & 6 deletions frontend/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
module.exports = {
presets: [
'@babel/preset-env',
['@vue/app',
{useBuiltIns: 'entry'}
]
]
presets: ["@babel/preset-env", ["@vue/app", { useBuiltIns: "entry" }]],
};
8 changes: 3 additions & 5 deletions frontend/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module.exports = {
preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel',
testMatch: ['**/*.spec.ts?(x)'],
preset: "@vue/cli-plugin-unit-jest/presets/typescript-and-babel",
testMatch: ["**/*.spec.ts?(x)"],
automock: false,
setupFiles: [
"./jest.setup.js"
]
setupFiles: ["./jest.setup.js"],
};
2 changes: 1 addition & 1 deletion frontend/jest.setup.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
require('jest-fetch-mock').enableMocks();
require("jest-fetch-mock").enableMocks();
Loading
Loading