diff --git a/defaults.yml b/defaults.yml index 507c204c..3bbf5c7c 100644 --- a/defaults.yml +++ b/defaults.yml @@ -302,3 +302,21 @@ styleguide: root: 'styleguide' # Command to compile the style guide assets, for use during the build and artifact steps. command: 'yarn default' + +# Configuration for linting custom javascript. +# +# Update these properties to reflect the directories and extensions used for +# your project's custom javascript. +# @see https://eslint.org/docs/latest/use/core-concepts +eslint: + # Run eslint on custom modules AND themes, this must be a single value. + # @see: https://eslint.org/docs/latest/use/command-line-interface#run-the-cli + # + # If you need multiple directories that don't match a single pattern, you + # may need to add multiple config values here and add a for loop to the build + # target for eslint. + directory: "${drupal.root}/**/custom/" + # Run eslint on files with .es6.js extension. + # This can be a comma separated list. + # @see: https://eslint.org/docs/latest/use/command-line-interface#--ext + extensions: ".es6.js" diff --git a/defaults/install/build.xml b/defaults/install/build.xml index ff91ef1e..dbee1d35 100644 --- a/defaults/install/build.xml +++ b/defaults/install/build.xml @@ -128,6 +128,9 @@ + + + @@ -143,6 +146,13 @@ + + + + + + + @@ -151,6 +161,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/defaults/install/phpcs.xml b/defaults/install/phpcs.xml index 0fe430df..cacd6a09 100644 --- a/defaults/install/phpcs.xml +++ b/defaults/install/phpcs.xml @@ -16,7 +16,7 @@ - +