Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: add more typescript compiler flags
  • Loading branch information
armano2 committed Feb 4, 2020
commit 5c8bb52d2834dad180ba2faeeaac85de0f2133f9
1 change: 0 additions & 1 deletion @commitlint/load/src/load.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import resolveFrom from 'resolve-from';
import {fix, git, npm} from '@commitlint/test';

import load from './load';
import {RuleSeverity} from './types';

const fixBootstrap = (name: string) => fix.bootstrap(name, __dirname);
const gitBootstrap = (name: string) => git.bootstrap(name, __dirname);
Expand Down
1 change: 0 additions & 1 deletion @commitlint/resolve-extends/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import resolveExtends, {ResolveExtendsContext} from '.';
import resolveGlobal from 'resolve-global';

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

Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/body-max-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const bodyMaxLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
const input = parsed.body;
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/body-max-line-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const bodyMaxLineLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
const input = parsed.body;
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/body-min-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const bodyMinLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
if (!parsed.body) {
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/footer-max-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const footerMaxLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
const input = parsed.footer;
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/footer-max-line-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const footerMaxLineLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
const input = parsed.footer;
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/footer-min-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const footerMinLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
if (!parsed.footer) {
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/header-max-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const headerMaxLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
return [
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/header-min-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const headerMinLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
return [
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/scope-max-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const scopeMaxLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
const input = parsed.scope;
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/scope-min-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const scopeMinLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
const input = parsed.scope;
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/subject-max-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const subjectMaxLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
const input = parsed.subject;
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/subject-min-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const subjectMinLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
const input = parsed.subject;
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/type-max-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const typeMaxLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
const input = parsed.type;
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/type-min-length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Rule} from './types';

export const typeMinLength: Rule<number> = (
parsed,
when = undefined,
_when = undefined,
value = 0
) => {
const input = parsed.type;
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.shared.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"strict": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"noUnusedLocals": true
"noUnusedLocals": true,
"noUnusedParameters": true,
"forceConsistentCasingInFileNames": true,
"keyofStringsOnly": true,
"noFallthroughCasesInSwitch": true
}
}