Skip to content

Commit

Permalink
KAD-1517 Exclude all blocks from linting so we can enable as things a…
Browse files Browse the repository at this point in the history
…re fixed
  • Loading branch information
oakesjosh committed Feb 22, 2024
1 parent ea85159 commit c56d4fd
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 3 deletions.
47 changes: 47 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,53 @@ const eslintConfig = {
'import/named': 'off',
'prettier/prettier': 'off', // Disabling prettier warnings until configured how we want
},
ignorePatterns:
[
'node_modules/',
'dist/',
'build/',
'vendor/',
'gulp/',
'src/plugin.js',
'src/assets/',
'src/config/',
'src/dashboard/',
'src/extension/',
'src/packages/',
'src/plugins/',
'src/settings/',
'src/blocks/accordion/',
'src/blocks/advanced-form/',
'src/blocks/advancedbtn/',
'src/blocks/advancedgallery/',
'src/blocks/advancedheading/',
'src/blocks/column/',
'src/blocks/countdown/',
'src/blocks/countup/',
'src/blocks/form/',
'src/blocks/googlemaps/',
'src/blocks/header/',
'src/blocks/icon/',
'src/blocks/iconlist/',
'src/blocks/image/',
'src/blocks/infobox/',
'src/blocks/listitem/',
'src/blocks/lottie/',
'src/blocks/navigation/',
'src/blocks/navigation-link/',
'src/blocks/navigation-submenu/',
'src/blocks/posts/',
'src/blocks/progress-bar/',
'src/blocks/rowlayout/',
'src/blocks/show-more/',
'src/blocks/single-icon/',
'src/blocks/singlebtn/',
'src/blocks/spacer/',
'src/blocks/tableofcontents/',
'src/blocks/tabs/',
'src/blocks/testimonial/',
'src/blocks/testimonials/'
],
};

module.exports = eslintConfig;
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { parallel, series } = require('gulp');
const { parallel } = require('gulp');

const jsTasks = require('./gulp/tasks/js');
const stylesTasks = require('./gulp/tasks/styles');
Expand Down
4 changes: 2 additions & 2 deletions src/early-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { assign, get } from 'lodash';
/**
* Add animation attributes
*
* @param {array} settings The block settings.
* @returns {array} The block settings with animation added.
* @param {Array} settings The block settings.
* @return {Array} The block settings with animation added.
*/
export function blockMetadataAttribute( settings ) {

Expand Down

0 comments on commit c56d4fd

Please sign in to comment.