Skip to content

Commit

Permalink
chore(dev-deps): Add groups to dependabot.yml and enable prettier (#…
Browse files Browse the repository at this point in the history
…104)

Group related dependencies to reduce the number of PRs created by
dependabot and run prettier on all files.

Adjust the eslint configuration to extend from prettier instead of
`dintero/typescript`
  • Loading branch information
frodeaa authored Oct 16, 2023
1 parent 1b7f3d8 commit ed6d9e0
Show file tree
Hide file tree
Showing 13 changed files with 996 additions and 1,481 deletions.
22 changes: 13 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"root": true,
"extends": [
"dintero/typescript"
],
"plugins": [
"import"
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": ["@typescript-eslint"],
"rules": {
"semi": ["error", "never"],
"@typescript-eslint/no-empty-function": "warn", // temporary lower from error to warn
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": "off",
"function-paren-newline": "off"
"@typescript-eslint/consistent-type-imports": ["error"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
]
}
}
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,21 @@ updates:
prefix: fix
prefix-development: chore
include: scope
groups:
semantic-release:
patterns:
- "@semantic-release/exec"
- "semantic-release"
jest:
patterns:
- "@types/jest"
- "jest"
- "jest-junit"
- "ts-jest"
eslint:
patterns:
- "eslint"
- "eslint-*"
- "@typescript-eslint/eslint-plugin"
- "@typescript-eslint/parser"
- "@trivago/prettier-plugin-sort-imports"
31 changes: 15 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,26 @@ name: CI

on:
pull_request:
branches: [ master ]
branches: [master]

jobs:

build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: yarn
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: yarn

- name: yarn install, build and test
run: |
yarn install
yarn run test
yarn run build
- name: yarn install, build and test
run: |
yarn install
yarn run test
yarn run build
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
node-version: "lts/*"
cache: yarn

- name: yarn install, build and test
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/dist
8 changes: 8 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
printWidth: 80
tabWidth: 4
overrides:
- files:
- "*.yml"
- "*.yaml"
options:
tabWidth: 2
16 changes: 7 additions & 9 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"branches": [
"master"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"@semantic-release/npm"
]
"branches": ["master"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"@semantic-release/npm"
]
}
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# 1.0.0 - 14.09.2021
# 1.0.0 - 14.09.2021

- Initial version released
- Initial version released
Loading

0 comments on commit ed6d9e0

Please sign in to comment.