Skip to content

Commit

Permalink
Correct eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Collonval committed Mar 6, 2020
1 parent f6c1bb3 commit 7fee1cd
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 206 deletions.
15 changes: 1 addition & 14 deletions advanced/kernel-messaging/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion advanced/kernel-messaging/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
15 changes: 1 addition & 14 deletions advanced/kernel-output/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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'],
Expand Down
15 changes: 1 addition & 14 deletions advanced/server-extension/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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'],
Expand Down
15 changes: 1 addition & 14 deletions basics/datagrid/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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'],
Expand Down
15 changes: 1 addition & 14 deletions basics/hello-world/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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'],
Expand Down
15 changes: 1 addition & 14 deletions basics/signals/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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'],
Expand Down
15 changes: 1 addition & 14 deletions command-palette/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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'],
Expand Down
4 changes: 2 additions & 2 deletions command-palette/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const extension: JupyterFrontEndPlugin<void> = {
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, {
Expand All @@ -32,7 +32,7 @@ const extension: JupyterFrontEndPlugin<void> = {
});

// Add the command to the command palette
let category = 'Extension Examples';
const category = 'Extension Examples';
palette.addItem({ command, category, args: { origin: 'from palette' } });
}
};
Expand Down
15 changes: 1 addition & 14 deletions commands/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion commands/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const extension: JupyterFrontEndPlugin<void> = {
activate: (app: JupyterFrontEnd) => {
const { commands } = app;

let command = 'jlab-examples:command';
const command = 'jlab-examples:command';

// Add a command
commands.addCommand(command, {
Expand Down
Loading

0 comments on commit 7fee1cd

Please sign in to comment.