Skip to content

Commit

Permalink
Merge pull request #1240 from storyblok/chore/eslint-flat-config
Browse files Browse the repository at this point in the history
chore: eslint flat config
  • Loading branch information
alvarosabu authored Sep 26, 2024
2 parents c7a85ab + 9a8eb8b commit 7d90ecd
Show file tree
Hide file tree
Showing 68 changed files with 6,760 additions and 2,701 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
blank_issues_enabled: false
blank_issues_enabled: false
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/issue.bug.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "\U0001F41E SDK Bug Report"
name: 🐞 SDK Bug Report
description: Report an issue using React Storyblok SDK
labels: [pending-triage, pending-author]
body:
Expand All @@ -11,7 +11,7 @@ body:
attributes:
label: Describe the issue you're facing
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description so we can review it. Thanks in advance!
placeholder: My React Storyblok SDK configuration is ... ## Expected behavior ... ## Current Behavior ...
placeholder: My React Storyblok SDK configuration is ... # # Expected behavior ... ## Current Behavior ...
validations:
required: true
- type: input
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/issue.fr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "\U0001F58C SDK Feature Request"
name: 🖌 SDK Feature Request
description: Propose a feature or improvement that the Storyblok SDK should have
labels: [enhancement, pending-triage, pending-author]
body:
Expand All @@ -10,15 +10,15 @@ body:
id: feature-description
attributes:
label: Description
description: "Clear and concise description of what you want to include or enhance from the SDK. Please make the reason and usecases as detailed as possible. If you intend to submit a PR for this feature request, tell us in the description so we can review and be aware of it. Thanks in advance!"
description: 'Clear and concise description of what you want to include or enhance from the SDK. Please make the reason and usecases as detailed as possible. If you intend to submit a PR for this feature request, tell us in the description so we can review and be aware of it. Thanks in advance!'
placeholder: As a developer using Storyblok SDK I want [wish] so that [benefit].
validations:
required: true
- type: textarea
id: suggested-solution
attributes:
label: Suggested solution or improvement
description: "Link to the PR or what implementation you will expect from us (links to external examples if needed)."
description: Link to the PR or what implementation you will expect from us (links to external examples if needed).
validations:
required: true
- type: textarea
Expand Down
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: npm
directory: /
schedule:
interval: "daily"
time: "04:00"
interval: daily
time: '04:00'
commit-message:
prefix: fix
prefix-development: chore
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
id: metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Enable auto-merge for Dependabot PRs
if: ${{contains(steps.metadata.outputs.dependency-names, env.DEPENDENCY) && (steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor')}}
run: gh pr merge --auto --merge "$PR_URL"
env:
DEPENDENCY: "@storyblok/js"
DEPENDENCY: '@storyblok/js'
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.DEPENDABOT_TOKEN}}
19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Run linters
on: [push]

jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Run Lint
run: npm run lint
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20"
cache: "npm"
node-version: '20'
cache: npm
- name: Install dependencies
run: npm ci
- name: Build lib
Expand Down
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

Loading

0 comments on commit 7d90ecd

Please sign in to comment.