xo 0.53.0 → 0.53.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +6 -11
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -53,7 +53,7 @@ const lintText = async (string, options) => {
53
53
  filePath
54
54
  && (
55
55
  micromatch.isMatch(path.relative(cwd, filePath), ignorePatterns)
56
- || isGitIgnoredSync({cwd, ignore: ignorePatterns})(filePath)
56
+ || isGitIgnoredSync({cwd})(filePath)
57
57
  )
58
58
  ) {
59
59
  return getIgnoredReport(filePath);
@@ -87,16 +87,11 @@ const lintFiles = async (patterns, options) => {
87
87
  for (const options of filesWithOptions) {
88
88
  const {filePath, eslintOptions} = options;
89
89
  const {cwd, baseConfig: {ignorePatterns}} = eslintOptions;
90
- if (filePath
91
- && (
92
- micromatch.isMatch(path.relative(cwd, filePath), ignorePatterns)
93
- || isGitIgnoredSync({cwd, ignore: ignorePatterns})(filePath)
94
- )) {
95
- continue;
96
- }
97
-
98
- // eslint-disable-next-line no-await-in-loop
99
- if ((await eslint.isPathIgnored(filePath))) {
90
+ if (
91
+ micromatch.isMatch(path.relative(cwd, filePath), ignorePatterns)
92
+ // eslint-disable-next-line no-await-in-loop
93
+ || await eslint.isPathIgnored(filePath)
94
+ ) {
100
95
  continue;
101
96
  }
102
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xo",
3
- "version": "0.53.0",
3
+ "version": "0.53.1",
4
4
  "description": "JavaScript/TypeScript linter (ESLint wrapper) with great defaults",
5
5
  "license": "MIT",
6
6
  "repository": "xojs/xo",