Skip to content

Commit

Permalink
prettier enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfaron committed Jan 16, 2024
1 parent 69ca9a8 commit 6008e96
Show file tree
Hide file tree
Showing 281 changed files with 4,753 additions and 4,099 deletions.
64 changes: 15 additions & 49 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,21 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"extends": [
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "lib",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "lib",
"style": "kebab-case"
}
]
}
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended",
"plugin:@angular-eslint/template/accessibility"
],
"rules": {}
},
{
"files": [
"*.ts"
],
"extends": [
"plugin:@ngrx/recommended"
]
"rules": {
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/explicit-member-accessibility": "error",
"prettier/prettier": "error"
}
]
}
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ignore everything
**/*

# But not TS and JS files
!**/*.ts
!**/*.js

# Check subdirectories too
!*/
17 changes: 17 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"singleQuote": true,
"trailingComma": "all",
"useTabs": false,
"tabWidth": 4,
"semi": true,
"endOfLine": "auto",
"printWidth": 120,
"quoteProps": "as-needed",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "avoid",
"proseWrap": "preserve",
"embeddedLanguageFormatting": "auto",
"singleAttributePerLine": false
}

5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cSpell.words": [
"aaslist",
"aasv",
"aasv3",
"angewandten",
"autohide",
Expand All @@ -22,6 +23,7 @@
"nicht",
"NMTOKEN",
"NMTOKENS",
"opnxml",
"owncloud",
"preprocessors",
"Qualifiable",
Expand All @@ -34,5 +36,6 @@
"uuid",
"xmldoc",
"ZVEI"
]
],
"files.eol": "\n",
}
Loading

0 comments on commit 6008e96

Please sign in to comment.