Skip to content

Commit

Permalink
Calendar API homework commit #1
Browse files Browse the repository at this point in the history
  • Loading branch information
otus-learning committed Aug 14, 2022
1 parent 420f376 commit c8b0a89
Show file tree
Hide file tree
Showing 18 changed files with 26,001 additions and 7,764 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
18 changes: 16 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
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,
"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.
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Calendar API</title>
<script src="src/bundle.ts"></script>
</head>
<body>
<section></section>
</body>
</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 c8b0a89

Please sign in to comment.