Skip to content

Commit

Permalink
deps and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yagebu committed Aug 3, 2024
1 parent 8a3bd8b commit 365cd5d
Show file tree
Hide file tree
Showing 19 changed files with 152 additions and 176 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
skip: ["eslint"]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.4
rev: v0.5.6
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -25,7 +25,7 @@ repos:
files: \.(css|svelte)$
require_serial: true
additional_dependencies:
- "stylelint@16.7.0"
- "stylelint@16.8.1"
- "stylelint-config-recess-order@5.0.1"
- "stylelint-config-standard@36.0.1"
- "postcss-html@1.7.0"
Expand Down
36 changes: 18 additions & 18 deletions constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ furo==2024.7.18
# via fava (pyproject.toml)
google-api-core==2.19.1
# via google-api-python-client
google-api-python-client==2.137.0
google-api-python-client==2.139.0
# via beancount
google-auth==2.32.0
# via
Expand All @@ -101,7 +101,7 @@ idna==3.7
# requests
imagesize==1.4.1
# via sphinx
importlib-metadata==8.1.0
importlib-metadata==8.2.0
# via twine
iniconfig==2.0.0
# via pytest
Expand All @@ -113,7 +113,7 @@ jaraco-classes==3.4.0
# via keyring
jaraco-context==5.3.0
# via keyring
jaraco-functools==4.0.1
jaraco-functools==4.0.2
# via
# cheroot
# keyring
Expand All @@ -127,7 +127,7 @@ jinja2==3.1.4
# flask
# flask-babel
# sphinx
keyring==25.2.1
keyring==25.3.0
# via twine
lml==0.1.0
# via
Expand Down Expand Up @@ -155,7 +155,7 @@ more-itertools==10.3.0
# cheroot
# jaraco-classes
# jaraco-functools
mypy==1.11.0
mypy==1.11.1
# via fava (pyproject.toml)
mypy-extensions==1.0.0
# via mypy
Expand Down Expand Up @@ -192,11 +192,11 @@ ply==3.11
# via
# fava (pyproject.toml)
# beancount
pre-commit==3.7.1
pre-commit==3.8.0
# via fava (pyproject.toml)
proto-plus==1.24.0
# via google-api-core
protobuf==5.27.2
protobuf==5.27.3
# via
# google-api-core
# googleapis-common-protos
Expand Down Expand Up @@ -240,7 +240,7 @@ pyproject-api==1.7.1
# via tox
pyproject-hooks==1.1.0
# via build
pytest==8.3.1
pytest==8.3.2
# via
# fava (pyproject.toml)
# beancount
Expand Down Expand Up @@ -274,7 +274,7 @@ rsa==4.9
# via google-auth
secretstorage==3.3.3
# via keyring
setuptools==71.1.0
setuptools==72.1.0
# via
# fava (pyproject.toml)
# pyinstaller
Expand All @@ -301,17 +301,17 @@ sphinx-autodoc-typehints==2.2.3
# via fava (pyproject.toml)
sphinx-basic-ng==1.0.0b2
# via furo
sphinxcontrib-applehelp==1.0.8
sphinxcontrib-applehelp==2.0.0
# via sphinx
sphinxcontrib-devhelp==1.0.6
sphinxcontrib-devhelp==2.0.0
# via sphinx
sphinxcontrib-htmlhelp==2.0.6
sphinxcontrib-htmlhelp==2.1.0
# via sphinx
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==1.0.8
sphinxcontrib-qthelp==2.0.0
# via sphinx
sphinxcontrib-serializinghtml==1.1.10
sphinxcontrib-serializinghtml==2.0.0
# via sphinx
texttable==1.7.0
# via pyexcel
Expand All @@ -321,13 +321,13 @@ tox==4.16.0
# via
# fava (pyproject.toml)
# tox-uv
tox-uv==1.9.1
tox-uv==1.11.1
# via fava (pyproject.toml)
twine==5.1.1
# via fava (pyproject.toml)
types-setuptools==71.1.0.20240723
types-setuptools==71.1.0.20240726
# via fava (pyproject.toml)
types-simplejson==3.19.0.20240310
types-simplejson==3.19.0.20240801
# via fava (pyproject.toml)
typing-extensions==4.12.2
# via mypy
Expand All @@ -337,7 +337,7 @@ urllib3==2.2.2
# via
# requests
# twine
uv==0.2.27
uv==0.2.33
# via tox-uv
virtualenv==20.26.3
# via
Expand Down
9 changes: 6 additions & 3 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const misc = {
"@typescript-eslint/explicit-module-boundary-types": ON,
"@typescript-eslint/promise-function-async": ON,
"@typescript-eslint/strict-boolean-expressions": ON,
"@typescript-eslint/no-unnecessary-type-parameters": OFF,
curly: [ON, "all"],
eqeqeq: [ON, "smart"],
};
Expand Down Expand Up @@ -47,9 +48,9 @@ const sortImports = {
],
};

const extraFileExtensions = [".svelte"];
module.exports = {
extends: [
"plugin:deprecation/recommended",
"plugin:svelte/recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/strict-type-checked",
Expand All @@ -62,8 +63,8 @@ module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json", "./tsconfig.confs.json"],
extraFileExtensions: [".svelte"],
projectService: true,
extraFileExtensions,
},
rules: {
...misc,
Expand All @@ -76,6 +77,8 @@ module.exports = {
parser: "svelte-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
projectService: true,
extraFileExtensions,
},
rules: {
"svelte/button-has-type": ON,
Expand Down
Loading

0 comments on commit 365cd5d

Please sign in to comment.