Created
December 29, 2025 08:36
-
-
Save RareScrap/4c080beaa895e68bd14f5b18304e5b71 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "env": { | |
| "browser": true, | |
| "es6": true, | |
| "node": true | |
| }, | |
| "extends": [ | |
| "eslint:recommended", | |
| "plugin:@typescript-eslint/eslint-recommended", | |
| "plugin:@typescript-eslint/recommended", | |
| "plugin:import/recommended", | |
| "plugin:import/typescript" | |
| ], | |
| "parser": "@typescript-eslint/parser", | |
| "settings": { | |
| "import/resolver": { | |
| // The problem is eslint-import-resolver-typescript doesn't support import aliases provided in tsconfig.json without this empty {} non-informative object | |
| "typescript": {} | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // src/index.ts | |
| import { SomeClass } from '@somedir/SomeClass'; | |
| const someClass = new SomeClass() | |
| console.log(someClass) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "example", | |
| "productName": "example", | |
| "version": "1.0.0", | |
| "main": "src/index.ts", | |
| "scripts": { | |
| "lint": "set ESLINT_USE_FLAT_CONFIG=false&& eslint --ext .ts,.tsx ." | |
| }, | |
| "keywords": [], | |
| "author": "rarescrap", | |
| "license": "MIT", | |
| "devDependencies": { | |
| "@typescript-eslint/eslint-plugin": "8.50.1", | |
| "@typescript-eslint/parser": "8.50.1", | |
| "eslint": "9.39.2", | |
| "eslint-import-resolver-typescript": "4.4.4", | |
| "eslint-plugin-import": "2.32.0", | |
| "typescript": "5.9.3" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // src/somedir/SomeClass.ts | |
| export class SomeClass {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "compilerOptions": { | |
| "allowUnreachableCode": false, | |
| "allowUnusedLabels": false, | |
| "alwaysStrict": true, | |
| "noImplicitAny": true, | |
| "noImplicitOverride": true, | |
| "noImplicitReturns": true, | |
| "noImplicitThis": true, | |
| "noPropertyAccessFromIndexSignature": true, | |
| "noUnusedLocals": true, | |
| "strictBindCallApply": true, | |
| "strictBuiltinIteratorReturn": true, | |
| "strictFunctionTypes": true, | |
| "strictNullChecks": true, | |
| "baseUrl": ".", | |
| "module": "commonjs", | |
| "moduleResolution": "node", | |
| "paths": { | |
| "*": ["node_modules/*"], | |
| "@somedir/*": ["./src/somedir/*"] | |
| }, | |
| "resolveJsonModule": true, | |
| "outDir": "dist", | |
| "removeComments": true, | |
| "sourceMap": true, | |
| "allowJs": false, | |
| "esModuleInterop": true, | |
| "forceConsistentCasingInFileNames": true, | |
| "target": "ES6", | |
| "incremental": true, | |
| "skipLibCheck": false | |
| } | |
| } |
Comments are disabled for this gist.