platformsh / demo-project

MIT License
1 stars 8 forks source link

Address frontend deprecation warnings #87

Open chadwcarlson opened 11 months ago

chadwcarlson commented 11 months ago

Currently the frontend build includes npm WARN deprecated. Address this:

Processing activity: Chad Carlson pushed to Default-v2
    Found 233 commits

    Building application 'frontend' (runtime type: nodejs:18, tree: 8758b3d)
      Generating runtime configuration.

      Executing build hook...
        W: npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
        W: npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
        W: npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
        W: npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
        W: npm WARN deprecated workbox-cacheable-response@6.6.0: workbox-background-sync@6.6.0
        W: npm WARN deprecated @babel/plugin-proposal-private-methods@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.
        W: npm WARN deprecated @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
        W: npm WARN deprecated @babel/plugin-proposal-private-property-in-object@7.21.11: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.
        W: npm WARN deprecated @babel/plugin-proposal-numeric-separator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
        W: npm WARN deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
        W: npm WARN deprecated @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
        W: npm WARN deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.

        added 1613 packages, and audited 1614 packages in 31s

        286 packages are looking for funding
          run `npm fund` for details

        3 moderate severity vulnerabilities

        To address all issues (including breaking changes), run:
          npm audit fix --force

        Run `npm audit` for details.
        W: npm notice 
        W: npm notice New major version of npm available! 9.6.7 -> 10.2.3
        W: npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.3
        W: npm notice Run npm install -g npm@10.2.3 to update!
        W: npm notice 

        > frontend@0.1.0 build
        > react-scripts build

        Creating an optimized production build...
        Compiled with warnings.

        [eslint] 
        src/utility/api.ts
          Line 30:17:  Expected '===' and instead saw '=='  eqeqeq
          Line 32:24:  Expected '===' and instead saw '=='  eqeqeq
          Line 34:31:  Expected '===' and instead saw '=='  eqeqeq
          Line 39:31:  Expected '===' and instead saw '=='  eqeqeq
          Line 44:31:  Expected '===' and instead saw '=='  eqeqeq
          Line 49:31:  Expected '===' and instead saw '=='  eqeqeq

        Search for the keywords to learn more about each warning.
        To ignore, add // eslint-disable-next-line to the line before.
tylers-username commented 11 months ago

The eslint issue is resolved over here: https://github.com/platformsh/demo-project/pull/84