Skip to content

Commit

Permalink
Cleanup files
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMHasperhoven authored and cronokirby committed Sep 10, 2024
1 parent 70a0bc1 commit 11c37a7
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 45 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

5 changes: 1 addition & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import eslintConfig from 'configs/eslint';
import { FlatCompat } from '@eslint/eslintrc';
import { fileURLToPath } from 'url';
import path from 'path';
import tmpExcludes from './tmp-lint-excludes.js';
import tseslint from 'typescript-eslint';

// mimic CommonJS variables -- not needed if using CommonJS
const __filename = fileURLToPath(import.meta.url);
Expand All @@ -25,10 +23,9 @@ export default [
...eslintConfig.filter(config => config.name !== 'custom:turbo-config'),

{
name: 'tmp-ignore-ts',
name: 'ignore-old-ts-files',
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
},
// ignores: tmpExcludes,
},
];
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
"build": "next build",
"dev": "next dev",
"start": "next start",
"pre:typecheck": "node tsconfig.generator.js",
"typecheck": "pnpm pre:typecheck && tsc --noEmit",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"lint:strict": "pnpm typecheck && pnpm lint --max-warnings 0",
"lint:strict2": "pnpm typecheck && pnpm lint --max-warnings 0"
"lint:strict": "tsc --noEmit && pnpm lint --max-warnings 0",
"lint:strict2": "tsc --noEmit && pnpm lint --max-warnings 0"
},
"dependencies": {
"@bufbuild/protobuf": "^1.10.0",
Expand Down
8 changes: 2 additions & 6 deletions scripts/disable-lint-for-tmp-excludes.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import fs from 'fs';
import path from 'path';
import tmpExcludes from '../tmp-lint-excludes.js';

// Array of file paths to process
const filePaths = tmpExcludes.map(filepath => filepath);
import tmpExcludes from './tmp-lint-excludes.js';

// The ESLint comment to be added
const eslintComment =
'// @ts-nocheck\n/* eslint-disable -- disabling this file as this was created before our strict rules */\n';

filePaths.forEach(filePath => {
tmpExcludes.forEach(filePath => {
// Read the file
fs.readFile(filePath, 'utf8', (err, data) => {
console.log('TCL: err', err);
Expand Down
File renamed without changes.
30 changes: 0 additions & 30 deletions tsconfig.generator.js

This file was deleted.

0 comments on commit 11c37a7

Please sign in to comment.