wbuchwalter / tslint-loader

tslint loader for webpack
192 stars 65 forks source link

How to add external ESLint configs? #64

Open plingampally opened 7 years ago

plingampally commented 7 years ago

It looks like there is support for ESLint. Can someone help me include the Google JS style guide? I installed the dependencies as defined here: https://github.com/google/eslint-config-google

Updated my tslint.json file to this:

{
  "extends": ["tslint:recommended", "google"],
  "rules": {
    "quotemark": [true, "single", "avoid-escape"]
  }
}

This results in build errors.
Sorry, first time webpack user....

kirilpopov commented 7 years ago

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

sonicoder86 commented 7 years ago

@plingampally What is Webpack config? Removing the google rules removes the error?

xtianus79 commented 7 years ago

@kirilpopov and @blacksonic thanks can you guys put this config file in the documentation... this is very important to a professional build process.