Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PASE-2049 | Resolve ESLint errors (#861)
* Apply linter fixes * Testing so far * Remove seemingly-outdated @wordpress/no-global-event-listener ignore * Apply lint-fix to a couple files * Make prod:js happy with VideoShowcase eslint-wise * Address misc eslint issues in prod:js that were preventing builds to update correctly * Update package lock with some jest stuff someone apparently thinks we need * Add claryfing comments on eslint config files * Disable camelcase for larva eslint rule * Ignore ESLint import/no-extraneous-dependencies (Larva package) * Resolve "config is already in outside scope" issue in twig-to-php-parser * Resolve ESLint issues with twig-to-php-parser * Allow console.log for error in twig-to-php-parser/getConfig * Address ESLint issues in css-algo/rule.js * Address ESLint findings on stylelint-config/.../custom-formatter.js * Remove duplicate stylelint rules * sort stylelint rules alphabetically * Make Prettier happy * Add missing return types * Add React compatibility to larva package ESLint * Swap ReactDOM.render with React client createRoot * Revert "Swap ReactDOM.render with React client createRoot" This reverts commit ea6639e. * Catch up Larva lock versioning to the .1 patch * Remove @babel/preset-react from pmc-larva package lock? (happened after npm install) * Remove @wordpress/jest-preset-default from Jest config because it messes the window/environment and cascades into terrible things * Update package lock * Run lint-fix on VideoShowcase (so prod:js can build) * Ignore old-school React render method * Update package locks from latest release * Rename some vars in TokensView that were already defined "above scope" * Address ESLint issues in TokenListItem * Address ESLint issues in site/InitialForm * Address ESLint stuff in write-json.js * backstopjs-config/index.js linting * Fix a couple ESLint issues in scripts/init.js * Address misc ESLint issues in more larva/scripts/*.js * Address more console.log ignores in writeJson * Ignore console logs from linting. * Address ESLint issues in getSubDirectoryNames * Address getPatternsIndexPath() ESLint issue * Ignore ESLint issue for console.log() in getPatternRoutes * Ignore ESLint issue in getPatternVariants * Address ESLint issues in getPatternData * Allow console log in getAppConfiguration * Address ESLint stuff on getAllPatternsObj * Ignore build console logs. * Remove broken getPatternRoutes @link * Ignore ESLint issue * Remove unused vars from video-card prototype * Ignore mystery backstop variable. * Ignore top-stories array map thing * set special-coverage prototype heading_1/2 consts * Ignore another array.map return lint * Ignore more array.map return lint warnings * eslint define params * Address ESLint issues in mega menu * help.js script linting * Fix parsing error return outside of function with process.exit( 0 ) * Swap console logs with process write * Fix var scoping in pmc-footer * Remove unused title component prototype in product-grid * Remove undefined array value in how-we-test-products * Address misc undefined constants + unused constants * Address undefined consts in age-gate prototype * Ignore duplicate object key (there's styling on both!) * Note globals and remove unused vars from webfont config * Fix minor JS lint issues in larva-js/src/interface * Move MobileHeightToggle test into __test__ dir so ESLint doesn't freak out * Remove unused event params :D * Update changelog --------- Co-authored-by: Nayeon Kim <[email protected]> Co-authored-by: Marc Garcia <[email protected]>
- Loading branch information