Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add no-useless-path-segments rule Fixes #471 #912

Merged
merged 13 commits into from
Dec 19, 2017

Commits on Aug 8, 2017

  1. Configuration menu
    Copy the full SHA
    9806019 View commit details
    Browse the repository at this point in the history
  2. add failing test

    graingert authored and ljharb committed Aug 8, 2017
    Configuration menu
    Copy the full SHA
    0b9e333 View commit details
    Browse the repository at this point in the history
  3. normalize path first, then count '../'s

    avoid problems with ./ham/ -> ./ham/index.js by simply
    consuming '..', path segment pairs.
    graingert authored and ljharb committed Aug 8, 2017
    Configuration menu
    Copy the full SHA
    ec8bfca View commit details
    Browse the repository at this point in the history
  4. path.normalize sometimes . eg when there's only one .

    seems to not normalize trailing path seps.
    
    ./foo -> foo
    ./ -> ./
    . -> .
    .. -> ..
    ../ -> ../
    graingert authored and ljharb committed Aug 8, 2017
    Configuration menu
    Copy the full SHA
    57eb999 View commit details
    Browse the repository at this point in the history
  5. add no-useless-path-segments fixer

    graingert authored and ljharb committed Aug 8, 2017
    Configuration menu
    Copy the full SHA
    80eba07 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    46bc9ae View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2017

  1. remove escape regexp

    graingert authored and ljharb committed Aug 9, 2017
    Configuration menu
    Copy the full SHA
    d09bf2c View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2017

  1. add test for double slashes

    graingert authored and ljharb committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    9fe6e9f View commit details
    Browse the repository at this point in the history
  2. use RegExp.prototype.test

    graingert authored and ljharb committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    1e04bd1 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2017

  1. Handle edge-case

    danny-andrews authored and ljharb committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    b69faca View commit details
    Browse the repository at this point in the history
  2. Use resolve plugin

    danny-andrews authored and ljharb committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    b80a62f View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2017

  1. Fix typo

    danny-andrews authored and ljharb committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    c080287 View commit details
    Browse the repository at this point in the history
  2. Add test case

    danny-andrews authored and ljharb committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    3090e84 View commit details
    Browse the repository at this point in the history