mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-08 17:51:20 +02:00
Enable ESLint no-require-imports rule
This commit is contained in:
parent
65e331ae26
commit
e1e57f2cfd
@ -24,7 +24,6 @@ export default defineConfig(
|
|||||||
"@typescript-eslint/ban-ts-comment": "off", // Temporarily disabled until codebase conformant
|
"@typescript-eslint/ban-ts-comment": "off", // Temporarily disabled until codebase conformant
|
||||||
"@typescript-eslint/no-empty-object-type": "off", // Temporarily disabled until codebase conformant
|
"@typescript-eslint/no-empty-object-type": "off", // Temporarily disabled until codebase conformant
|
||||||
"@typescript-eslint/no-explicit-any": "off", // Temporarily disabled until codebase conformant
|
"@typescript-eslint/no-explicit-any": "off", // Temporarily disabled until codebase conformant
|
||||||
"@typescript-eslint/no-require-imports": "off", // Temporarily disabled until codebase conformant
|
|
||||||
"@typescript-eslint/no-unused-expressions": "off", // Temporarily disabled until codebase conformant
|
"@typescript-eslint/no-unused-expressions": "off", // Temporarily disabled until codebase conformant
|
||||||
"@typescript-eslint/no-unused-vars": "off", // Temporarily disabled until codebase conformant
|
"@typescript-eslint/no-unused-vars": "off", // Temporarily disabled until codebase conformant
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
|
import postcss from '@tailwindcss/postcss';
|
||||||
|
import autoprefixer from 'autoprefixer';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
require('@tailwindcss/postcss'),
|
postcss,
|
||||||
require('autoprefixer'),
|
autoprefixer,
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
const { icons } = require('@iconify-json/material-symbols');
|
import { icons } from '@iconify-json/material-symbols';
|
||||||
const fs = require('fs');
|
import fs from 'fs';
|
||||||
const path = require('path');
|
import path from 'path';
|
||||||
|
|
||||||
// Check for verbose flag
|
// Check for verbose flag
|
||||||
const isVerbose = process.argv.includes('--verbose') || process.argv.includes('-v');
|
const isVerbose = process.argv.includes('--verbose') || process.argv.includes('-v');
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
const { execSync } = require('child_process');
|
import { execSync } from 'child_process';
|
||||||
const fs = require('fs');
|
import fs from 'fs';
|
||||||
const path = require('path');
|
import path from 'path';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate 3rd party licenses for frontend dependencies
|
* Generate 3rd party licenses for frontend dependencies
|
||||||
|
@ -12,8 +12,8 @@ import {
|
|||||||
conversionDiscovery,
|
conversionDiscovery,
|
||||||
type ConversionEndpoint
|
type ConversionEndpoint
|
||||||
} from '../helpers/conversionEndpointDiscovery';
|
} from '../helpers/conversionEndpointDiscovery';
|
||||||
import * as path from 'path';
|
import path from 'path';
|
||||||
import * as fs from 'fs';
|
import fs from 'fs';
|
||||||
|
|
||||||
// Test configuration
|
// Test configuration
|
||||||
const BASE_URL = process.env.BASE_URL || 'http://localhost:5173';
|
const BASE_URL = process.env.BASE_URL || 'http://localhost:5173';
|
||||||
@ -239,7 +239,6 @@ async function testConversion(page: Page, conversion: ConversionEndpoint) {
|
|||||||
// Save and verify file is not empty
|
// Save and verify file is not empty
|
||||||
const path = await download.path();
|
const path = await download.path();
|
||||||
if (path) {
|
if (path) {
|
||||||
const fs = require('fs');
|
|
||||||
const stats = fs.statSync(path);
|
const stats = fs.statSync(path);
|
||||||
expect(stats.size).toBeGreaterThan(0);
|
expect(stats.size).toBeGreaterThan(0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user