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

Phone Catalog Mixelio #505

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 17 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
12 changes: 8 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
},
extends: [
'plugin:react/recommended',
"plugin:react-hooks/recommended",
'plugin:react-hooks/recommended',
'airbnb-typescript',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
Expand Down Expand Up @@ -34,12 +34,14 @@ module.exports = {
'import',
'react-hooks',
'@typescript-eslint',
'prettier'
'prettier',
'@typescript-eslint/eslint-plugin',
'eslint-plugin-prettier',
'stylelint-scss'
],
rules: {
'stylelint/comment-no-empty': [0],
// JS
'semi': 'off',
'@typescript-eslint/semi': ['error', 'always'],
'prefer-const': 2,
curly: [2, 'all'],
'max-len': ['error', {
Expand Down Expand Up @@ -90,7 +92,9 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'prettier/prettier': 'error',
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/semi': ['error', 'always'],
'@typescript-eslint/ban-types': ['error', {
extendDefaults: true,
types: {
Expand Down
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// module.exports = {
// ignorePatterns: ['node_modules/', 'dist/'], // Ігнорувати ці папки
// root: true, // Ввімкнути линтинг з кореневого каталогу
// };
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Follow the [Instruction](https://github.com/mate-academy/react_phone-catalog/blo

## Data

Use the data from `/public/api` and images from `/public/img` folders. You can reorganize them the way you like.
Use the data from `/public/api` and images from `/public../img` folders. You can reorganize them the way you like.

## App

Expand Down
11 changes: 11 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import globals from "globals";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";


export default [
{files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]},
{languageOptions: { globals: globals.browser }},
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
];
9 changes: 9 additions & 0 deletions favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<!doctype html>
<html lang="en">
<html lang="en" class="page">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<link rel="icon" type="image/svg+xml" href="favicon.svg">
<title>Phone Catalog</title>
</head>
<body>
<body class="page__body">
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
Expand Down
Loading
Loading