mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 01:46:24 +01:00
81ec3244d3
- Change ESLint configuration syntax for ease of editing - Autofix basic issues picked up by ESLint - Make sure JS linting runs on TypeScript files
22 lines
583 B
JavaScript
22 lines
583 B
JavaScript
/**
|
||
* Overrides to our base ESLint configuration specifically for our integration tests.
|
||
*/
|
||
module.exports = {
|
||
rules: {
|
||
// To support code running in Node without transpiling.
|
||
'@typescript-eslint/no-var-requires': 'off',
|
||
'no-underscore-dangle': ['error', { allow: ['__BROWSER_GLOBAL__'] }],
|
||
// So we can lint the code without resolving imports, in case the sub-package isn’t installed.
|
||
'import/no-unresolved': 'off',
|
||
},
|
||
env: {
|
||
jest: true,
|
||
browser: true,
|
||
node: true
|
||
},
|
||
globals: {
|
||
page: 'readonly',
|
||
TEST_ORIGIN: 'readonly'
|
||
},
|
||
};
|