blob: 9f57963b26b9c2f7d66a68603355b02790d39d10 [file] [log] [blame]
Adrià Vilanova Martínez673abe72024-05-11 12:21:01 +02001const js = require('@eslint/js');
2const globals = require('globals');
3
4module.exports = [
5 js.configs.recommended,
6 {
7 languageOptions: {
8 ecmaVersion: 'latest',
9 sourceType: 'module',
10 globals: {
11 PRODUCTION: 'readonly',
12 ...globals.browser,
13 ...globals.webextensions,
14 },
15 },
16 ignores: ['webpack.config.js'],
17 },
18 {
19 files: ['**/*.test.js', '**/*.test.mjs'],
20 globals: {
21 ...globals.jest,
22 },
23 },
24];