Skip to content

Commit 3a92b6b

Browse files
committed
chore: Update the build settings.
1 parent 940932f commit 3a92b6b

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
'node/no-unsupported-features/es-syntax': 'off',
2424
'node/no-extraneous-import': 'off',
2525
"node/no-missing-import": ["error", {
26-
"allowModules": ["vscode"]
26+
"allowModules": ["vscode", "@deepnote/sqlint", "@deepnote/sql-parser", "sql-language-server"]
2727
}],
2828
'import/first': 0,
2929
'import/named': 2,

packages/server/src/createServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
Position,
1818
CodeActionKind,
1919
} from 'vscode-languageserver-types'
20-
import { lint, LintResult } from '@deepnote/sqlint'
20+
import { lint, LintResult, FixDescription } from '@deepnote/sqlint'
2121
import { RawConfig } from '@deepnote/sqlint'
2222
import cache from './cache'
2323
import { complete } from './complete'
@@ -291,7 +291,7 @@ export function createServerWithConnection(connection: Connection) {
291291
documentChanges: [
292292
TextDocumentEdit.create(
293293
{ uri: params.textDocument.uri, version: document.version },
294-
fixes.map((v) => {
294+
fixes.map((v: FixDescription) => {
295295
const edit =
296296
v.range.startOffset === v.range.endOffset
297297
? TextEdit.insert(

packages/sqlint/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { lint, LintResult } from './cli/lint'
22
import { RawConfig } from './cli/loadConfig'
33
import { ErrorLevel, Diagnostic, Config } from './rules/index'
4-
import { applyFixes } from './fixer'
4+
import { applyFixes, FixDescription } from './fixer'
55

66
export {
77
lint,
@@ -11,4 +11,5 @@ export {
1111
RawConfig,
1212
Config,
1313
applyFixes,
14+
FixDescription,
1415
}

packages/sqlint/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"compilerOptions": {
44
"rootDir": ".",
55
"outDir": "dist",
6-
"declaration": true
6+
"declaration": true,
7+
"composite": true
78
},
89
"exclude": [
910
"node_modules",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"paths": {
1616
"sql-language-server": ["packages/server/*"],
1717
"@deepnote/sql-parser": ["packages/sql-parser/*"],
18-
"sqlint": ["packages/sqlint/*"]
18+
"@deepnote/sqlint": ["packages/sqlint/*"]
1919
}
2020
},
2121
}

0 commit comments

Comments
 (0)