eslint-config-henderea 2.0.0 → 2.0.2

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.
Files changed (2) hide show
  1. package/eslint.config.mjs +3 -12
  2. package/package.json +6 -4
package/eslint.config.mjs CHANGED
@@ -2,21 +2,12 @@ import typescriptEslint from '@typescript-eslint/eslint-plugin';
2
2
  import stylistic from '@stylistic/eslint-plugin';
3
3
  import globals from 'globals';
4
4
  import tsParser from '@typescript-eslint/parser';
5
- import path from 'node:path';
6
- import { fileURLToPath } from 'node:url';
7
5
  import js from '@eslint/js';
8
- import { FlatCompat } from '@eslint/eslintrc';
9
-
10
- const ___filename = fileURLToPath(import.meta.url);
11
- const ___dirname = path.dirname(___filename);
12
- const compat = new FlatCompat({
13
- baseDirectory: ___dirname,
14
- recommendedConfig: js.configs.recommended,
15
- allConfig: js.configs.all
16
- });
6
+ import tseslint from 'typescript-eslint';
17
7
 
18
8
  export default [
19
- ...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended'),
9
+ js.configs.recommended,
10
+ ...tseslint.configs.recommended,
20
11
  {
21
12
  plugins: {
22
13
  '@typescript-eslint': typescriptEslint,
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "eslint-config-henderea",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "ESLint Config used by henderea",
5
- "main": "index.js",
5
+ "main": "index.mjs",
6
6
  "author": "henderea",
7
7
  "license": "MIT",
8
8
  "repository": {
@@ -15,7 +15,8 @@
15
15
  "@typescript-eslint/parser": "^8.8.0",
16
16
  "eslint": "^9.12.0",
17
17
  "eslint-plugin-import": "^2.31.0",
18
- "typescript": "^5.6.2"
18
+ "typescript": "^5.6.2",
19
+ "typescript-eslint": "^8.8.0"
19
20
  },
20
21
  "peerDependencies": {
21
22
  "@stylistic/eslint-plugin": "^2.9.0",
@@ -23,7 +24,8 @@
23
24
  "@typescript-eslint/parser": "^8.8.0",
24
25
  "eslint": "^9.12.0",
25
26
  "eslint-plugin-import": "^2.31.0",
26
- "typescript": "^5.6.2"
27
+ "typescript": "^5.6.2",
28
+ "typescript-eslint": "^8.8.0"
27
29
  },
28
30
  "scripts": {
29
31
  "lint": "eslint .",