• 0

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.