• Resolved ameeyswain

    (@ameeyswain)


    We have been trying to run eslint after we upgrade the WP super cache plugin to 1.9.2 but it’s throwing an error. The eslint config file is exist on root director but not sure why it’s reading the config which is exist on cache plugin. We have tried several things to fix this but didn’t get any absolute solution for it.

    Oops! Something went wrong! :(
    ESLint: 8.23.1
    Error: Cannot read config file: 
    website/wp-content/plugins/wp-super-cache/.eslintrc.cjs
    Error: Cannot find module 'jetpack-js-tools/eslintrc/base'

    Will be waiting for the solution.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Adnan Haque (a11n)

    (@adnan007)

    Hi @ameeyswain!
    We share some configurations, including eslint between WPSC and other jetpack plugins in the Jetpack monorepo.

    Are you trying to use eslint outside of the context of developing WPSC? In that case, I’d recommend excluding the plugin directory from eslint. The .eslintrc.cjs should probably be excluded from the published plugin, and I’ll take note of doing so in the next release.

    Thread Starter ameeyswain

    (@ameeyswain)

    Thanks @adnan007 ,

    will be waiting for next release.

    Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @ameeyswain

    WP Super Cache 1.9.4 is scheduled for release early next week, so keep an eye out for that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘eslint not working after upgrade WP Super Cache Search’ is closed to new replies.