Skip to content

Commit

Permalink
chore: improve repository config and static analysis (#124)
Browse files Browse the repository at this point in the history
Co-authored-by: Kamil Dubiel <kamil.dubiel@infinum.com>
  • Loading branch information
kamdubiel and kamdubiel authored May 9, 2024
1 parent c7c5a71 commit 8407fd2
Show file tree
Hide file tree
Showing 14 changed files with 91 additions and 21 deletions.
9 changes: 3 additions & 6 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "infinum/js-linters" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
"updateInternalDependencies": "patch"
}
16 changes: 16 additions & 0 deletions .changeset/seven-rockets-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"@infinum/eslint-plugin": minor
---

Changed repository config and static code analysis:
- Added `.editorconfig` file
- Added `.gitattributes` file
- Cleaned up `.gitignore`
- Added `lint-staged` configuration
- Added `node-version` file
- Added `prettier` configuration
- Updated `CODEOWNERS` file
- Updated `LICENSE` file
- Added recommended extensions
- Removed `.vscode/settings.json` file
- Changed `changesets` configuration
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
charset = utf-8
indent_style = tab
indent_size = 2 # GitHub uses this value for indentation size when showing code on the Web
insert_final_newline = true
trim_trailing_whitespace = true

[*.{yml,yaml}]
indent_style = space
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* -text
19 changes: 13 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# Dependencies
node_modules
jspm_packages

typings/
# IDE
.vscode/settings.json

package-lock.json
yarn.lock
# Output
dist/

lerna-debug.log
# Typescript
*.tsbuildinfo

dist/
# Misc
.DS_Store
pnpm-debug.log*

# Environment
.env*
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*": ["prettier -c"],
"*.{ts,js}": ["eslint --max-warnings=0"]
}
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.12.2
28 changes: 28 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Dependency
node_modules
pnpm-lock.yaml

# Build
dist

# VSCode
.vscode

# Log
*.log

# Unsupported extensions
*.md

# Unsupported files
.editorconfig
.eslintignore
.gitignore
.prettierignore
LICENSE

# Unsupported directories
.husky

# Intentionally ignored
*.hbs
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"singleQuote": true,
"semi": true,
"trailingComma": "es5",
"singleAttributePerLine": true,
"overrides": [
{
"files": "*.component.html",
Expand Down
10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint",
"itsmeadarsh.vsc-handlebars-ext",
"esbenp.prettier-vscode",
"github.vscode-github-actions",
"streetsidesoftware.code-spell-checker"
]
}
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

6 changes: 1 addition & 5 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
* @isbatak @kristian240

/packages/eslint-config-angular-ts @thabalija
/packages/eslint-config-core-ts @thabalija
/packages/eslint-config-core-js @thabalija
* @kamdubiel
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Infinum
Copyright (c) 2024 Infinum

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
}
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "~2.26.2",
"@commitlint/cli": "~17.6.6",
"@commitlint/config-conventional": "~17.6.6",
Expand Down

0 comments on commit 8407fd2

Please sign in to comment.