tslint-loader icon indicating copy to clipboard operation
tslint-loader copied to clipboard

How to add external ESLint configs?

Open plingampally opened this issue 8 years ago • 3 comments

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....

plingampally avatar Feb 27 '17 23:02 plingampally

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

kirilpopov avatar Apr 19 '17 07:04 kirilpopov

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

sonicoder86 avatar Apr 22 '17 08:04 sonicoder86

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

xtianus79 avatar Apr 25 '17 14:04 xtianus79