From 8d949a8b803ebc3e0f422b80cf9d630743602eaf Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 16 Mar 2024 05:35:27 -0500 Subject: [PATCH] eslint: Check .ts files --- .eslintrc.cjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 33b7faccd..100e2b9f2 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -21,6 +21,10 @@ module.exports = { ignorePatterns: [ // Ignore the entire `build/` (the DLL build). "build/**", + // Ignore compiled JavaScript files, as they are generated automatically. + 'src/**/*.js', + // Also, do not check typing declarations, too. + 'src/**/*.d.ts' ], rules: { // This rule disallows importing core DLL packages directly. Imports should be done using the `ckeditor5` package. @@ -36,7 +40,7 @@ module.exports = { }, overrides: [ { - files: ["tests/**/*.js", "sample/**/*.js"], + files: [ 'tests/**/*.[jt]s', 'sample/**/*.[jt]s' ], rules: { // To write complex tests, you may need to import files that are not exported in DLL files by default. // Hence, imports CKEditor 5 packages in test files are not checked.