@tsslint/core 1.5.3 → 1.5.5

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 (3) hide show
  1. package/index.d.ts +2 -2
  2. package/index.js +5 -5
  3. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -23,8 +23,8 @@ export declare function createLinter(ctx: ProjectContext, rootDir: string, confi
23
23
  getRefactorEdits(fileName: string, actionName: string): ts.FileTextChanges[] | undefined;
24
24
  getRules: (fileName: string, minimatchCache: undefined | FileLintCache[2]) => Record<string, Rule>;
25
25
  getConfigs: (fileName: string, minimatchCache: undefined | FileLintCache[2]) => {
26
- include: string[];
27
- exclude: string[];
26
+ include: string[] | undefined;
27
+ exclude: string[] | undefined;
28
28
  rules: Rules;
29
29
  formatting: FormattingProcess[] | undefined;
30
30
  plugins: import("@tsslint/types").PluginInstance[];
package/index.js CHANGED
@@ -31,8 +31,8 @@ function createLinter(ctx, rootDir, config, mode, syntaxOnlyLanguageService) {
31
31
  const lintResults = new Map();
32
32
  const configs = (Array.isArray(config) ? config : [config])
33
33
  .map(config => ({
34
- include: config.include ?? [],
35
- exclude: config.exclude ?? [],
34
+ include: config.include,
35
+ exclude: config.exclude,
36
36
  rules: config.rules ?? {},
37
37
  formatting: config.formatting,
38
38
  plugins: (config.plugins ?? []).map(plugin => plugin(ctx)),
@@ -400,10 +400,10 @@ function createLinter(ctx, rootDir, config, mode, syntaxOnlyLanguageService) {
400
400
  let result = fileConfigs.get(fileName);
401
401
  if (!result) {
402
402
  result = configs.filter(({ include, exclude }) => {
403
- if (exclude.some(_minimatch)) {
403
+ if (exclude?.some(_minimatch)) {
404
404
  return false;
405
405
  }
406
- if (include.length && !include.some(_minimatch)) {
406
+ if (include && !include.some(_minimatch)) {
407
407
  return false;
408
408
  }
409
409
  return true;
@@ -420,7 +420,7 @@ function createLinter(ctx, rootDir, config, mode, syntaxOnlyLanguageService) {
420
420
  normalized = ts.server.toNormalizedPath(path.resolve(rootDir, pattern));
421
421
  normalizedPath.set(pattern, normalized);
422
422
  }
423
- const res = minimatch.minimatch(fileName, normalized);
423
+ const res = minimatch.minimatch(fileName, normalized, { dot: true });
424
424
  if (minimatchCache) {
425
425
  minimatchCache[pattern] = res;
426
426
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsslint/core",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -12,7 +12,7 @@
12
12
  "directory": "packages/core"
13
13
  },
14
14
  "dependencies": {
15
- "@tsslint/types": "1.5.3",
15
+ "@tsslint/types": "1.5.5",
16
16
  "error-stack-parser": "^2.1.4",
17
17
  "esbuild": ">=0.17.0",
18
18
  "minimatch": "^10.0.1"
@@ -23,5 +23,5 @@
23
23
  "scripts": {
24
24
  "postinstall": "node scripts/cleanCache.js"
25
25
  },
26
- "gitHead": "563035c62d04ff2a5c393f4a37ab9635960de1d6"
26
+ "gitHead": "aa1bd7ed5b26cab99048001d1efa8880260f0c6e"
27
27
  }