Skip to content

Commit

Permalink
Add eslint-plugin-deprecation rule (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachcampbellskyboxlabs authored Oct 7, 2024
1 parent c7c7eab commit 30c40d8
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 2 deletions.
145 changes: 145 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions tools/eslint-config-minecraft-scripting/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import header from 'eslint-plugin-header';
import minecraftLinting from 'eslint-plugin-minecraft-linting';
import tsEslint from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import deprecation from 'eslint-plugin-deprecation';

export default [
eslintConfigPrettier,
Expand All @@ -28,6 +29,7 @@ export default [
'@typescript-eslint': tsEslint,
unicorn: eslintPluginUnicorn,
'minecraft-linting': minecraftLinting,
deprecation,
},
rules: {
...tsEslint.configs['eslint-recommended'].rules,
Expand Down Expand Up @@ -59,6 +61,7 @@ export default [
1,
],
'minecraft-linting/avoid-unnecessary-command': 'error',
'deprecation/deprecation': 'warn',
},
},
];
5 changes: 3 additions & 2 deletions tools/eslint-config-minecraft-scripting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-minecraft-linting": "*",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-unicorn": "^42.0.0"
"eslint-plugin-unicorn": "^42.0.0",
"eslint-plugin-deprecation": "^3.0.0"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 30c40d8

Please sign in to comment.