diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6647cd43..1bc02b8f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -45,6 +45,7 @@ Once set up, you can install development dependencies: ```sh pdm install +pdm run deploy ``` For contributing to the documentation you need to install `npm` development diff --git a/package.json b/package.json index 47a35983..96b3e58a 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,17 @@ }, "prettier": "@vizzu/prettier-config", "eslintConfig": { - "extends": [ - "@vizzu/eslint-config/standard" + "overrides": [ + { + "files": [ + "*.js", + "*.mjs", + "*.cjs" + ], + "extends": [ + "@vizzu/eslint-config/standard" + ] + } ] } } diff --git a/pyproject.toml b/pyproject.toml index 9ff0bf93..0f5c92d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,7 +97,7 @@ lint-tools = {composite = ["lint-tools-py", "lint-tools-js"]} lint-tools-py = {composite = ["lint-pylint tools"]} lint-tools-js = {composite = ["lint-eslint tools"]} lint-pylint = "pylint" -lint-eslint = "npx eslint --ext .js,.cjs,.mjs" +lint-eslint = "npx eslint" type = {composite = ["type-src", "type-tools"]} type-src = {composite = ["type-src-py"]} @@ -110,14 +110,14 @@ test = "tox" ci = {composite = ["ci-src", "ci-docs", "ci-tools"]} ci-src = {composite = ["ci-src-py", "ci-src-js"]} -ci-src-py = {composite = ["format-src-py ", "lint-src-py ", "type-src-py", "test"]} -ci-src-js = {composite = ["format-src-js ", "lint-src-js "]} +ci-src-py = {composite = ["format-src-py", "lint-src-py", "type-src-py", "test"]} +ci-src-js = {composite = ["format-src-js", "lint-src-js"]} ci-docs = {composite = ["ci-docs-py", "ci-docs-js"]} -ci-docs-py = {composite = ["format-docs-py "]} -ci-docs-js = {composite = ["format-docs-js ", "lint-docs-js "]} +ci-docs-py = {composite = ["format-docs-py"]} +ci-docs-js = {composite = ["format-docs-js", "lint-docs-js"]} ci-tools = {composite = ["ci-tools-py", "ci-tools-js"]} ci-tools-py = {composite = ["format-tools-py", "lint-tools-py", "type-tools-py"]} -ci-tools-js = {composite = ["format-tools-js ", "lint-tools-js "]} +ci-tools-js = {composite = ["format-tools-js ", "lint-tools-js"]} fix = {composite = ["fix-format", "fix-lint"]} @@ -142,7 +142,7 @@ fix-lint-docs = {composite = ["fix-lint-docs-js"]} fix-lint-docs-js = {composite = ["fix-lint-eslint docs"]} fix-lint-tools = {composite = ["fix-lint-tools-js"]} fix-lint-tools-js = {composite = ["fix-lint-eslint tools"]} -fix-lint-eslint = "npx eslint --ext .js,.cjs,.mjs --fix" +fix-lint-eslint = "npx eslint --fix" build-docs = {composite = ["python tools/docs/placeholder.py", "mkdocs build -f ./tools/docs/mkdocs.yml"]} deploy-docs = {composite = ["python tools/docs/placeholder.py", "python ./tools/docs/deploy.py"]}