Commit c2858cd4 authored by Ines WALLON's avatar Ines WALLON
Browse files

fix: add grumphp && fix eslint

parent 05d88565
Pipeline #725 failed with stages
in 8 minutes and 37 seconds
{
"name": "drupal-composer/drupal-project",
"description": "Project template for Drupal 9 projects with composer",
"type": "project",
"license": "GPL-2.0+",
"description": "Project template for Drupal 9 projects with composer",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Ines WALLON",
......@@ -29,23 +29,22 @@
"drupal/token": "1.9.0",
"drush/drush": "10.4.0",
"kint-php/kint": "3.3",
"webmozart/path-util": "^2.3",
"wikimedia/composer-merge-plugin": "dev-feature/composer-v2"
},
"conflict": {
"drupal/drupal": "*"
},
"require-dev": {
"drupal/core-dev": "9.1.4",
"drupal/devel": "4.1.1",
"ergebnis/composer-normalize": "^2.13",
"mavimo/phpstan-junit": "^0.3.0",
"mglaman/phpstan-drupal": "^0.12.8",
"phpro/grumphp": "^1.3",
"phpspec/prophecy-phpunit": "^2.0",
"roave/security-advisories": "dev-master"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"discard-changes": true,
"optimize-autoloader": true,
......@@ -57,42 +56,44 @@
},
"sort-packages": true
},
"scripts": {
"drupal-l10n": "DrupalComposer\\DrupalL10n\\Plugin::download",
"drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold",
"post-install-cmd": [
"@drupal-scaffold"
],
"post-update-cmd": [
"@drupal-scaffold"
]
},
"extra": {
"installer-paths": {
"web/core": ["type:drupal-core"],
"web/libraries/{$name}": ["type:drupal-library"],
"web/modules/contrib/{$name}": ["type:drupal-module"],
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
"web/themes/contrib/{$name}": ["type:drupal-theme"],
"drush/contrib/{$name}": ["type:drupal-drush"]
},
"drupal-scaffold": {
"locations": {
"web-root": "web/"
},
"file-mapping": {
"example.gitignore": false,
"README.txt": false,
"[web-root]/example.gitignore": false,
"[web-root]/update.php": false,
"[web-root]/web.config": false,
"[web-root]/README.txt": false,
"[web-root]/.eslintrc.json": false,
"[web-root]/sites/development.services.yml": false,
"[web-root]/sites/example.settings.local.php": false,
"[web-root]/sites/default/development.settings.php": false
"README.txt": false,
"[web-root]/.eslintrc.json": false,
"[web-root]/README.txt": false,
"[web-root]/example.gitignore": false,
"[web-root]/sites/default/development.settings.php": false,
"[web-root]/sites/development.services.yml": false,
"[web-root]/sites/example.settings.local.php": false,
"[web-root]/update.php": false,
"[web-root]/web.config": false,
"example.gitignore": false
},
"locations": {
"web-root": "web/"
}
},
"installer-paths": {
"drush/contrib/{$name}": [
"type:drupal-drush"
],
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library"
],
"web/modules/contrib/{$name}": [
"type:drupal-module"
],
"web/profiles/contrib/{$name}": [
"type:drupal-profile"
],
"web/themes/contrib/{$name}": [
"type:drupal-theme"
]
},
"merge-plugin": {
"include": [
"composer.merge.json",
......@@ -114,5 +115,17 @@
"type": "vcs",
"url": "https://github.com/mcaskill/composer-merge-plugin"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-install-cmd": [
"@drupal-scaffold"
],
"post-update-cmd": [
"@drupal-scaffold"
],
"drupal-l10n": "DrupalComposer\\DrupalL10n\\Plugin::download",
"drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold"
}
}
This diff is collapsed.
......@@ -13,7 +13,7 @@ Lint JS:
extends: .code_quality_front
script:
- cd web/ && ./core/node_modules/.bin/eslint
--config core/.eslintrc.json
--config core/.eslintrc.legacy.json
--format junit --output-file eslint.xml
modules/contrib_project/
artifacts:
......
parameters:
ascii:
failed: vendor/vijaycs85/drupal-quality-checker/resources/ascii/grumpy.txt
succeeded: vendor/vijaycs85/drupal-quality-checker/resources/ascii/happy.txt
git_dir: .
bin_dir: vendor/bin
grumphp:
process_timeout: 480
git_hook_variables:
VAGRANT_PROJECT_DIR: /project
VAGRANT_PROJECT_DIR: /project/
EXEC_GRUMPHP_COMMAND: docker-compose run --no-deps web
tasks:
phplint: ~
yamllint: ~
composer: ~
composer_normalize: ~
composer:
file: ./composer.json
no_check_all: false
no_check_lock: false
no_check_publish: false
no_local_repository: false
with_dependencies: false
strict: false
composer_normalize:
indent_size: 4
jsonlint: ~
twigcs: ~
phpcs:
standard: Drupal
standard:
- vendor/drupal/coder/coder_sniffer/Drupal
- vendor/drupal/coder/coder_sniffer/DrupalPractice
ignore_patterns:
- .github
- .gitlab
- bower_components
- node_modules
- vendor
- example.settings.local.php
- example.settings.php
triggered_by:
- php
- module
- inc
- install
- test
- profile
- theme
- css
- info
- info.yml
- txt
- md
phpstan:
configuration: /project/scripts/quality/phpstan.neon.dist
memory_limit: "-1"
use_grumphp_paths: true
ignore_patterns:
- .gitlab
- bower_components
- node_modules
- vendor
- example.settings.local.php
- example.settings.php
triggered_by:
- php
- module
- install
- profile
- theme
git_commit_message:
enforce_capitalized_subject: false
type_scope_conventions:
- type: subject
- types:
- ci
- chore
- docs
- feat
- fix
- perf
- refactor
- revert
- style
- test
max_body_width: 72
max_subject_width: 60
case_insensitive: true
multiline: false
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment