Skip to content

Commit

Permalink
Merge pull request #2684 from storybooks/tslint-extract-exclusions
Browse files Browse the repository at this point in the history
Extract tslint exclusions out of package.json scripts
  • Loading branch information
Hypnosphi authored Jan 8, 2018
2 parents a03b6a6 + 002ddbf commit 2f502b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"docs:deploy:manual": "npm --prefix docs run deploy:manual",
"docs:dev": "npm --prefix docs run dev",
"github-release": "github-release-from-changelog",
"lint": "yarn lint:js . && yarn lint:ts && yarn lint:md .",
"lint": "yarn lint:js . && yarn lint:ts **/*.ts && yarn lint:md .",
"lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location=.cache/eslint --ext .js,.jsx,.json",
"lint:ts": "tslint -p . -t stylish -e '{**/node_modules/**,**/dist/**,lib/cli/test/**,**/storybook-static/**}' **/*.ts",
"lint:ts": "tslint -p . -c tslint.json -t stylish",
"lint:md": "remark",
"publish": "lerna publish",
"postpublish": "yarn --cwd lib/cli test -o",
Expand Down
8 changes: 8 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,13 @@
"no-access-missing-member": true,
"templates-use-public": true,
"invoke-injectable": true
},
"linterOptions": {
"exclude": [
"lib/cli/test/**",
"**/node_modules/**",
"**/dist/**",
"**/storybook-static/**"
]
}
}

0 comments on commit 2f502b6

Please sign in to comment.