2020-12-01 16:00:25 +08:00
|
|
|
/* eslint-env node */
|
2020-01-21 23:48:26 +08:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true,
|
2022-07-22 04:43:49 +08:00
|
|
|
es2022: true
|
2020-01-21 23:48:26 +08:00
|
|
|
},
|
|
|
|
// Uses eslint default ruleset
|
2022-08-03 05:49:25 +08:00
|
|
|
extends: ["eslint:recommended", "prettier"],
|
2020-01-21 23:48:26 +08:00
|
|
|
parserOptions: {
|
|
|
|
sourceType: "module"
|
|
|
|
},
|
|
|
|
globals: {
|
2022-07-09 00:55:28 +08:00
|
|
|
$: "readonly",
|
|
|
|
Ajax: "readonly",
|
2020-01-21 23:48:26 +08:00
|
|
|
Atomics: "readonly",
|
2022-07-09 00:55:28 +08:00
|
|
|
Behaviour: "readonly",
|
|
|
|
getElementOverflowParams: "readonly",
|
|
|
|
global: "readonly",
|
|
|
|
Hash: "readonly",
|
|
|
|
isPageVisible: "readonly",
|
|
|
|
isRunAsTest: "readonly",
|
|
|
|
layoutUpdateCallback: "readonly",
|
|
|
|
onSetupWizardInitialized: "readonly",
|
|
|
|
setupWizardExtensions: "readonly",
|
2020-01-21 23:48:26 +08:00
|
|
|
SharedArrayBuffer: "readonly",
|
2022-07-09 00:55:28 +08:00
|
|
|
toQueryString: "readonly",
|
2020-01-21 23:48:26 +08:00
|
|
|
|
|
|
|
'__dirname': false,
|
|
|
|
|
|
|
|
// Allow jest globals used in tests
|
|
|
|
jest: false,
|
|
|
|
expect: false,
|
|
|
|
it: false,
|
|
|
|
describe: false,
|
|
|
|
beforeEach: false,
|
|
|
|
afterEach: false,
|
|
|
|
beforeAll: false,
|
|
|
|
afterAll: false,
|
|
|
|
}
|
2020-12-01 16:00:25 +08:00
|
|
|
};
|