@ocavue/eslint-config 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/typescript.js"],"names":[],"mappings":"AASA;;;;GAIG;AAEH;;GAEG;AACH,2HAsEC;;;;;;;;qBArFoB,2BAA2B;qBAD3B,kCAAkC"}
1
+ {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/typescript.js"],"names":[],"mappings":"AAUA;;;;GAIG;AAEH;;GAEG;AACH,2HA0EC;;;;;;;;qBA1FoB,2BAA2B;qBAD3B,kCAAkC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocavue/eslint-config",
3
3
  "type": "module",
4
- "version": "1.1.2",
4
+ "version": "1.2.0",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "",
7
7
  "author": "ocavue <ocavue@gmail.com>",
@@ -39,6 +39,7 @@
39
39
  "eslint-define-config": "^1.20.0",
40
40
  "eslint-import-resolver-typescript": "^3.5.5",
41
41
  "eslint-plugin-antfu": "^0.39.3",
42
+ "eslint-plugin-deprecation": "^1.4.1",
42
43
  "eslint-plugin-import": "^2.27.5",
43
44
  "eslint-plugin-jsonc": "^2.8.0",
44
45
  "eslint-plugin-markdown": "^3.0.0",
package/src/typescript.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  import tsPlugin from '@typescript-eslint/eslint-plugin'
4
4
  import tsParser from '@typescript-eslint/parser'
5
+ import deprecationPlugin from 'eslint-plugin-deprecation'
5
6
 
6
7
  import { GLOB_JS, GLOB_JSX, GLOB_TS, GLOB_TSX } from './shared.js'
7
8
 
@@ -40,6 +41,8 @@ export function typescript(options) {
40
41
  plugins: {
41
42
  // @ts-expect-error: they just don't play very well
42
43
  '@typescript-eslint': tsPlugin,
44
+ // @ts-expect-error: they just don't play very well
45
+ deprecation: deprecationPlugin,
43
46
  },
44
47
  rules: {
45
48
  ...tsPlugin.configs['eslint-recommended'].overrides?.[0].rules,
@@ -75,10 +78,12 @@ export function typescript(options) {
75
78
  '@typescript-eslint/await-thenable': 'warn',
76
79
  '@typescript-eslint/require-await': 'warn',
77
80
  '@typescript-eslint/unbound-method': 'warn',
81
+
82
+ 'deprecation/deprecation': 'warn',
78
83
  },
79
84
  },
80
85
  {
81
- files: ['**/*.js', '**/*.cjs'],
86
+ files: [GLOB_JS, GLOB_JSX],
82
87
  rules: {
83
88
  '@typescript-eslint/no-var-requires': 'off',
84
89
  },