Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
🔄 Synced file(s) with WordPress/openverse (#2017)
Openverse (Bot)17ab769d41bb
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 871e3f05c..5fc82d80f 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -1,4 +1,9 @@-exclude: Pipfile\.lock|migrations|\.idea|node_modules+# This file is being synced from WordPress/openverse. Any changes made to it+# here will be overwritten. Please make any necessary edits to these files:+# - https://github.com/WordPress/openverse/blob/main/.pre-commit-config.yaml.jinja+# - https://github.com/WordPress/openverse/blob/main/.pre-commit-config.frontend.yaml.jinja++exclude: Pipfile\.lock|migrations|\.idea|node_modules|archiverepos:- repo: local # More local hooks are defined at the bottom.@@ -31,66 +36,26 @@ repos:- id: fix-encoding-pragmaargs:- --remove- - id: requirements-txt-fixer-- - repo: https://github.com/PyCQA/isort- rev: 5.9.1- hooks:- - id: isort- files: \.py$- exclude: ^build/.*$|^.tox/.*$|^venv/.*$- args:- - --lines-after-imports=2- - --multi-line=3- - --trailing-comma- - --force-grid-wrap=0- - --use-parentheses- - --ensure-newline-before-comments- - --line-length=88-- - repo: https://github.com/PyCQA/flake8- rev: 3.9.2- hooks:- - id: flake8- args:- - --config=automations/.flake8-- - repo: https://github.com/ambv/black- rev: 22.3.0- hooks:- - id: black- args:- - --safe-- - repo: https://github.com/pre-commit/mirrors-prettier- rev: v2.6.0- hooks:- - id: prettier- exclude: \.vue$- additional_dependencies:- repo: https://github.com/pre-commit/mirrors-eslintrev: v8.15.0hooks:- id: eslintfiles: \.(js|ts|vue)$- exclude: ^nuxt-template-overrides/.*$- 'types': [file] # ESLint only accepts [javascript] by default+ exclude: ^nuxt-template-overrides/.*$ # ESLint raises warnings for ignored files.+ 'types': [file] # ESLint only accepts [javascript] by default.args:- --ignore-path=.gitignore- --ignore-path=.eslintignore- --max-warnings=0additional_dependencies:- '@babel/[email protected]'- '@intlify/[email protected]'- '@nuxtjs/[email protected]'- '@typescript-eslint/[email protected]'- '@typescript-eslint/[email protected]'@@ -100,6 +65,17 @@ repos:+ # Use the `.prettierignore` and `.prettier.config.js` files to configure project-specific requirements.+ - repo: https://github.com/pre-commit/mirrors-prettier+ rev: v2.6.0+ hooks:+ - id: prettier+ exclude: \.md$ # TODO: https://github.com/WordPress/openverse/issues/333+ additional_dependencies:+- repo: https://github.com/koalaman/shellcheck-precommitrev: v0.8.0hooks:diff --git a/prettier.config.js b/prettier.config.jsindex 359e05627..6b28007e9 100644--- a/prettier.config.js+++ b/prettier.config.js@@ -1,9 +1,13 @@+// This file is being synced from WordPress/openverse. Any changes made to it+// here will be overwritten. Please make any necessary edits to these files:+// - https://github.com/WordPress/openverse/blob/main/prettier.config.js.jinja+// - https://github.com/WordPress/openverse/blob/main/prettier.config.frontend.js.jinja+module.exports = {trailingComma: 'es5',tabWidth: 2,semi: false,singleQuote: true,- vueIndentScriptAndStyle: false,overrides: [{files: '*.yml',@@ -12,6 +16,7 @@ module.exports = {},},],+ vueIndentScriptAndStyle: false,plugins: [require('prettier-plugin-tailwindcss')],tailwindConfig: 'tailwind.config.js',}diff --git a/src/components/VFourOhFour.vue b/src/components/VFourOhFour.vueindex a0865bcf8..f49849276 100644--- a/src/components/VFourOhFour.vue+++ b/src/components/VFourOhFour.vue@@ -3,7 +3,7 @@class="error relative flex min-h-screen flex-col overflow-x-hidden bg-yellow"><svg- class="pointer-events-none absolute top-20 z-0 -mt-[10%] -ml-[20%] w-[140%] fill-dark-charcoal px-6 opacity-5 lg:mx-auto lg:ml-0 lg:w-full lg:px-16"+ class="z-0 pointer-events-none absolute top-20 -mt-[10%] -ml-[20%] w-[140%] fill-dark-charcoal px-6 opacity-5 lg:mx-auto lg:ml-0 lg:w-full lg:px-16"xmlns="http://www.w3.org/2000/svg"viewBox="0 0 1320 569"aria-hidden="true"@@ -41,10 +41,7 @@</div></main>- <VFooter- v-if="isNewHeaderEnabled"- mode="internal"- />+ <VFooter v-if="isNewHeaderEnabled" mode="internal" /></div></template>