Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #618 from Tecnativa/precommit-prettier-eslintfix
Browse files Browse the repository at this point in the history
[IMP] Add Prettier and ESLint with --fix
  • Loading branch information
pedrobaeza committed Jan 24, 2020
2 parents f565184 + bb15a90 commit 1b93706
Show file tree
Hide file tree
Showing 6 changed files with 324 additions and 375 deletions.
38 changes: 19 additions & 19 deletions sample_files/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: python
cache:
directories:
- $HOME/.cache/pip
# Add cache for pre-commit on repo that uses it (mandatory for >= 13)
- $HOME/.cache/pre-commit
- $HOME/.cache/pip
# Add cache for pre-commit on repo that uses it (mandatory for >= 13)
- $HOME/.cache/pre-commit

python:
# For branches <= 10.0, put `- "2.7.13"`
Expand All @@ -20,7 +20,7 @@ addons:
# Search your sources alias here:
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
packages:
- expect-dev # provides unbuffer utility
- expect-dev # provides unbuffer utility
# Search your packages here:
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
# For wkhtmltopdf, see the env section below
Expand Down Expand Up @@ -69,21 +69,21 @@ jobs:

env:
global:
- VERSION="10.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0"
# Set this variable to some version existing as linux-generic build on
# https://github.com/wkhtmltopdf/wkhtmltopdf/releases
# if you need to install wkhtmltopdf
# - WKHTMLTOPDF_VERSION="0.12.5"
# Set the above to install a `wkhtmltopdf` version that is not the one provided
# by the `pov-wkhtmltopdf` repo.
- PHANTOMJS_VERSION="latest"
# The above line controls the PhantomJS version that is used for JS testing.
# It is not necessary to include this value unless you are altering the default.
# Use `OS` to skip the PhantomJS upgrade & use the system version instead.
- WEBSITE_REPO="1"
# Use the above line to install dependencies that are required for website repos:
# * SASS & Bootstrap-SASS
# * Compass
- VERSION="10.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0"
# Set this variable to some version existing as linux-generic build on
# https://github.com/wkhtmltopdf/wkhtmltopdf/releases
# if you need to install wkhtmltopdf
# - WKHTMLTOPDF_VERSION="0.12.5"
# Set the above to install a `wkhtmltopdf` version that is not the one provided
# by the `pov-wkhtmltopdf` repo.
- PHANTOMJS_VERSION="latest"
# The above line controls the PhantomJS version that is used for JS testing.
# It is not necessary to include this value unless you are altering the default.
# Use `OS` to skip the PhantomJS upgrade & use the system version instead.
- WEBSITE_REPO="1"
# Use the above line to install dependencies that are required for website repos:
# * SASS & Bootstrap-SASS
# * Compass

install:
- git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
Expand Down
2 changes: 2 additions & 0 deletions sample_files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@

${REPO_DESCRIPTION}

<!-- prettier-ignore-start -->
[//]: # (addons)
This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.
[//]: # (end addons)
<!-- prettier-ignore-end -->

----

Expand Down
291 changes: 0 additions & 291 deletions sample_files/pre-commit-13.0/.eslintrc

This file was deleted.

0 comments on commit 1b93706

Please sign in to comment.