Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
a3f92897
Verified
Commit
a3f92897
authored
2 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Activate reformat and lint for JS and other files
(cherry picked from commit
2b20f8ac
)
parent
c48c9201
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.eslintrc.js
+11
-5
11 additions, 5 deletions
.eslintrc.js
.prettierignore
+87
-0
87 additions, 0 deletions
.prettierignore
.stylelintrc.json
+1
-1
1 addition, 1 deletion
.stylelintrc.json
aleksis/core/settings.py
+8
-0
8 additions, 0 deletions
aleksis/core/settings.py
tox.ini
+6
-0
6 additions, 0 deletions
tox.ini
with
113 additions
and
6 deletions
.eslintrc.js
+
11
−
5
View file @
a3f92897
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
,
},
};
This diff is collapsed.
Click to expand it.
.prettierignore
0 → 100644
+
87
−
0
View file @
a3f92897
# 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
This diff is collapsed.
Click to expand it.
.stylelintrc.json
+
1
−
1
View file @
a3f92897
{
"extends"
:
"stylelint-config-standard"
"extends"
:
[
"stylelint-config-standard"
,
"stylelint-config-prettier"
]
}
This diff is collapsed.
Click to expand it.
aleksis/core/settings.py
+
8
−
0
View file @
a3f92897
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
6
−
0
View file @
a3f92897
...
...
@@ -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
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment