Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-97876

Avoid ESLint warnings about ignored-by-default files

    Details

      Description

      We explicitly manage the list of paths that we want to lint and pass that to ESLint's programmatic interface, but it still complains about files like ".eslintrc.js" because it is ignored by default (along with other dot files, apparently: https://github.com/eslint/eslint/issues/6645).

      The warnings look like this:

      0:0 warning File ignored by default. Use a negated ignore pattern (like "--ignore-pattern '!<relative/path/to/filename>'") to override

      By passing in a negated "ignorePattern" configuration of "!*" we can avoid those warnings. This will fix about 8 spurious warnings in a run across all of liferay-portal.

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            greg.hurrell Greg Hurrell (Inactive)
            Engineering Assignee:
            Greg Hurrell (Inactive)
            Recent user:
            Jason Pince
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.2.X
                Master