@innovixx/eslint-config 2.0.2 → 2.0.3-alpha.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.
@@ -13,11 +13,6 @@ module.exports = {
13
13
  version: 'detect',
14
14
  },
15
15
  },
16
- parserOptions: {
17
- ecmaFeatures: {
18
- jsx: true,
19
- },
20
- },
21
16
  extends: [
22
17
  './rules/react-a11y',
23
18
  './rules/react-hooks',
@@ -1,14 +1,4 @@
1
1
  module.exports = {
2
- languageOptions: {
3
- ecmaVersion: 2020,
4
- parser: '@typescript-eslint/parser',
5
- parserOptions: {
6
- ecmaFeatures: {
7
- jsx: true,
8
- },
9
- },
10
- sourceType: 'module',
11
- },
12
2
  settings: {
13
3
  'import/resolver': {
14
4
  node: {
package/eslint.config.mjs CHANGED
@@ -1,13 +1,27 @@
1
1
  import path from 'node:path';
2
2
  import { fileURLToPath } from 'node:url';
3
- import js from '@eslint/js';
4
3
  import { FlatCompat } from '@eslint/eslintrc';
4
+ import tsParser from '@typescript-eslint/parser';
5
+ import js from '@eslint/js';
5
6
 
6
7
  const __filename = fileURLToPath(import.meta.url);
7
8
  const __dirname = path.dirname(__filename);
8
9
  const compat = new FlatCompat({
10
+ allConfig: js.configs.all,
9
11
  baseDirectory: __dirname,
10
12
  recommendedConfig: js.configs.recommended,
11
- allConfig: js.configs.all,
12
13
  });
13
- export default [...compat.extends('.')];
14
+
15
+ export default [...compat.extends('.'), {
16
+ languageOptions: {
17
+ ecmaVersion: 2020,
18
+ parser: tsParser,
19
+ parserOptions: {
20
+ ecmaFeatures: {
21
+ jsx: true,
22
+ },
23
+ project: './tsconfig.json',
24
+ },
25
+ sourceType: 'module',
26
+ },
27
+ }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovixx/eslint-config",
3
- "version": "2.0.2",
3
+ "version": "2.0.3-alpha.2",
4
4
  "main": "configs/index.js",
5
5
  "repository": "git@github.com:Innovixx-Development/eslint-config.git",
6
6
  "description": "Opinionated ESLint config for JavaScript developers",
@@ -26,10 +26,13 @@
26
26
  "eslint-plugin-node": "^11.1.0",
27
27
  "eslint-plugin-react": "^7.37.4",
28
28
  "eslint-plugin-react-hooks": "^5.1.0",
29
+ "eslint-plugin-react-refresh": "^0.4.18",
29
30
  "eslint-plugin-sort-export-all": "^1.4.1",
30
31
  "eslint-plugin-sort-keys-fix": "^1.1.2",
31
- "eslint-plugin-react-refresh": "^0.4.18",
32
32
  "object.assign": "^4.1.7",
33
33
  "object.entries": "^1.1.8"
34
+ },
35
+ "devDependencies": {
36
+ "@types/node": "^22.12.0"
34
37
  }
35
38
  }