Skip to content

Commit

Permalink
Redux API implementation commit #1
Browse files Browse the repository at this point in the history
  • Loading branch information
otus-learning committed Aug 21, 2022
1 parent 420f376 commit ad9310c
Show file tree
Hide file tree
Showing 18 changed files with 26,334 additions and 7,798 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/node_modules
/dist
/.cache
/.git
/coverage
19 changes: 17 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
env: {
browser: true,
es2021: true,
jest: true,
node: true,
},
extends: ["eslint:recommended", "prettier"],
extends: [
"plugin:jest/recommended",
"plugin:@typescript-eslint/recommended",
"eslint:recommended",
"prettier",
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
indent: ["error", "tab"],
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/no-unused-vars": 0,
"no-unused-vars": 0,
"no-import-assign": 0,
"no-async-promise-executor": 0,
// indent: ["error", 2],
indent: 0,
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
node_modules
coverage/*
!coverage/badges.svg
dist
.cache
Empty file modified .husky/pre-commit
100755 → 100644
Empty file.
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/node_modules
/dist
/.cache
/.git
/coverage

7 changes: 7 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": [
"stylelint-config-standard-scss",
"stylelint-config-standard",
"stylelint-config-prettier"
]
}
6 changes: 5 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
module.exports = {
presets: [["@babel/preset-env", { targets: { node: "current" } }]],
presets: [
"@babel/preset-typescript",
["@babel/preset-env", { targets: { node: "current" } }],
],
plugins: ["@babel/plugin-transform-runtime"],
};
14 changes: 14 additions & 0 deletions coverage/badges.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Redux implementation</title>
</head>
<body>
<section>
<p>Edit vendor: <input type="text" id="#vendorInput" /></p>
<p>Edit model: <input type="text" id="#modelInput" /></p>
<p><label id="#modelView">Model: ---</label></p>
<p><label id="#vendorView">Vendor: ---</label></p>
<p>
Action and state logs provided by middleware functions:<br /><textarea
cols="80"
rows="25"
id="#logs"
></textarea>
</p>
</section>
</body>
<script src="src/bundle.ts"></script>
</html>
9 changes: 3 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ module.exports = {
// coverageProvider: "babel",

// A list of reporter names that Jest uses when writing coverage reports
// coverageReporters: [
// "json",
// "text",
// "lcov",
// "clover"
// ],
coverageReporters: ["json", "text", "lcov", "json-summary", "clover"],

// An object that configures minimum threshold enforcement for coverage results
// coverageThreshold: undefined,
Expand Down Expand Up @@ -99,6 +94,8 @@ module.exports = {
// An enum that specifies notification mode. Requires { notify: true }
// notifyMode: "failure-change",

preset: "ts-jest",

// A preset that is used as a base for Jest's configuration
// preset: undefined,

Expand Down
Loading

0 comments on commit ad9310c

Please sign in to comment.