forked from learningequality/kolibri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
34 lines (34 loc) · 1.3 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: a11d9314b22d8f8c7556443875b731ef05965464
hooks:
- id: trailing-whitespace
- id: flake8
- id: check-yaml
- id: check-added-large-files
- id: debug-statements
- id: end-of-file-fixer
- repo: https://github.com/asottile/reorder_python_imports
sha: v0.3.5
hooks:
- id: reorder-python-imports
language_version: python2.7
- repo: local
hooks:
- id: frontend-prettify
name: Prettier Linting of JS and Vue files
description: This hook rewrites JS and the JS portion of Vue files to conform to prettier standards.
entry: yarn run lint-js -- -w
language: system
files: \.(js|vue)$
- id: frontend-eslint
name: ESLinting of JS and Vue files
description: This hook rewrites JS and the JS portion of Vue files to conform to our ESLint standards.
entry: node node_modules/eslint/bin/eslint.js
language: system
files: \.(js|vue)$
- id: frontend-stylelint
name: Lint SCSS
description: This hook checks that SCSS conforms to our Stylelint standards.
entry: node node_modules/stylelint/bin/stylelint.js
language: system
files: \.(scss|vue)$