Skip to content

Commit

Permalink
Merge pull request #26 from Cubeseed/abu-hasib-patch-3
Browse files Browse the repository at this point in the history
Create eslint.yml
  • Loading branch information
MimaoQiuQiu authored Nov 9, 2023
2 parents dab326e + ee5d5bc commit 98dea52
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"rules": {
"@next/next/no-html-link-for-pages": "off",
"react/jsx-key": "off",
"tailwindcss/no-custom-classname": "off",
"tailwindcss/classnames-order": "error"
}
}
39 changes: 39 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Run ESLint on Pull Requests

on:
- pull_request

jobs:
build:
name: Run ESLint
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: cubeseed_login
strategy:
max-parallel: 42
fail-fast: false
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
# Check out the repository
- uses: actions/checkout@v3

# Install Node.js
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

# Install your dependencies
- run: npm ci --legacy-peer-deps

# Install ESLint
- run: npm install eslint --save-dev

# Install Next Config
- run: npm install eslint-config-next --save-dev

# Run ESLint
- run: npx eslint .

0 comments on commit 98dea52

Please sign in to comment.