Skip to content

Commit

Permalink
feat: eslint react rules
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikzita committed Dec 26, 2023
1 parent 0189ada commit 6d318e2
Show file tree
Hide file tree
Showing 6 changed files with 1,574 additions and 50 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{
"extends": "next/core-web-vitals"
"extends": ["next/core-web-vitals"],
"plugins": ["react"],
"rules": {
"react/boolean-prop-naming": [
"error",
{ "rule": "^is[A-Z]([A-Za-z0-9]?)+" }
],
"react/no-array-index-key": "warn"
}
}
8 changes: 4 additions & 4 deletions .github/workflows/learn-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: learn-github-actions
run-name: ${{ github.actor }} is learning GitHub Actions
on: [push]
jobs:
check-bats-version:
lint-and-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "14"
- run: npm install -g bats
- run: bats -v
node-version: '14'
- run: npm install
- run: npm run lint
Loading

0 comments on commit 6d318e2

Please sign in to comment.