@innovixx/eslint-config 5.0.0 → 5.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.
@@ -285,6 +285,7 @@ const bestPracticesRules = {
285
285
  allowShortCircuit: false,
286
286
  allowTernary: false,
287
287
  allowTaggedTemplates: false,
288
+ enforceForJSX: true,
288
289
  }],
289
290
 
290
291
  // disallow unused labels
@@ -1,5 +1,5 @@
1
1
  import globals from 'globals';
2
- import importPlugin from 'eslint-plugin-import-x';
2
+ import importPlugin, { createNodeResolver } from 'eslint-plugin-import-x';
3
3
 
4
4
  /** @type {import('eslint').Linter.Config} */
5
5
 
@@ -19,16 +19,11 @@ const importRules = {
19
19
  import: importPlugin,
20
20
  },
21
21
  settings: {
22
- 'import-x/resolver': {
23
- node: {
24
- extensions: [
25
- '.ts',
26
- '.tsx',
27
- '.jsx',
28
- '.js',
29
- ],
30
- },
31
- },
22
+ 'import-x/resolver-next': [
23
+ createNodeResolver({
24
+ extensions: ['.ts', '.tsx', '.jsx', '.js'],
25
+ }),
26
+ ],
32
27
  },
33
28
  rules: {
34
29
  // Static analysis:
@@ -1,14 +1,17 @@
1
+ import { createNodeResolver } from 'eslint-plugin-import-x';
2
+ import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';
3
+
1
4
  /** @type {import('eslint').Linter.Config} */
2
5
 
3
6
  const typeScriptSettings = {
4
7
  settings: {
5
- 'import-x/resolver': {
6
- node: {
8
+ 'import-x/resolver-next': [
9
+ createNodeResolver({
7
10
  extensions: ['.mjs', '.js', '.jsx', '.ts', '.tsx', '.json'],
8
- },
9
- typescript: {},
10
- },
11
+ }),
12
+ createTypeScriptImportResolver(),
13
+ ],
11
14
  },
12
15
  };
13
16
 
14
- export default typeScriptSettings;
17
+ export default typeScriptSettings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovixx/eslint-config",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "main": "config/index.mjs",
5
5
  "repository": "git@github.com:innovixx/eslint-config.git",
6
6
  "description": "Opinionated ESLint config for JavaScript developers",