Skip to content

Commit

Permalink
Add unused import filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kruhlmann committed Aug 1, 2022
1 parent f8eaf07 commit de0e330
Show file tree
Hide file tree
Showing 59 changed files with 1,514 additions and 1,354 deletions.
43 changes: 26 additions & 17 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
}
};
"plugins": [
"@typescript-eslint",
"unused-imports"
],
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
],
}
};
653 changes: 601 additions & 52 deletions package-lock.json

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@
"version": "0.1.0",
"private": true,
"devDependencies": {
"@protobuf-ts/plugin": "^2.0.4",
"@protobuf-ts/runtime": "^2.0.4",
"@types/node": "^18.6.1",
"eslint": "^8.20.0",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"eslint": "^8.21.0",
"eslint-plugin-unused-imports": "^2.0.0",
"glob": "^8.0.3",
"http-server": "13.0.1",
"sass": "^1.39.0",
"terser": "^5.14.2",
"typescript": "4.3.5",
"typescript-formatter": "^7.2.2",
"vite": "^3.0.3"
},
"scripts": {
"build": "bazel build //...",
"test": "bazel test //..."
},
"dependencies": {
"@protobuf-ts/plugin": "^2.0.4",
"@protobuf-ts/runtime": "^2.0.4",
"http-server": "13.0.1",
"sass": "^1.39.0",
"typescript": "4.3.5",
"typescript-formatter": "^7.2.2"
}
}
20 changes: 10 additions & 10 deletions ui/balance_druid/inputs.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { BalanceDruid_Options as DruidOptions, BalanceDruid_Rotation_RotationType as RotationType } from '/wotlk/core/proto/druid.js';
import { RaidTarget } from '/wotlk/core/proto/common.js';
import { Spec } from '/wotlk/core/proto/common.js';
import { NO_TARGET } from '/wotlk/core/proto_utils/utils.js';
import { ActionId } from '/wotlk/core/proto_utils/action_id.js';
import { Player } from '/wotlk/core/player.js';
import { Sim } from '/wotlk/core/sim.js';
import { EventID, TypedEvent } from '/wotlk/core/typed_event.js';
import { IndividualSimUI } from '/wotlk/core/individual_sim_ui.js';
import { Target } from '/wotlk/core/target.js';
import { BalanceDruid_Options as DruidOptions, BalanceDruid_Rotation_RotationType as RotationType } from '../core/proto/druid.js';
import { RaidTarget } from '../core/proto/common.js';
import { Spec } from '../core/proto/common.js';
import { NO_TARGET } from '../core/proto_utils/utils.js';
import { ActionId } from '../core/proto_utils/action_id.js';
import { Player } from '../core/player.js';
import { Sim } from '../core/sim.js';
import { EventID, TypedEvent } from '../core/typed_event.js';
import { IndividualSimUI } from '../core/individual_sim_ui.js';
import { Target } from '../core/target.js';

import * as InputHelpers from '../core/components/input_helpers.js';

Expand Down
9 changes: 1 addition & 8 deletions ui/balance_druid/presets.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
import { Consumes } from '../core/proto/common.js';
import { Flask } from '../core/proto/common.js';
import { Food } from '../core/proto/common.js';
import { Glyphs } from '../core/proto/common.js';
import { EquipmentSpec } from '../core/proto/common.js';
import { ItemSpec } from '../core/proto/common.js';
import { Potions } from '../core/proto/common.js';
import { WeaponImbue } from '../core/proto/common.js';
import { Faction } from '../core/proto/common.js';
import { SavedTalents } from '../core/proto/ui.js';
import { Player } from '../core/player.js';

import { BalanceDruid, BalanceDruid_Rotation as BalanceDruidRotation, DruidTalents as DruidTalents, BalanceDruid_Options as BalanceDruidOptions, BalanceDruid_Rotation_RotationType as RotationType } from '/wotlk/core/proto/druid.js';
import { BalanceDruid_Rotation as BalanceDruidRotation, BalanceDruid_Options as BalanceDruidOptions, BalanceDruid_Rotation_RotationType as RotationType } from '../core/proto/druid.js';

import * as Enchants from '../core/constants/enchants.js';
import * as Gems from '../core/proto_utils/gems.js';
import * as Tooltips from '../core/constants/tooltips.js';

// Preset options for this spec.
Expand Down
2 changes: 1 addition & 1 deletion ui/balance_druid/sim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Player } from '../core/player.js';
import { Sim } from '../core/sim.js';
import { IndividualSimUI } from '../core/individual_sim_ui.js';

import { BalanceDruid, BalanceDruid_Rotation as BalanceDruidRotation, DruidTalents as DruidTalents, BalanceDruid_Options as BalanceDruidOptions } from '/wotlk/core/proto/druid.js';
import { BalanceDruid, BalanceDruid_Rotation as BalanceDruidRotation, DruidTalents as DruidTalents, BalanceDruid_Options as BalanceDruidOptions } from '../core/proto/druid.js';

import * as IconInputs from '../core/components/icon_inputs.js';
import * as OtherInputs from '../core/components/other_inputs.js';
Expand Down
13 changes: 0 additions & 13 deletions ui/balance_druid/tsconfig.json

This file was deleted.

14 changes: 7 additions & 7 deletions ui/core/components/character_stats.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { PlayerStats } from '/wotlk/core/proto/api.js';
import { Stat, Class } from '/wotlk/core/proto/common.js';
import { TristateEffect } from '/wotlk/core/proto/common.js'
import { statNames, statOrder } from '/wotlk/core/proto_utils/names.js';
import { Stats } from '/wotlk/core/proto_utils/stats.js';
import { Player } from '/wotlk/core/player.js';
import { EventID, TypedEvent } from '/wotlk/core/typed_event.js';
import { PlayerStats } from '..//proto/api.js';
import { Stat, Class } from '..//proto/common.js';
import { TristateEffect } from '..//proto/common.js'
import { statNames, statOrder } from '..//proto_utils/names.js';
import { Stats } from '..//proto_utils/stats.js';
import { Player } from '..//player.js';
import { EventID, TypedEvent } from '..//typed_event.js';

import * as Mechanics from '../constants/mechanics.js';

Expand Down
Loading

0 comments on commit de0e330

Please sign in to comment.