From 51f7e06a825d077445564b7f41575b93ebd1f1a5 Mon Sep 17 00:00:00 2001 From: Johann Schopplich Date: Thu, 14 Mar 2024 08:51:45 +0100 Subject: [PATCH] chore: lint TS config prop order --- eslint.config.js | 4 +--- tsconfig.json | 23 +++++++++-------------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 3748e94..4317a69 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,5 +1,3 @@ import antfu from '@antfu/eslint-config' -export default await antfu({ - ignores: ['**/tsconfig.json'], -}) +export default await antfu() diff --git a/tsconfig.json b/tsconfig.json index 225714f..38348e6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,29 +1,24 @@ { "compilerOptions": { "target": "ESNext", - "useDefineForClassFields": true, - "module": "ESNext", + "jsx": "preserve", "lib": ["ESNext", "DOM", "DOM.Iterable"], + "module": "ESNext", + "moduleResolution": "Bundler", "paths": { "@unlazy/core": ["./packages/core/src/index.ts"], "@unlazy/core/*": ["./packages/core/src/*"], "unlazy": ["./packages/unlazy/src/index.ts"], "unlazy/*": ["./packages/unlazy/src/*"] }, - "skipLibCheck": true, - - /* Bundler mode */ - "moduleResolution": "Bundler", - "allowImportingTsExtensions": true, - "verbatimModuleSyntax": true, "resolveJsonModule": true, - "isolatedModules": true, - "esModuleInterop": true, + "allowImportingTsExtensions": true, + "strict": true, "noEmit": true, - "jsx": "preserve", - - /* Linting */ - "strict": true + "esModuleInterop": true, + "isolatedModules": true, + "verbatimModuleSyntax": true, + "skipLibCheck": true }, "include": [ "packages"