Skip to content

Commit

Permalink
Update to standalone component + prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Zefling committed Dec 1, 2024
1 parent 271a73d commit 1850ffe
Show file tree
Hide file tree
Showing 30 changed files with 1,514 additions and 1,569 deletions.
22 changes: 5 additions & 17 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
{
"root": true,
"ignorePatterns": [
"dist",
"coverage"
],
"ignorePatterns": ["dist", "coverage"],
"parserOptions": {
"ecmaVersion": 2020
},
"overrides": [
{
"files": [
"*.ts"
],
"files": ["*.ts"],
"parserOptions": {
"project": [
"tsconfig.json"
],
"project": ["tsconfig.json"],
"createDefaultProgram": true
},
"extends": [
Expand All @@ -29,13 +22,8 @@
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended",
"plugin:prettier/recommended"
],
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended", "plugin:prettier/recommended"],
"rules": {}
}
]
Expand Down
6 changes: 5 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@

# Add files here to ignore them from prettier formatting

/.history
/.angular
/dist
/coverage
/documentation
/node_modules
/**/polyfills.ts
/projects/ng-select2-component/src/test.ts
/src/test.ts
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"arrowParens": "avoid",
"trailingComma": "all",
"bracketSpacing": true,
"plugins": ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-css-order"],
"importOrderParserPlugins": ["typescript", "decorators-legacy"],
"importOrder": ["^@angular/", "^[@]", "^(?!src|[.])", "^[^.]", "^[.]/", "^[..]/", ".*"],
"importOrderSeparation": true,
Expand All @@ -16,6 +17,12 @@
"options": {
"tabWidth": 2
}
},
{
"files": "*.html",
"options": {
"tabWidth": 2
}
}
]
}
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"cSpell.words": [],
"editor.formatOnType": true
"cSpell.words": []
}
16 changes: 8 additions & 8 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ ng-select2 is written by York Yao with contributions from:

Main contributors:

- Célian Veyssière (aka Zéfling)
- Baptiste (aka BatMen)
- Célian Veyssière (aka Zéfling)
- Baptiste (aka BatMen)

Thanks for your contributions:

- ADesbois
- mbelin-hvs
- Varun Nambiar
- Khanh Ngo
- Johan Compagner
- majora2007
- ADesbois
- mbelin-hvs
- Varun Nambiar
- Khanh Ngo
- Johan Compagner
- majora2007
Loading

0 comments on commit 1850ffe

Please sign in to comment.