-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: #146 changed colors and onClick object in searchbar * feat: added rwd to searchbar * fix: #146 fixed rwd in header * feat: #146 added sidebar animation * refactor: #146 changed way of using sidebar * feat: #146 added rwd to new sidebar * Issue 134 (#148) * feat: #134 add esling and prettier * fix: #134 quick fix * fix: #134 section filters * feat: #134 small changes * feat: #134 small changes * feat: #134 small changes * feat: #134 update package * feat: #134 install package * feat: #134 filtr grade * feat: #134 update to react 19 and next 15 * feat: #134 small update * feat: #134 install eslint pluggins * fix: #134 fix and add eslint * fix: #134 fix scss * fix: #134 small fix * fix: #134 update package --------- Co-authored-by: Paweł Buczek <pbuczek7@wp.pl> Co-authored-by: Marcin Bator <marcinbator.ofc@gmail.com>
- Loading branch information
1 parent
bd2efa0
commit 4106924
Showing
105 changed files
with
7,590 additions
and
6,136 deletions.
There are no files selected for viewing
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,29 @@ | ||
name: Pull Request - verify | ||
|
||
on: | ||
pull_request: | ||
branches: ['main', 'dev'] | ||
|
||
jobs: | ||
verify: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install Dependencies | ||
run: | | ||
npm clean-install | ||
- name: Run Prettier Format | ||
run: | | ||
npm run format || exit 1 | ||
- name: Run Linter | ||
run: | | ||
npm run 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
node_modules/ | ||
.next/ | ||
|
||
.git/ | ||
.github/ | ||
docker-compose.yml | ||
Dockerfile | ||
README.md | ||
.env* | ||
|
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,105 @@ | ||
import { FlatCompat } from '@eslint/eslintrc'; | ||
import js from '@eslint/js'; | ||
import prettier from 'eslint-plugin-prettier'; | ||
import simpleImportSort from 'eslint-plugin-simple-import-sort'; | ||
import tailwindcss from 'eslint-plugin-tailwindcss'; | ||
import unusedImports from 'eslint-plugin-unused-imports'; | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}); | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
'**/node_modules/', | ||
'**/.next/', | ||
'**/.git/', | ||
'**/.github/', | ||
'**/docker-compose.yml', | ||
'**/Dockerfile', | ||
'**/README.md', | ||
'**/.env*', | ||
'**/dist', | ||
'**/build', | ||
], | ||
}, | ||
...compat.extends('next/core-web-vitals', 'plugin:prettier/recommended', 'next', 'prettier'), | ||
{ | ||
plugins: { | ||
prettier, | ||
tailwindcss, | ||
'simple-import-sort': simpleImportSort, | ||
'unused-imports': unusedImports, | ||
}, | ||
|
||
rules: { | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
printWidth: 120, | ||
useTabs: true, | ||
singleQuote: true, | ||
tabWidth: 2, | ||
endOfLine: 'auto', | ||
}, | ||
], | ||
|
||
'tailwindcss/no-custom-classname': [ | ||
'error', | ||
{ | ||
validateColors: true, | ||
configPath: './tailwind.config.js', | ||
|
||
ignore: [ | ||
'^text-(xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)$', | ||
'^text-(thin|light|normal|medium|semibold|bold|extrabold|black)$', | ||
'^font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black)$', | ||
'^shadow-(sm|md|lg|xl|2xl|inner|outline|none)$', | ||
'^bg-(auto|cover|contain|fixed|local|scroll|top|center|bottom|left|right|clip|border|padding|content)$', | ||
'^text-(left|center|right|justify|start|end)$', | ||
'^border-(solid|dashed|dotted|double|none)$', | ||
'^ring-(0|1|2|4|8|inset|transparent|current|white|black|gray|red|green|blue|indigo|yellow|pink)$', | ||
'^opacity-(0|5|10|25|50|75|90|100)$', | ||
'^hover:(.*)$', | ||
'^focus:(.*)$', | ||
], | ||
}, | ||
], | ||
|
||
'no-restricted-syntax': [ | ||
'error', | ||
{ | ||
selector: | ||
'Literal[value=/\\b(bg|text|border|from|to)-(red|blue|green|yellow|gray|purple|pink|indigo|cyan|teal|emerald|amber|lime)-\\d{3,}/]', | ||
message: 'Nie używaj wbudowanych kolorów Tailwind. Użyj zdefiniowanych w tailwind.config.js.', | ||
}, | ||
], | ||
|
||
'simple-import-sort/imports': [ | ||
'error', | ||
{ | ||
groups: [['^react', '^@?\\w'], ['^\\u0000'], ['^@?\\w'], ['^\\.']], | ||
}, | ||
], | ||
|
||
'unused-imports/no-unused-imports': 'error', | ||
|
||
'unused-imports/no-unused-vars': [ | ||
'warn', | ||
{ | ||
vars: 'all', | ||
varsIgnorePattern: '^_', | ||
args: 'after-used', | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.