Skip to content

Commit 80d3362

Browse files
authored
chore: enable typescript error on unused locals (conventional-changelog#938)
* chore: enable typescript error on unused locals * chore: add more typescript compiler flags
1 parent dbc87dc commit 80d3362

18 files changed

+23
-18
lines changed

@commitlint/load/src/load.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import resolveFrom from 'resolve-from';
1212
import {fix, git, npm} from '@commitlint/test';
1313

1414
import load from './load';
15-
import {RuleSeverity} from './types';
1615

1716
const fixBootstrap = (name: string) => fix.bootstrap(name, __dirname);
1817
const gitBootstrap = (name: string) => git.bootstrap(name, __dirname);

@commitlint/resolve-extends/src/index.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import resolveExtends, {ResolveExtendsContext} from '.';
2-
import resolveGlobal from 'resolve-global';
32

43
const id = (id: unknown) => id;
54

@commitlint/resolve-extends/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function getId(raw: string = '', prefix: string = ''): string {
9494
return relative || absolute ? raw : [prefix, raw].filter(String).join('-');
9595
}
9696

97-
function resolveConfig<T>(
97+
function resolveConfig(
9898
raw: string,
9999
context: ResolveExtendsContext = {}
100100
): string {

@commitlint/rules/src/body-max-length.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Rule} from './types';
33

44
export const bodyMaxLength: Rule<number> = (
55
parsed,
6-
when = undefined,
6+
_when = undefined,
77
value = 0
88
) => {
99
const input = parsed.body;

@commitlint/rules/src/body-max-line-length.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Rule} from './types';
33

44
export const bodyMaxLineLength: Rule<number> = (
55
parsed,
6-
when = undefined,
6+
_when = undefined,
77
value = 0
88
) => {
99
const input = parsed.body;

@commitlint/rules/src/body-min-length.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Rule} from './types';
33

44
export const bodyMinLength: Rule<number> = (
55
parsed,
6-
when = undefined,
6+
_when = undefined,
77
value = 0
88
) => {
99
if (!parsed.body) {

@commitlint/rules/src/footer-max-length.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Rule} from './types';
33

44
export const footerMaxLength: Rule<number> = (
55
parsed,
6-
when = undefined,
6+
_when = undefined,
77
value = 0
88
) => {
99
const input = parsed.footer;

@commitlint/rules/src/footer-max-line-length.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Rule} from './types';
33

44
export const footerMaxLineLength: Rule<number> = (
55
parsed,
6-
when = undefined,
6+
_when = undefined,
77
value = 0
88
) => {
99
const input = parsed.footer;

@commitlint/rules/src/footer-min-length.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Rule} from './types';
33

44
export const footerMinLength: Rule<number> = (
55
parsed,
6-
when = undefined,
6+
_when = undefined,
77
value = 0
88
) => {
99
if (!parsed.footer) {

@commitlint/rules/src/header-max-length.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Rule} from './types';
33

44
export const headerMaxLength: Rule<number> = (
55
parsed,
6-
when = undefined,
6+
_when = undefined,
77
value = 0
88
) => {
99
return [

0 commit comments

Comments
 (0)