-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from Cubeseed/abu-hasib-patch-3
Create eslint.yml
- Loading branch information
Showing
2 changed files
with
47 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,8 @@ | ||
{ | ||
"rules": { | ||
"@next/next/no-html-link-for-pages": "off", | ||
"react/jsx-key": "off", | ||
"tailwindcss/no-custom-classname": "off", | ||
"tailwindcss/classnames-order": "error" | ||
} | ||
} |
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,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 . |