mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[eslint-config-kibana] expand list of restricted globals (#15798)
This commit is contained in:
parent
d72c9a57ae
commit
28663f6f8e
2 changed files with 64 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
const RESTRICTED_GLOBALS = require('./restricted_globals')
|
||||
|
||||
module.exports = {
|
||||
parser: 'babel-eslint',
|
||||
|
||||
|
@ -59,7 +61,7 @@ module.exports = {
|
|||
'no-path-concat': 'off',
|
||||
'no-proto': 'error',
|
||||
'no-redeclare': 'error',
|
||||
'no-restricted-globals': [ 'error', 'context' ],
|
||||
'no-restricted-globals': ['error', ...RESTRICTED_GLOBALS],
|
||||
'no-return-assign': 'off',
|
||||
'no-script-url': 'error',
|
||||
'no-sequences': 'error',
|
||||
|
|
61
packages/eslint-config-kibana/restricted_globals.js
Normal file
61
packages/eslint-config-kibana/restricted_globals.js
Normal file
|
@ -0,0 +1,61 @@
|
|||
// copied from https://github.com/facebookincubator/create-react-app/blob/2e82ebb3371731a5c4e346f310848ddb23fd0976/packages/eslint-config-react-app/index.js#L24
|
||||
module.exports = [
|
||||
'addEventListener',
|
||||
'blur',
|
||||
'close',
|
||||
'closed',
|
||||
'confirm',
|
||||
'defaultStatus',
|
||||
'defaultstatus',
|
||||
'event',
|
||||
'external',
|
||||
'find',
|
||||
'focus',
|
||||
'frameElement',
|
||||
'frames',
|
||||
'history',
|
||||
'innerHeight',
|
||||
'innerWidth',
|
||||
'length',
|
||||
'location',
|
||||
'locationbar',
|
||||
'menubar',
|
||||
'moveBy',
|
||||
'moveTo',
|
||||
'name',
|
||||
'onblur',
|
||||
'onerror',
|
||||
'onfocus',
|
||||
'onload',
|
||||
'onresize',
|
||||
'onunload',
|
||||
'open',
|
||||
'opener',
|
||||
'opera',
|
||||
'outerHeight',
|
||||
'outerWidth',
|
||||
'pageXOffset',
|
||||
'pageYOffset',
|
||||
'parent',
|
||||
'print',
|
||||
'removeEventListener',
|
||||
'resizeBy',
|
||||
'resizeTo',
|
||||
'screen',
|
||||
'screenLeft',
|
||||
'screenTop',
|
||||
'screenX',
|
||||
'screenY',
|
||||
'scroll',
|
||||
'scrollbars',
|
||||
'scrollBy',
|
||||
'scrollTo',
|
||||
'scrollX',
|
||||
'scrollY',
|
||||
'self',
|
||||
'status',
|
||||
'statusbar',
|
||||
'stop',
|
||||
'toolbar',
|
||||
'top',
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue