2020-08-26 01:57:08 +02:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true
|
|
|
|
},
|
2022-11-10 11:43:16 +01:00
|
|
|
plugins: ['github', 'escompat'],
|
|
|
|
extends: ['plugin:escompat/recommended'],
|
2020-08-26 01:57:08 +02:00
|
|
|
rules: {
|
2022-11-10 11:43:16 +01:00
|
|
|
'escompat/no-dynamic-imports': 'off',
|
2020-08-26 01:57:08 +02:00
|
|
|
'github/async-currenttarget': 'error',
|
|
|
|
'github/async-preventdefault': 'error',
|
|
|
|
'github/get-attribute': 'error',
|
|
|
|
'github/no-blur': 'error',
|
|
|
|
'github/no-dataset': 'error',
|
|
|
|
'github/no-innerText': 'error',
|
2022-11-10 11:43:16 +01:00
|
|
|
'github/no-inner-html': 'error',
|
2020-08-26 01:57:08 +02:00
|
|
|
'github/unescaped-html-literal': 'error',
|
|
|
|
'github/no-useless-passive': 'error',
|
|
|
|
'github/require-passive-events': 'error',
|
2022-11-10 11:43:16 +01:00
|
|
|
'github/prefer-observers': 'error',
|
|
|
|
'import/no-nodejs-modules': 'error',
|
|
|
|
'no-restricted-syntax': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
selector: "NewExpression[callee.name='URL'][arguments.length=1]",
|
|
|
|
message: 'Please pass in `window.location.origin` as the 2nd argument to `new URL()`'
|
|
|
|
}
|
|
|
|
]
|
2020-08-26 01:57:08 +02:00
|
|
|
}
|
|
|
|
}
|