Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !9977

Move ESLint cache file into node_modules

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/ehsankhfr/eslint-cache-file into master Nov 01, 2020
  • Overview 2
  • Commits 4
  • Pipelines 0
  • Changes 1

Created by: ehsankhfr

Fix #9970 (closed) Fix #10161 (closed)

As mentioned in https://github.com/facebook/create-react-app/pull/9977#discussion_r515618643, likewise eslint-loader, we need to support non-existing OR inaccessible path fallback for cache folder into os.tempdir, as current(new) eslint plugin doesn't support the fallback.

TEST PLAN:

To test how permission issue folder fallback works:

  1. under the node_module
    • Remove the .cache folder content, if folder exists.
    • Or, create .cache folder
  2. run chmod u=r--,g=r--,o=r-- node_modules/.cache
  3. run npm start
  4. ls node_modules/.cache should not show the .eslintcache file

To test how non-existent folder fallback works:

  1. under the node_module
    • Remove the .cache folder content, if folder exists
  2. run npm start
  3. ls node_modules/.cache should not show the .eslintcache file

To test how normal flow of caching works:

  1. under the node_module
    1. Make sure the .cache folder exists
    2. Make sure there is enough access to the folder .cache: chmod u=rwx,g=r-x,o=r-x node_modules/.cache
  2. run npm start
  3. ls node_modules/.cache should show the .eslintcache file
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/ehsankhfr/eslint-cache-file