Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tslint.json file for configuration? #58

Closed
sheam opened this issue Dec 22, 2016 · 3 comments
Closed

Use tslint.json file for configuration? #58

sheam opened this issue Dec 22, 2016 · 3 comments

Comments

@sheam
Copy link

sheam commented Dec 22, 2016

Is there a way I have can my tslint configuration in a seperate file so other tools may use it as well? Most tooling expects the file to be named tslint.json. I tried

	tslint: {
		failOnHint: true,
	   	require('./tslint.json')
	},

But when I run webpack, I get an 'unexpected string' error at the require line.

@sheam sheam closed this as completed Dec 22, 2016
@vlio20
Copy link

vlio20 commented Jan 1, 2017

@sheam , how did you solve this one?

@sheam
Copy link
Author

sheam commented Jan 11, 2017

       tslint: {
		failOnHint: true,
	   	configuration: require('./tslint.json')
	},

@senhongo
Copy link

for webpack2

 {
    test: /\.ts$/,
    enforce: 'pre',
    loader: 'tslint-loader',
    options: {
      configFile: './tslint.json',
      failOnHint: true
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants