-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 414cd42
Showing
21 changed files
with
3,642 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = tab | ||
indent_size = tab | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
indent_size = 2 | ||
indent_style = space | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: CHECK | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: setup package manager | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
run_install: false | ||
- name: install node | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'pnpm' | ||
node-version-file: '.nvmrc' | ||
- name: install dependencies | ||
run: pnpm install | ||
- name: lint codebase | ||
run: pnpm lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm exec commitlint --edit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm exec lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
engine-strict=true | ||
tag-version-prefix= | ||
preid=rc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/**/.*/ | ||
/node_modules/ | ||
pnpm-lock.yaml |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @thasmo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# `commitlint` configurations | ||
|
||
> Shared `commitlint` configurations for `somehow.digital` projects. | ||
--- | ||
|
||
**install** | ||
|
||
```sh | ||
pnpm add -D @somehow-digital/commitlint-config | ||
``` | ||
|
||
**use** | ||
|
||
```js | ||
export default { | ||
extends: ['@somehow-digital/commitlint-config'], | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default { | ||
extends: ['./configuration/basic.js'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export default { | ||
plugins: ['@somehow-digital/commitlint-plugin-spellcheck'], | ||
rules: { | ||
'spellcheck/body': [2, 'always'], | ||
'spellcheck/footer': [2, 'always'], | ||
'spellcheck/header': [2, 'always'], | ||
'spellcheck/scope': [2, 'always'], | ||
'spellcheck/subject': [2, 'always'], | ||
'spellcheck/type': [2, 'always'], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default { | ||
import: ['@somehow-digital/cspell-dictionary'], | ||
language: 'en', | ||
version: '0.2', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import config from '@somehow-digital/eslint-config'; | ||
|
||
export default [ | ||
...config, | ||
{ | ||
ignores: ['**/.*/'], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default { | ||
entry: ['configuration/*.js'], | ||
project: ['configuration/**'], | ||
ignoreDependencies: [ | ||
'commitlint-config-.*', | ||
'@somehow-digital/commitlint-plugin-spellcheck', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default { | ||
'**/*.{js,jsx,ts,tsx}': ['eslint'], | ||
'**/*.{md,json,yml,yaml}': [ | ||
'prettier --check', | ||
'cspell --no-progress --no-must-find-files', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name": "@somehow-digital/commitlint-config", | ||
"description": "Shared `commitlint` configurations for `somehow.digital` projects.", | ||
"version": "0.0.0", | ||
"type": "module", | ||
"license": "MIT", | ||
"repository": "somehow-digital/commitlint-config", | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=20", | ||
"pnpm": ">=9" | ||
}, | ||
"scripts": { | ||
"prepare": "husky", | ||
"lint": "concurrently --group --prefix-colors 'auto' 'pnpm:lint:*'", | ||
"lint:eslint": "eslint '**/*.{js,jsx,ts,tsx}'", | ||
"lint:prettier": "prettier --check '**/*.{md,json,yml,yaml}'", | ||
"lint:cspell": "cspell --no-progress --no-summary --no-must-find-files '**/*.*'", | ||
"lint:knip": "knip --no-progress", | ||
"fix": "concurrently --group --prefix-colors 'auto' 'pnpm:fix:*'", | ||
"fix:eslint": "eslint --fix '**/*.{js,jsx,ts,tsx}'", | ||
"fix:prettier": "prettier --write '**/*.{md,json,yml,yaml}'", | ||
"fix:knip": "knip --no-progress --fix" | ||
}, | ||
"exports": { | ||
".": "./configuration/basic.js", | ||
"./basic": "./configuration/basic.js" | ||
}, | ||
"files": [ | ||
"./configuration/" | ||
], | ||
"peerDependencies": { | ||
"@commitlint/cli": "^19.5.0" | ||
}, | ||
"dependencies": { | ||
"@somehow-digital/commitlint-plugin-spellcheck": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^19.5.0", | ||
"@somehow-digital/cspell-dictionary": "^1.0.0", | ||
"@somehow-digital/eslint-config": "^2.0.0", | ||
"@somehow-digital/prettier-config": "^2.0.0", | ||
"concurrently": "^9.0.1", | ||
"cspell": "^8.14.4", | ||
"eslint": "^9.11.1", | ||
"husky": "^9.1.6", | ||
"knip": "^5.30.5", | ||
"lint-staged": "^15.2.10", | ||
"prettier": "3.3.3" | ||
} | ||
} |
Oops, something went wrong.