Search code examples
typescripttslintprettier

Is it possible to enforce prettier style as tslint rule?


As we can have command line lint tools that show if a code is linked, is there something else for prettier, maybe it can integrate with tslint and tslint could show errors if the code is not formatted?


Solution

  • There is tslint-plugin-prettier which will report prettier differences as tslint issues.

    as mentioned in the readme you should also use tslint-config-prettier to avoid conflicts between prettier rules and tslint rules.