How to ignore [filename].d.ts file grunt-eslint?

takName: {
    src: ["react/"],
    options: {
        extensions: [".js", ".ts", ".tsx"],
        ignorePattern: [
            "/react/**/index.d.ts"
        ]

    }
}

grunt-eslint supports all options of eslint. one of the eslint option is ignorePattern, which you can use to ignore the d.ts files in your typescript project.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *