Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
chore(lint): Removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Feb 25, 2018
1 parent 465200d commit 8bff6ca
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"postprocess-locale-data": "prettier --write locale-data/**/*stat_descriptions.json",
"generate-dat-locale-data": "node scripts/generateDatLocaleData",
"postgenerate-dat-locale-data": "prettier --write locale-data/**/[A-Z]*.json",
"lint": "tslint src/**/*.ts",
"lint": "tslint --project tsconfig.json src/**/*.ts",
"compile-grammars": "node scripts/compileGrammars",
"compile-grammars:watch": "node scripts/watchGrammars",
"prepublishOnly": "npm run build",
Expand Down
1 change: 0 additions & 1 deletion src/__tests__/requiredLocaleDatas.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { formatStats } from '../';
import requiredLocaleDatas from '../requiredLocaleDatas';

it('should load every file given as argument', () => {
Expand Down
5 changes: 1 addition & 4 deletions src/format/__tests__/textToStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import datas from '../../__fixtures__/english';
import { StatLocaleData } from '../../types/StatDescription';
import { buildRandomStats } from '../../util/symbolicStats';
import formatStats from '../stats';
import textToStats, {
textToStatsArray,
textToStatsFirst
} from '../textToStats';
import { textToStatsArray, textToStatsFirst } from '../textToStats';

it('should reverse formatStats', () => {
const formatted_stats = formatStats(
Expand Down
9 changes: 1 addition & 8 deletions src/format/gemStats.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import baseRequiredLocaleDatas from '../requiredLocaleDatas';
import meta, { Skill } from '../translate/skill_meta';
import { StatLocaleDatas } from '../types/StatDescription';
import formatStats, {
Fallback,
FallbackCallback,
Options,
Stat,
TranslatedStats
} from './stats';
import formatStats, { Fallback, Options, Stat } from './stats';

// args
export type GemId = string;
Expand Down
1 change: 0 additions & 1 deletion src/requiredLocaleDatas.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import dependencies from './translate/descriptions_dependency';
import { StatLocaleData, StatLocaleDatas } from './types/StatDescription';

export default function requiredLocaleDatas(files: string[]): string[] {
const datas = [...files];
Expand Down
1 change: 0 additions & 1 deletion src/translate/printf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { formatValues } from '../localize/formatValues';
import { Formatter } from '../types/StatDescription';

export type Params = Array<number | [number, number]>;
type PreparedParams = Array<number | string>;

export default function printf(
text: string,
Expand Down
1 change: 1 addition & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"rules": {
"interface-name": false,
"interface-over-type-literal": false,
"no-unused-variable": true,
"no-var-requires": false,
"object-literal-sort-keys": false,
"variable-name": false
Expand Down

0 comments on commit 8bff6ca

Please sign in to comment.