widoz / konomi

A WordPress Plugin to save posts as favorites based on Interactivity Api
GNU General Public License v2.0
0 stars 0 forks source link

Update TS Configuration #17

Closed widoz closed 6 months ago

widoz commented 6 months ago

Update the tsconfig.json file with the following rules

{
    "compilerOptions": {
        "target": "ES2022",
        "alwaysStrict": true,
        "exactOptionalPropertyTypes": true,
        "noFallthroughCasesInSwitch": true,
        "noImplicitAny": true,
        "noImplicitOverride": true,
        "noImplicitReturns": true,
        "noImplicitThis": true,
        "strictNullChecks": true,
        "strictFunctionTypes": true,
        "strictPropertyInitialization": true,
        "noPropertyAccessFromIndexSignature": true,
        "noUncheckedIndexedAccess": true,
        "noUnusedLocals": true,
        "noUnusedParameters": true,
        "strict": true,
        "useUnknownInCatchVariables": true,
        "resolveJsonModule": true,
        "sourceMap": true,
        "skipLibCheck": true,
        "esModuleInterop": true,
        "baseUrl": "./",
        "module": "nodeNext",
        "moduleResolution": "NodeNext",
        "typeRoots": ["./node_modules/@types"],
        "paths": {
            "@/*": ["./src/*"],
            "@model/*": ["./src/model/*"],
            "*": ["node_modules/*", "types/*"]
        },
        "rootDir": "./"
    },
    "files": ["./index.ts"],
    "include": ["./src/**/*.ts"],
    "exclude": ["node_modules", "tests"]
}
widoz commented 6 months ago

Done