@innovixx/eslint-config 3.0.1 → 3.0.3

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,7 +1,8 @@
1
- import * as regexpPlugin from "eslint-plugin-regexp"
1
+ import * as regexpPlugin from 'eslint-plugin-regexp';
2
2
  import * as esPluginImport from 'eslint-plugin-import';
3
3
  import sortExportAllPlugin from 'eslint-plugin-sort-export-all';
4
-
4
+ import nodePlugin from 'eslint-plugin-n';
5
+ import globals from 'globals';
5
6
  import { deepMerge } from '../../deepMerge.mjs';
6
7
  import bestPracticesRules from './rules/best-practices.mjs';
7
8
  import errorRules from './rules/errors.mjs';
@@ -14,6 +15,13 @@ import variableRules from './rules/variables.mjs';
14
15
  /** @type {import('eslint').Linter.Config} */
15
16
 
16
17
  export const index = deepMerge(
18
+ {
19
+ languageOptions: {
20
+ globals: {
21
+ ...globals.node,
22
+ },
23
+ },
24
+ },
17
25
  {
18
26
  rules: bestPracticesRules.rules,
19
27
  },
@@ -26,6 +34,11 @@ export const index = deepMerge(
26
34
  {
27
35
  rules: importRules.rules,
28
36
  },
37
+ {
38
+ rules: {
39
+ ...nodePlugin.configs['flat/mixed-esm-and-cjs'].rules,
40
+ },
41
+ },
29
42
  {
30
43
  rules: styleRules.rules,
31
44
  },
@@ -40,6 +53,7 @@ export const index = deepMerge(
40
53
  regexp: regexpPlugin,
41
54
  import: esPluginImport,
42
55
  'sort-export-all': sortExportAllPlugin,
56
+ ...nodePlugin.configs['flat/recommended'].plugins,
43
57
  },
44
58
  },
45
59
  {
@@ -351,7 +351,7 @@ const styleRules = {
351
351
  'no-spaced-func': 'error',
352
352
 
353
353
  // disallow tab characters entirely
354
- 'no-tabs': 'error',
354
+ 'no-tabs': 'off',
355
355
 
356
356
  // disallow the use of ternary operators
357
357
  'no-ternary': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovixx/eslint-config",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "main": "configs/index.mjs",
5
5
  "repository": "git@github.com:innovixx/eslint-config.git",
6
6
  "description": "Opinionated ESLint config for JavaScript developers",
@@ -30,6 +30,7 @@
30
30
  "eslint-plugin-jest": "^28.11.0",
31
31
  "eslint-plugin-jest-dom": "^5.5.0",
32
32
  "eslint-plugin-jsx-a11y": "^6.10.2",
33
+ "eslint-plugin-n": "^17.15.1",
33
34
  "eslint-plugin-react": "^7.37.4",
34
35
  "eslint-plugin-react-hooks": "^5.1.0",
35
36
  "eslint-plugin-react-refresh": "^0.4.18",