-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbrowser.js
26 lines (25 loc) · 803 Bytes
/
browser.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import eslintCompat from 'eslint-plugin-compat';
import esCompat from 'eslint-plugin-escompat';
// import noUnsanitized from 'eslint-plugin-no-unsanitized'; // Todo: Disable until https://github.com/mozilla/eslint-plugin-no-unsanitized/pull/239#issuecomment-2132867450
/** @type {import('eslint').Linter.Config[]} */
export default [
{
name: 'ash-nazg/browser/settings',
settings: {
// for `eslint-plugin-compat` (may currently catch some escompat does not)
lintAllEsApis: true
}
},
{
name: 'ash-nazg/compat/flat-recommended',
...eslintCompat.configs['flat/recommended']
},
esCompat.configs['flat/recommended'],
// noUnsanitized.DOM,
{
name: 'ash-nazg/browser',
rules: {
'no-implicit-globals': ['error', {lexicalBindings: true}]
}
}
];