diff --git a/.changeset/config.json b/.changeset/config.json index 174858c..acee068 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -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" } diff --git a/.changeset/seven-rockets-double.md b/.changeset/seven-rockets-double.md new file mode 100644 index 0000000..a030c9e --- /dev/null +++ b/.changeset/seven-rockets-double.md @@ -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 diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f4ca497 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fa1385d --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* -text diff --git a/.gitignore b/.gitignore index d3a7ec9..1e44150 100644 --- a/.gitignore +++ b/.gitignore @@ -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* diff --git a/.lintstagedrc b/.lintstagedrc new file mode 100644 index 0000000..d109a10 --- /dev/null +++ b/.lintstagedrc @@ -0,0 +1,4 @@ +{ + "*": ["prettier -c"], + "*.{ts,js}": ["eslint --max-warnings=0"] +} diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..8783404 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20.12.2 diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..29e06af --- /dev/null +++ b/.prettierignore @@ -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 diff --git a/.prettierrc.json b/.prettierrc.json index 2697058..e477b31 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -9,6 +9,7 @@ "singleQuote": true, "semi": true, "trailingComma": "es5", + "singleAttributePerLine": true, "overrides": [ { "files": "*.component.html", diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..5e73d4d --- /dev/null +++ b/.vscode/extensions.json @@ -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" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 1295ee6..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "editor.formatOnSave": true -} diff --git a/CODEOWNERS b/CODEOWNERS index c5c9d92..8325cf9 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,5 +1 @@ -* @isbatak @kristian240 - -/packages/eslint-config-angular-ts @thabalija -/packages/eslint-config-core-ts @thabalija -/packages/eslint-config-core-js @thabalija +* @kamdubiel diff --git a/LICENSE b/LICENSE index a8fe070..6e09be2 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/package.json b/package.json index 0d636ec..9bab1f3 100644 --- a/package.json +++ b/package.json @@ -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",