Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

kiwenlau/tslint-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why dos TSLint only checks src directory?

tsconfig.json

{
    "compilerOptions": {
        "outDir": "./built",
        "allowJs": true,
        "target": "es5",
        "typeRoots": ["node_modules/@types", "typings"]
    },
    "include": ["./src/**/*", "./typings/**/*"],
    "exclude": ["node_modules"]
}

tslint.json

{
    "defaultSeverity": "error",
    "extends": [
        "tslint:recommended"
    ],
    "jsRules": {},
    "rules": {},
    "rulesDirectory": []
}

Check the whole project

it only shows errors of src directory

tslint --project .

ERROR: /Users/kiwenlau/Desktop/tslint-test/src/index.ts:1:1 - Forbidden 'var' keyword, use 'let' or 'const' instead

Check src directory

tslint "src/**/*"

ERROR: src/index.ts:1:1 - Forbidden 'var' keyword, use 'let' or 'const' instead

Check typings directory

tslint "typings/**/*"

ERROR: typings/index.d.ts:1:11 - interface name must start with a capitalized I

About

Why does TSlint only checks src directory?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published