Skip to content
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
126 changes: 63 additions & 63 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jest: true,
jquery: true,
"jest/globals": true,
},
extends: [
"airbnb",
"eslint:recommended",
"plugin:compat/recommended",
"plugin:react/recommended",
"plugin:jest/recommended",
"prettier",
"prettier/prettier",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jsx-a11y/recommended",
"react-app",
"react-app/jest",
],
parser: "@babel/eslint-parser",
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
requireConfigFile: "false",
jsx: true,
},
plugins: [
"@html-eslint",
"jest",
"react",
"jsx-a11y",
"markdown",
"react-hooks",
"import",
],
settings: {
react: {
version: "detect",
},
},
overrides: [
{
files: ["*.html"],
parser: "@html-eslint/parser",
extends: ["plugin:@html-eslint/recommended"],
},
],
rules: {
"react/jsx-filename-extension": "off",
"import/prefer-default-export": "off",
"prefer-destructuring": "off",
"object-shorthand": "off",
"react/jsx-props-no-spreading": "off",
"arrow-body-style": "off",
"no-underscore-dangle": "off",
"react/forbid-prop-types": "off",
"react/prop-types": "off",
},
};
// module.exports = {
// env: {
// browser: true,
// es2021: true,
// node: true,
// jest: true,
// jquery: true,
// "jest/globals": true,
// },
// extends: [
// "airbnb",
// "eslint:recommended",
// "plugin:compat/recommended",
// "plugin:react/recommended",
// "plugin:jest/recommended",
// "prettier",
// "prettier/prettier",
// "plugin:import/errors",
// "plugin:import/warnings",
// "plugin:jsx-a11y/recommended",
// "react-app",
// "react-app/jest",
// ],
// parser: "@babel/eslint-parser",
// parserOptions: {
// ecmaVersion: 12,
// sourceType: "module",
// requireConfigFile: "false",
// jsx: true,
// },
// plugins: [
// "@html-eslint",
// "jest",
// "react",
// "jsx-a11y",
// "markdown",
// "react-hooks",
// "import",
// ],
// settings: {
// react: {
// version: "detect",
// },
// },
// overrides: [
// {
// files: ["*.html"],
// parser: "@html-eslint/parser",
// extends: ["plugin:@html-eslint/recommended"],
// },
// ],
// rules: {
// "react/jsx-filename-extension": "off",
// "import/prefer-default-export": "off",
// "prefer-destructuring": "off",
// "object-shorthand": "off",
// "react/jsx-props-no-spreading": "off",
// "arrow-body-style": "off",
// "no-underscore-dangle": "off",
// "react/forbid-prop-types": "off",
// "react/prop-types": "off",
// },
// };
116 changes: 116 additions & 0 deletions Documentation/Rick and morty Api.postman_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"info": {
"_postman_id": "9073cc11-10ea-4a25-9c20-78dc98ea254b",
"name": "Rick and morty Api",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Episodes list",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://rickandmortyapi.com/api/episode",
"protocol": "https",
"host": [
"rickandmortyapi",
"com"
],
"path": [
"api",
"episode"
]
}
},
"response": []
},
{
"name": "Characters list",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://rickandmortyapi.com/api/character",
"protocol": "https",
"host": [
"rickandmortyapi",
"com"
],
"path": [
"api",
"character"
]
}
},
"response": []
},
{
"name": "Single Character",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://rickandmortyapi.com/api/character/1",
"protocol": "https",
"host": [
"rickandmortyapi",
"com"
],
"path": [
"api",
"character",
"1"
]
}
},
"response": []
},
{
"name": "Episodes page",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://rickandmortyapi.com/api/episode?page=2",
"protocol": "https",
"host": [
"rickandmortyapi",
"com"
],
"path": [
"api",
"episode"
],
"query": [
{
"key": "page",
"value": "2"
}
]
}
},
"response": []
},
{
"name": "Locations",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://rickandmortyapi.com/api/location",
"protocol": "https",
"host": [
"rickandmortyapi",
"com"
],
"path": [
"api",
"location"
]
}
},
"response": []
}
]
}
Loading