From 7fee1cdc29e025a64a4dae76043739af84054569 Mon Sep 17 00:00:00 2001 From: Frederic Collonval Date: Wed, 4 Mar 2020 05:48:41 -0500 Subject: [PATCH] Correct eslint error --- advanced/kernel-messaging/.eslintrc.js | 15 +-------------- advanced/kernel-messaging/src/model.ts | 2 +- advanced/kernel-output/.eslintrc.js | 15 +-------------- advanced/server-extension/.eslintrc.js | 15 +-------------- basics/datagrid/.eslintrc.js | 15 +-------------- basics/hello-world/.eslintrc.js | 15 +-------------- basics/signals/.eslintrc.js | 15 +-------------- command-palette/.eslintrc.js | 15 +-------------- command-palette/src/index.ts | 4 ++-- commands/.eslintrc.js | 15 +-------------- commands/src/index.ts | 2 +- launcher/.eslintrc.js | 15 +-------------- launcher/src/index.ts | 2 +- main-menu/.eslintrc.js | 15 +-------------- main-menu/src/index.ts | 6 +++--- react/react-widget/.eslintrc.js | 15 +-------------- react/react-widget/src/index.ts | 2 +- settings/.eslintrc.js | 15 +-------------- settings/src/index.ts | 2 +- state/.eslintrc.js | 15 +-------------- widget-tracker/widgets/.eslintrc.js | 15 +-------------- 21 files changed, 24 insertions(+), 206 deletions(-) diff --git a/advanced/kernel-messaging/.eslintrc.js b/advanced/kernel-messaging/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/advanced/kernel-messaging/.eslintrc.js +++ b/advanced/kernel-messaging/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], diff --git a/advanced/kernel-messaging/src/model.ts b/advanced/kernel-messaging/src/model.ts index 666f4ac3..4f5ae83c 100644 --- a/advanced/kernel-messaging/src/model.ts +++ b/advanced/kernel-messaging/src/model.ts @@ -49,7 +49,7 @@ export class KernelModel { } private _onIOPub = (msg: KernelMessage.IIOPubMessage) => { - let msgType = msg.header.msg_type; + const msgType = msg.header.msg_type; switch (msgType) { case 'execute_result': case 'display_data': diff --git a/advanced/kernel-output/.eslintrc.js b/advanced/kernel-output/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/advanced/kernel-output/.eslintrc.js +++ b/advanced/kernel-output/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], diff --git a/advanced/server-extension/.eslintrc.js b/advanced/server-extension/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/advanced/server-extension/.eslintrc.js +++ b/advanced/server-extension/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], diff --git a/basics/datagrid/.eslintrc.js b/basics/datagrid/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/basics/datagrid/.eslintrc.js +++ b/basics/datagrid/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], diff --git a/basics/hello-world/.eslintrc.js b/basics/hello-world/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/basics/hello-world/.eslintrc.js +++ b/basics/hello-world/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], diff --git a/basics/signals/.eslintrc.js b/basics/signals/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/basics/signals/.eslintrc.js +++ b/basics/signals/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], diff --git a/command-palette/.eslintrc.js b/command-palette/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/command-palette/.eslintrc.js +++ b/command-palette/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], diff --git a/command-palette/src/index.ts b/command-palette/src/index.ts index 818bbfed..16700f29 100644 --- a/command-palette/src/index.ts +++ b/command-palette/src/index.ts @@ -15,7 +15,7 @@ const extension: JupyterFrontEndPlugin = { activate: (app: JupyterFrontEnd, palette: ICommandPalette) => { const { commands } = app; - let command = 'jlab-examples:command-palette'; + const command = 'jlab-examples:command-palette'; // Add a command commands.addCommand(command, { @@ -32,7 +32,7 @@ const extension: JupyterFrontEndPlugin = { }); // Add the command to the command palette - let category = 'Extension Examples'; + const category = 'Extension Examples'; palette.addItem({ command, category, args: { origin: 'from palette' } }); } }; diff --git a/commands/.eslintrc.js b/commands/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/commands/.eslintrc.js +++ b/commands/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], diff --git a/commands/src/index.ts b/commands/src/index.ts index b4f197e5..610e9a0b 100644 --- a/commands/src/index.ts +++ b/commands/src/index.ts @@ -12,7 +12,7 @@ const extension: JupyterFrontEndPlugin = { activate: (app: JupyterFrontEnd) => { const { commands } = app; - let command = 'jlab-examples:command'; + const command = 'jlab-examples:command'; // Add a command commands.addCommand(command, { diff --git a/launcher/.eslintrc.js b/launcher/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/launcher/.eslintrc.js +++ b/launcher/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], diff --git a/launcher/src/index.ts b/launcher/src/index.ts index b448795a..dd8de230 100644 --- a/launcher/src/index.ts +++ b/launcher/src/index.ts @@ -44,7 +44,7 @@ const extension: JupyterFrontEndPlugin = { commands.addCommand(command, { label: args => (args['isPalette'] ? 'New Python File' : 'Python File'), caption: 'Create a new Python file', - icon: args => (args['isPalette'] ? undefined : icon), + icon: args => (args['isPalette'] ? null : icon), execute: async args => { // Get the directory in which the Python file must be created; // otherwise take the current filebrowser directory diff --git a/main-menu/.eslintrc.js b/main-menu/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/main-menu/.eslintrc.js +++ b/main-menu/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], diff --git a/main-menu/src/index.ts b/main-menu/src/index.ts index 5f6c81da..9ede346e 100644 --- a/main-menu/src/index.ts +++ b/main-menu/src/index.ts @@ -24,7 +24,7 @@ const extension: JupyterFrontEndPlugin = { const { commands } = app; // Add a command - let command = 'jlab-examples:main-menu'; + const command = 'jlab-examples:main-menu'; commands.addCommand(command, { label: 'Execute jlab-examples:main-menu Command', caption: 'Execute jlab-examples:main-menu Command', @@ -39,7 +39,7 @@ const extension: JupyterFrontEndPlugin = { }); // Add the command to the command palette - let category = 'Extension Examples'; + const category = 'Extension Examples'; palette.addItem({ command, category, @@ -47,7 +47,7 @@ const extension: JupyterFrontEndPlugin = { }); // Create a menu - let tutorialMenu: Menu = new Menu({ commands }); + const tutorialMenu: Menu = new Menu({ commands }); tutorialMenu.title.label = 'Main Menu Example'; mainMenu.addMenu(tutorialMenu, { rank: 80 }); diff --git a/react/react-widget/.eslintrc.js b/react/react-widget/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/react/react-widget/.eslintrc.js +++ b/react/react-widget/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], diff --git a/react/react-widget/src/index.ts b/react/react-widget/src/index.ts index e773ed81..58e2f38d 100644 --- a/react/react-widget/src/index.ts +++ b/react/react-widget/src/index.ts @@ -32,7 +32,7 @@ const extension: JupyterFrontEndPlugin = { commands.addCommand(command, { caption: 'Create a new React Widget', label: 'React Widget', - icon: args => (args['isPalette'] ? undefined : reactIcon), + icon: args => (args['isPalette'] ? null : reactIcon), execute: () => { const content = new CounterWidget(); const widget = new MainAreaWidget({ content }); diff --git a/settings/.eslintrc.js b/settings/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/settings/.eslintrc.js +++ b/settings/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], diff --git a/settings/src/index.ts b/settings/src/index.ts index f1fe2cd8..bdd96f6c 100644 --- a/settings/src/index.ts +++ b/settings/src/index.ts @@ -29,7 +29,7 @@ const extension: JupyterFrontEndPlugin = { let limit = 25; let flag = false; - function loadSetting(setting: ISettingRegistry.ISettings) { + function loadSetting(setting: ISettingRegistry.ISettings): void { // Read the settings and convert to the correct type limit = setting.get('limit').composite as number; flag = setting.get('flag').composite as boolean; diff --git a/state/.eslintrc.js b/state/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/state/.eslintrc.js +++ b/state/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], diff --git a/widget-tracker/widgets/.eslintrc.js b/widget-tracker/widgets/.eslintrc.js index 0bf0ce88..a4347bdd 100644 --- a/widget-tracker/widgets/.eslintrc.js +++ b/widget-tracker/widgets/.eslintrc.js @@ -23,18 +23,6 @@ module.exports = { accessibility: 'explicit' } ], - '@typescript-eslint/indent': [ - 'error', - 2, - { - FunctionDeclaration: { - parameters: 'first' - }, - FunctionExpression: { - parameters: 'first' - } - } - ], '@typescript-eslint/interface-name-prefix': 'error', '@typescript-eslint/member-delimiter-style': [ 'error', @@ -54,6 +42,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-var-requires': 'error', @@ -128,7 +117,6 @@ module.exports = { 'no-empty': 'error', 'no-eval': 'error', 'no-fallthrough': 'error', - 'no-invalid-this': 'error', 'no-multiple-empty-lines': 'off', 'no-new-wrappers': 'error', 'no-null/no-null': 'off', @@ -140,7 +128,6 @@ module.exports = { } ], 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'one-var': ['error', 'never'],