-
Notifications
You must be signed in to change notification settings - Fork 2
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 #3 from RenanSui/development
Add Scripts, Workflows and Unlighthouse
- Loading branch information
Showing
151 changed files
with
5,502 additions
and
7,109 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
This file was deleted.
Oops, something went wrong.
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,77 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
const config = { | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: true, | ||
}, | ||
plugins: ['@typescript-eslint', 'tailwindcss', 'jsx-a11y'], | ||
extends: [ | ||
'next/core-web-vitals', | ||
'plugin:@typescript-eslint/recommended-type-checked', | ||
'prettier', | ||
'plugin:prettier/recommended', | ||
'plugin:tailwindcss/recommended', | ||
], | ||
rules: { | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
printWidth: 120, | ||
tabWidth: 2, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
arrowParens: 'always', | ||
semi: false, | ||
endOfLine: 'auto', | ||
}, | ||
], | ||
'jsx-a11y/alt-text': [ | ||
'warn', | ||
{ | ||
elements: ['img'], | ||
img: ['Image'], | ||
}, | ||
], | ||
'jsx-a11y/aria-props': 'warn', | ||
'jsx-a11y/aria-proptypes': 'warn', | ||
'jsx-a11y/aria-unsupported-elements': 'warn', | ||
'jsx-a11y/role-has-required-aria-props': 'warn', | ||
'jsx-a11y/role-supports-aria-props': 'warn', | ||
'react/no-unknown-property': 'error', | ||
'@typescript-eslint/array-type': 'off', | ||
'@typescript-eslint/consistent-type-definitions': 'off', | ||
'@typescript-eslint/consistent-type-imports': [ | ||
'warn', | ||
{ | ||
prefer: 'type-imports', | ||
fixStyle: 'inline-type-imports', | ||
}, | ||
], | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
argsIgnorePattern: '^_', | ||
}, | ||
], | ||
'@typescript-eslint/require-await': 'off', | ||
'@typescript-eslint/no-misused-promises': [ | ||
'error', | ||
{ | ||
checksVoidReturn: { | ||
attributes: false, | ||
}, | ||
}, | ||
], | ||
}, | ||
settings: { | ||
tailwindcss: { | ||
callees: ['cn', 'cva'], | ||
config: './tailwind.config.ts', | ||
classRegex: '^(class(Name)?|tw)$', | ||
}, | ||
next: { | ||
rootDir: ['./'], | ||
}, | ||
}, | ||
} | ||
module.exports = config |
This file was deleted.
Oops, something went wrong.
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,46 @@ | ||
name: Code check | ||
|
||
on: | ||
pull_request: | ||
branches: ["*"] | ||
push: | ||
branches: ["main"] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
name: Lint | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- uses: pnpm/action-setup@v3.0.0 | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: 8.6.1 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v4 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- run: cp .env.example .env.local | ||
|
||
- run: pnpm lint |
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
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
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
Oops, something went wrong.