Skip to content

Commit 4a05b40

Browse files
committed
fix: Fixing a few lint errors after a rebase.
1 parent d37e704 commit 4a05b40

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

packages/@css-blocks/core/src/Analyzer/Analysis.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ import { ObjectDictionary, objectValues } from "@opticss/util";
1515
import { IdentGenerator } from "opticss";
1616

1717
import { BlockFactory } from "../BlockParser";
18+
import { DEFAULT_EXPORT } from "../BlockSyntax";
1819
import { Block, Style } from "../BlockTree";
1920
import { ResolvedConfiguration } from "../configuration";
2021

2122
import { Analyzer } from "./Analyzer";
2223
import { ElementAnalysis, SerializedElementAnalysis } from "./ElementAnalysis";
2324
import { TemplateValidator, TemplateValidatorOptions } from "./validations";
24-
import { DEFAULT_EXPORT } from "../BlockSyntax";
2525

2626
/**
2727
* This interface defines a JSON friendly serialization

packages/@css-blocks/core/src/BlockCompiler/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { postcss } from "opticss";
33

44
import { Analyzer } from "../Analyzer";
55
import {
6+
BLOCK_AT_RULES,
67
BLOCK_DEBUG,
78
BLOCK_PROP_NAMES_RE,
89
ROOT_CLASS,
910
parseBlockDebug,
10-
BLOCK_AT_RULES,
1111
} from "../BlockSyntax";
1212
import { Block } from "../BlockTree";
1313
import {

packages/@css-blocks/core/src/BlockTree/Block.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export class Block
159159
* A single dot by itself returns the current block.
160160
* @returns The Style referenced at the supplied path.
161161
*/
162-
public externalLookup(path: string | BlockPath, errLoc?: SourceLocation): Styles | undefined {
162+
public externalLookup(path: string | BlockPath, errLoc?: SourceRange | SourceFile): Styles | undefined {
163163
path = new BlockPath(path);
164164
let block = this.getExportedBlock(path.block);
165165
if (!block) {
@@ -181,8 +181,6 @@ export class Block
181181
return attr || klass || undefined;
182182
}
183183

184-
185-
186184
/**
187185
* Add an absolute, normalized path as a compilation dependency. This is used
188186
* to invalidate caches and trigger watchers when those files change.

packages/@css-blocks/core/test/BlockSyntax/block-path-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { assert } from "chai";
22
import { skip, suite, test } from "mocha-typescript";
33

4-
import { BlockPath, ERRORS, DEFAULT_EXPORT } from "../../src/BlockSyntax";
4+
import { BlockPath, DEFAULT_EXPORT, ERRORS } from "../../src/BlockSyntax";
55
import { ErrorLocation } from "../../src/errors";
66

77
function parseBlockPath(blockPath: string, loc?: ErrorLocation): BlockPath {

packages/@css-blocks/core/test/block-interface-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class BlockInterfaceTests extends BEMProcessor {
1313
() => {
1414
assert(false, `Error ${errorType.name} was not raised.`);
1515
},
16-
(reason) => {
16+
(reason: Error) => {
1717
assert(reason instanceof errorType, reason.toString());
1818
assert.deepEqual(reason.message, message);
1919
});

packages/@css-blocks/glimmer/src/Rewriter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
StyleMapping,
66
resolveConfiguration,
77
} from "@css-blocks/core";
8+
import { DEFAULT_EXPORT } from "@css-blocks/core/dist/src/BlockSyntax";
89
import {
910
AST,
1011
ASTPlugin,
@@ -19,7 +20,6 @@ import { ElementAnalyzer } from "./ElementAnalyzer";
1920
import { getEmberBuiltInStates, isEmberBuiltIn } from "./EmberBuiltins";
2021
import { CONCAT_HELPER_NAME } from "./helpers";
2122
import { ResolvedFile, TEMPLATE_TYPE } from "./Template";
22-
import { DEFAULT_EXPORT } from "@css-blocks/core/dist/src/BlockSyntax";
2323

2424
// TODO: The state namespace should come from a config option.
2525
const STYLE_ATTR = /^(class$|state:)/;

0 commit comments

Comments
 (0)