Skip to content

Commit f67e2ab

Browse files
committed
chore: eslint automatically removes unused directives
1 parent e02f7f5 commit f67e2ab

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
ecmaVersion: 'latest',
1111
sourceType: 'module',
1212
},
13+
reportUnusedDisableDirectives: true,
1314
ignorePatterns: [
1415
'.eslintrc.js',
1516
'packages/*/lib/',

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# some tests seem to create these files in CI
2+
nvim-win64

packages/decorators/src/plugin/plugin.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,13 @@ function wrapper(cls: PluginWrapperConstructor, options?: PluginOptions): any {
9696
}
9797

9898
// Can decorate a class with options object
99-
// eslint-disable-next-line import/export
99+
100100
export function Plugin(
101101
outter: any
102102
): (cls: PluginWrapperConstructor, options?: PluginOptions) => any;
103103

104-
// eslint-disable-next-line import/export
105104
export function Plugin(outter: any): any;
106105

107-
// eslint-disable-next-line import/export
108106
export function Plugin(outter: any): any {
109107
/**
110108
* Decorator should support

packages/neovim/src/api/Neovim.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ import { ApiInfo } from '../types/ApiInfo';
99
export interface UiAttachOptions {
1010
rgb?: boolean;
1111
override?: boolean;
12-
// eslint-disable-next-line camelcase
12+
1313
ext_cmdline?: boolean;
14-
// eslint-disable-next-line camelcase
14+
1515
ext_hlstate?: boolean;
16-
// eslint-disable-next-line camelcase
16+
1717
ext_linegrid?: boolean;
18-
// eslint-disable-next-line camelcase
18+
1919
ext_messages?: boolean;
20-
// eslint-disable-next-line camelcase
20+
2121
ext_multigrid?: boolean;
22-
// eslint-disable-next-line camelcase
22+
2323
ext_popupmenu?: boolean;
24-
// eslint-disable-next-line camelcase
24+
2525
ext_tabline?: boolean;
26-
// eslint-disable-next-line camelcase
26+
2727
ext_wildmenu?: boolean;
28-
// eslint-disable-next-line camelcase
28+
2929
ext_termcolors?: boolean;
3030
}
3131

@@ -56,7 +56,7 @@ export interface Command {
5656
nargs: string;
5757
range: string;
5858
name: string;
59-
// eslint-disable-next-line camelcase
59+
6060
script_id: number;
6161
bar: boolean;
6262
register: boolean;
@@ -65,7 +65,7 @@ export interface Command {
6565
complete?: null;
6666
addr?: any;
6767
count?: any;
68-
// eslint-disable-next-line camelcase
68+
6969
complete_arg?: any;
7070
}
7171

packages/neovim/src/api/utils/createChainableApi.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export function createChainableApi(
8181
},
8282

8383
set: (target: any, prop: string, value: any, receiver: Promise<any>) => {
84-
// eslint-disable-next-line no-param-reassign
8584
if (receiver && (receiver instanceof Promise || 'then' in receiver)) {
8685
receiver.then(obj => {
8786
if (prop in obj) {

packages/neovim/src/host/NvimPlugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface NvimPluginOptions {
99

1010
export interface AutocmdOptions {
1111
pattern?: string;
12-
// eslint-disable-next-line no-eval
12+
1313
eval?: string;
1414
sync?: boolean;
1515
}
@@ -24,7 +24,7 @@ export interface CommandOptions {
2424
export interface NvimFunctionOptions {
2525
sync?: boolean;
2626
range?: string;
27-
// eslint-disable-next-line no-eval
27+
2828
eval?: string;
2929
}
3030

packages/neovim/src/plugin/autocmd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { NVIM_SYNC, NVIM_SPEC, NVIM_METHOD_NAME } from './properties';
22

33
export interface AutocmdOptions {
44
pattern: string;
5-
// eslint-disable-next-line no-eval
5+
66
eval?: string;
77
sync?: boolean;
88
}

packages/neovim/src/plugin/function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { NVIM_SYNC, NVIM_SPEC, NVIM_METHOD_NAME } from './properties';
33
export interface NvimFunctionOptions {
44
sync?: boolean;
55
range?: [number, number];
6-
// eslint-disable-next-line no-eval
6+
77
eval?: string;
88
}
99

packages/neovim/src/types/Spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export interface Spec {
55
opts: {
66
range?: string;
77
nargs?: string;
8-
// eslint-disable-next-line no-eval
8+
99
eval?: string;
1010
pattern?: string;
1111
complete?: string;

0 commit comments

Comments
 (0)