Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site by GTXtab #488

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ module.exports = {
extends: [
'@mate-academy/eslint-config-react-typescript',
'plugin:cypress/recommended',
"prettier",
],
overrides: [
{
files: ["declarations.d.ts"],
rules: {
"no-undef": "off",
},
},
],
rules: {},
};
19 changes: 17 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,23 @@
"tabWidth": 2,
"trailingComma": "all",
"jsxSingleQuote": false,
"printWidth": 80,
"printWidth": 100,
"semi": true,
"bracketSpacing": true,
"bracketSameLine": false
"bracketSameLine": false,

"files.autoSave": "afterDelay",
"files.autoSaveDelay": 500,
"editor.fontSize": 15,
"editor.tabSize": 2,
"editor.renderWhitespace": "boundary",
"editor.detectIndentation": false,

"editor.codeActionsOnSave": {
"source.fixAll": "always",
"source.fixAll.eslint": "always"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnType": true,
"editor.formatOnSave": true
}
4 changes: 4 additions & 0 deletions declarations.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.png';
declare module '*.jpg';
declare module '*.jpeg';
declare module '*.gif';
361 changes: 191 additions & 170 deletions package-lock.json

Large diffs are not rendered by default.

36 changes: 30 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,40 @@
"classnames": "^2.5.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.22.3",
"react-router-dom": "^6.26.1",
"react-scripts": "5.0.1",
"react-transition-group": "^4.4.5"
"react-slick": "^0.30.2",
"react-swipeable": "^7.0.1",
"react-transition-group": "^4.4.5",
"slick-carousel": "^1.8.1"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@mate-academy/eslint-config-react-typescript": "latest",
"@mate-academy/scripts": "^1.7.9",
"@mate-academy/scripts": "^1.9.12",
"@mate-academy/students-ts-config": "latest",
"@mate-academy/stylelint-config": "latest",
"@types/node": "^16.18.80",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@types/react-slick": "^0.23.13",
"cypress": "^12.17.4",
"eslint": "^7.32.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-cypress": "^2.11.2",
"eslint-plugin-prettier": "^5.2.1",
"gh-pages": "^6.1.1",
"husky": "^9.1.4",
"mochawesome": "^7.1.3",
"mochawesome-merge": "^4.2.0",
"mochawesome-report-generator": "^6.2.0",
"postcss": "^8.4.12",
"prettier": "^3.2.5",
"sass": "^1.72.0",
"prettier": "^3.3.3",
"sass": "^1.77.8",
"sass-loader": "^16.0.1",
"stylelint": "^15.11.0",
"typescript": "5.1.6"
"typescript": "5.1.6",
"webpack": "^5.93.0"
},
"scripts": {
"start": "mate-scripts start -l",
Expand Down Expand Up @@ -72,5 +81,20 @@
"_comment": "Add `cypressComponents: true` to enable component tests",
"cypress": true
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
],
"*.tsx": [
"eslint --fix",
"prettier --write"
]
}
}
263 changes: 0 additions & 263 deletions public/_old/v1/api/products.json

This file was deleted.

Loading