blob: 83d391eeecba4b495be082c7ec9b9789d5ea916b [file] [log] [blame]
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',
globals: {
PRODUCTION: 'readonly',
...globals.browser,
...globals.webextensions,
},
},
},
{
files: ['**/*.test.ts'],
languageOptions: {
globals: {
...globals.jest,
},
},
},
];