Skip to content
Snippets Groups Projects
Verified Commit a3f92897 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Activate reformat and lint for JS and other files

(cherry picked from commit 2b20f8ac)
parent c48c9201
No related branches found
No related tags found
No related merge requests found
module.exports = {
extends: [
'plugin:vue/strongly-recommended',
"eslint:recommended",
"plugin:vue/strongly-recommended",
"prettier",
],
rules: {
'vue/no-unused-vars': 'off',
'vue/multi-word-component-names': 'off'
}
}
"vue/no-unused-vars": "off",
"vue/multi-word-component-names": "off",
},
env: {
browser: true,
node: true,
},
};
# Byte-compiled / optimized / DLL files
*$py.class
*.py[cod]
__pycache__/
# Distribution / packaging
*.egg
*.egg-info/
.Python
.eggs/
.installed.cfg
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
# Installer logs
pip-delete-this-directory.txt
pip-log.txt
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
# pyenv
.python-version
# Environments
.env
.venv
ENV/
env/
venv/
# Editors
*~
DEADJOE
\#*#
# IntelliJ
.idea
.idea/
# Database
db.sqlite3
# Sphinx
docs/_build/
# TeX
*.aux
# Generated files
/node_modules/
/static/
/whoosh_index/
poetry.lock
.coverage
.mypy_cache/
.tox/
htmlcov/
maintenance_mode_state.txt
media/
package-lock.json
yarn.lock
# VSCode
.vscode/
.history/
*.code-workspace
/cache
# Add HTML files to avoid problems with unsupported Django templates
*.html
{
"extends": "stylelint-config-standard"
"extends": ["stylelint-config-standard", "stylelint-config-prettier"]
}
......@@ -606,6 +606,14 @@ YARN_INSTALLED_APPS = [
"webpack-bundle-tracker@^1.6.0",
"webpack-cli@^4.10.0",
"vue-i18n@8",
"eslint@^8.26.0",
"eslint-plugin-vue@^9.7.0",
"eslint-webpack-plugin@^3.2.0",
"eslint-config-prettier@^8.5.0",
"stylelint@^14.14.0",
"stylelint-config-standard@^29.0.0",
"stylelint-webpack-plugin@^3.3.0",
"stylelint-config-prettier@^9.0.3",
]
merge_app_settings("YARN_INSTALLED_APPS", YARN_INSTALLED_APPS, True)
......
......@@ -6,6 +6,7 @@ envlist = py37,py38,py39
[testenv]
whitelist_externals = poetry
sudo
node
skip_install = true
envdir = {toxworkdir}/globalenv
commands_pre =
......@@ -14,6 +15,8 @@ commands_pre =
poetry run aleksis-admin collectstatic --no-input
commands =
poetry run pytest --cov=. {posargs} aleksis/
setenv=
NODE_PATH=cache/node_modules/
[testenv:selenium]
setenv =
......@@ -27,6 +30,8 @@ commands =
poetry run black --check --diff aleksis/
poetry run isort -c --diff --stdout aleksis/
poetry run flake8 {posargs} aleksis/
node cache/node_modules/.bin/prettier --check .
node cache/node_modules/.bin/eslint **/*/assets/**/*.{js,vue}
[testenv:security]
commands =
......@@ -46,6 +51,7 @@ commands = poetry run make -C docs/ html {posargs}
commands =
poetry run isort aleksis/
poetry run black aleksis/
node cache/node_modules/.bin/prettier --write .
[testenv:makemessages]
commands =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment