Skip to content

Commit

Permalink
chore: Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Sep 5, 2024
1 parent 8174fcc commit 6165c24
Show file tree
Hide file tree
Showing 85 changed files with 1,991 additions and 1,242 deletions.
20 changes: 9 additions & 11 deletions esbuild/build.js → esbuild/build.mjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
#!/usr/bin/env node

const {build} = require('esbuild');
const {sassPlugin} = require('esbuild-sass-plugin');
const autoprefixer = require('autoprefixer');
const postcssPresetEnv = require('postcss-preset-env');
const postcss = require('postcss');
const tsconfigJson = require('../tsconfig.json');
import {build} from 'esbuild';
import {sassPlugin} from 'esbuild-sass-plugin';
import autoprefixer from 'autoprefixer';
import postcssPresetEnv from 'postcss-preset-env';
import postcss from 'postcss';

const {
compilerOptions: {target},
} = tsconfigJson;
import tsconfigJson from '../tsconfig.json' assert {type: 'json'};

/** @type {import('esbuild').BuildOptions}*/
const common = {
bundle: true,
sourcemap: true,
platform: 'browser',
target,
target: tsconfigJson.compilerOptions.target,
tsconfig: './tsconfig.json',
};

Expand Down Expand Up @@ -47,7 +45,7 @@ const common = {
outfile: 'dist/css/print.css',
format: 'iife',
plugins,
})
}),
]);

await build({
Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
modulePaths: ['<rootDir>'],
moduleDirectories: ['node_modules'],
testPathIgnorePatterns: ['spec.js', 'spec.ts'],
snapshotSerializers: ['jest-serializer-html'],
moduleNameMapper: {
'\\.(css|less|scss|sss|styl)$': '<rootDir>/node_modules/jest-css-modules',
'.+\\.(svg|png|jpg)$': 'identity-obj-proxy',
Expand Down
Loading

0 comments on commit 6165c24

Please sign in to comment.