Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrk24 committed May 4, 2024
1 parent b11bda2 commit fece9e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
7 changes: 1 addition & 6 deletions wasm/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { civet } from 'eslint-plugin-civet/ts';

const civetPlugin = civet({ parseOptions: {
// comptime: true,
}});
import civetPlugin from 'eslint-plugin-civet/ts';

export default [
...civetPlugin.configs.jsRecommended,
Expand All @@ -18,7 +14,6 @@ export default [
'@typescript-eslint/default-param-last': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'no-constant-condition': ['error', { checkLoops: false }],
// https://github.com/eslint/eslint/issues/15896
'no-var': 'off',
'no-restricted-syntax': ['error', {
Expand Down
5 changes: 3 additions & 2 deletions wasm/in.civet
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,9 @@ toggleColorPicker := :void =>

do
window.version = comptime
// @ts-ignore 'require' is provided by the Civet compiler
require('child_process').execSync 'git describe --tags'
// @ts-expect-error 'require' is provided by the Civet compiler
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('node:child_process').execSync 'git describe --tags'
.toString()
.trimEnd()

Expand Down

0 comments on commit fece9e0

Please sign in to comment.