chore(eslint): only lint Typescript files
Change-Id: Iba395c406f0c5d730c01c2fcdebc705ec1a80577
diff --git a/eslint.config.js b/eslint.config.js
index 9f57963..83d391e 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -1,9 +1,21 @@
const js = require('@eslint/js');
const globals = require('globals');
+const tseslint = require('typescript-eslint');
module.exports = [
js.configs.recommended,
+ ...tseslint.configs.recommended,
{
+ ignores: [
+ '**/*.js',
+ '**/*.mjs',
+ 'dist/',
+ 'out/',
+ 'src/lit-locales/generated/',
+ ],
+ },
+ {
+ ignores: ['webpack.config.js'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
@@ -13,12 +25,13 @@
...globals.webextensions,
},
},
- ignores: ['webpack.config.js'],
},
{
- files: ['**/*.test.js', '**/*.test.mjs'],
- globals: {
- ...globals.jest,
+ files: ['**/*.test.ts'],
+ languageOptions: {
+ globals: {
+ ...globals.jest,
+ },
},
},
];