Skip to content

Commit

Permalink
lint: add errors for using deprecated functions (#5915)
Browse files Browse the repository at this point in the history
This is mostly to prevent the use of data.ShortName (when triggers
should be using data.party.member instead), but apparently there were a
lot of deprecated function uses to clean up while I was here. Thanks,
lint.

Apparently also, Regexes.addedCombatantFull was not the same as
Regexes.addedCombatant, even though the NetRegexes versions are the
same. Fixed that here.
  • Loading branch information
quisquous authored Nov 10, 2023
1 parent acc3b8f commit 53718f3
Show file tree
Hide file tree
Showing 64 changed files with 454 additions and 145 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const settings = {
'eslint:recommended',
'google',
'plugin:import/errors',
'plugin:deprecation/recommended',
],
'ignorePatterns': [
// Do not ignore dot files. /o\
Expand All @@ -30,11 +31,13 @@ const settings = {
'publish/',
'resources/lib/',
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 2022,
'sourceType': 'module',
},
'plugins': [
'deprecation',
'import',
'rulesdir',
],
Expand Down
Loading

0 comments on commit 53718f3

Please sign in to comment.