From 3af2ea39668d3c15f160ed88f54d80113611c9fb Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 8 Oct 2022 19:39:04 +0200 Subject: [PATCH] Initial commit --- .eslintrc | 50 +++++++++++++++++++++++++++++++++++++++++ .gitignore | 1 + .pre-commit-config.yaml | 36 +++++++++++++++++++++++++++++ .prettierrc | 5 +++++ index.html | 17 ++++++++++++++ main.js | 0 6 files changed, 109 insertions(+) create mode 100644 .eslintrc create mode 100644 .gitignore create mode 100644 .pre-commit-config.yaml create mode 100644 .prettierrc create mode 100644 index.html create mode 100644 main.js diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..c6db1aa --- /dev/null +++ b/.eslintrc @@ -0,0 +1,50 @@ +{ + "env": { + "browser": true, + "es2019": true, + "jquery": true + }, + "extends": [ + "eslint:recommended" + ], + "ignorePatterns": ["dist/", "node_modules/"], + "rules": { + "block-scoped-var": "error", + "consistent-return": "error", + "curly": "error", + "default-case": "error", + "default-param-last": ["error"], + "dot-notation": "error", + "eqeqeq": "error", + "guard-for-in": "error", + "max-classes-per-file": "error", + "no-alert": "error", + "no-caller": "error", + "no-else-return": "error", + "no-empty-function": "error", + "no-floating-decimal": "error", + "no-implicit-coercion": "error", + "no-multi-spaces": "error", + "no-multi-str": "error", + "no-param-reassign": "error", + "no-return-assign": "error", + "no-return-await": "error", + "no-self-compare": "error", + "no-throw-literal": "error", + "no-useless-concat": "error", + "radix": ["error", "as-needed"], + "require-await": "error", + "yoda": "error", + "no-shadow": "off", + "prefer-destructuring": ["error", { "array": false, "object": true }], + "padding-line-between-statements": [ + "error", + { "blankLine": "always", "prev": "import", "next": "export" }, + { "blankLine": "always", "prev": "export", "next": "export" }, + { "blankLine": "always", "prev": "*", "next": "return" } + ] + }, + "parserOptions": { + "sourceType": "module" + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..5f4fc7f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,36 @@ +exclude: (\.min\.(js|css)(\.map)?$|/vendor/) +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.3.0 + hooks: + - id: check-json + - id: check-yaml + args: [--allow-multiple-documents] + - id: end-of-file-fixer + - id: check-merge-conflict + - id: detect-private-key + - id: pretty-format-json + args: + - --autofix + - --no-sort-keys + - id: trailing-whitespace + args: + - --markdown-linebreak-ext=md + - repo: https://github.com/rtts/djhtml + rev: v1.5.2 + hooks: + - id: djhtml + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v3.0.0-alpha.0 + hooks: + - id: prettier + types_or: [javascript, css] + - repo: https://github.com/pre-commit/mirrors-eslint + rev: v8.24.0 + hooks: + - id: eslint + args: [--fix] + types_or: [javascript, css] + additional_dependencies: + - eslint + - eslint-config-prettier diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..d6245f5 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "tabWidth": 4, + "printWidth": 120, + "endOfLine": "auto" +} diff --git a/index.html b/index.html new file mode 100644 index 0000000..3bf2c04 --- /dev/null +++ b/index.html @@ -0,0 +1,17 @@ + + + + + Doses + + +

Doses converter

+ + + + + + + + + diff --git a/main.js b/main.js new file mode 100644 index 0000000..e69de29