@newsteam/eslint-config 0.0.109 → 0.0.112

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.
@@ -25,7 +25,10 @@ declare const _default: {
25
25
  ignores: string[];
26
26
  version: string;
27
27
  })[];
28
- "node/no-unsupported-features/node-builtins": string;
28
+ "node/no-unsupported-features/node-builtins": (string | {
29
+ ignores: never[];
30
+ version: string;
31
+ })[];
29
32
  "node/process-exit-as-throw": string;
30
33
  "node/shebang": string;
31
34
  };
@@ -4,6 +4,7 @@
4
4
  *
5
5
  * https://github.com/mysticatea/eslint-plugin-node#possible-errors
6
6
  */
7
+ var settings_1 = require("../../settings");
7
8
  var resolvePaths = [process.cwd()];
8
9
  var tryExtensions = [
9
10
  ".js",
@@ -128,7 +129,7 @@ module.exports = {
128
129
  "dynamicImport",
129
130
  "modules"
130
131
  ],
131
- version: ">= 12.17.0"
132
+ version: settings_1.nodeVersion
132
133
  }
133
134
  ],
134
135
  /*
@@ -136,7 +137,13 @@ module.exports = {
136
137
  *
137
138
  * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unsupported-features/node-builtins.md
138
139
  */
139
- "node/no-unsupported-features/node-builtins": "error",
140
+ "node/no-unsupported-features/node-builtins": [
141
+ "error",
142
+ {
143
+ ignores: [],
144
+ version: settings_1.nodeVersion
145
+ }
146
+ ],
140
147
  /*
141
148
  * Make process.exit() expressions the same code path as throw
142
149
  *
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  __filename: boolean;
9
9
  Buffer: boolean;
10
10
  global: boolean;
11
+ JSX: boolean;
11
12
  module: boolean;
12
13
  process: boolean;
13
14
  Promise: boolean;
@@ -18,6 +18,7 @@ module.exports = {
18
18
  __filename: false,
19
19
  Buffer: false,
20
20
  global: false,
21
+ JSX: true,
21
22
  module: false,
22
23
  process: false,
23
24
  Promise: false,
@@ -1,11 +1,11 @@
1
- declare const indentSpaces = 4;
2
- declare const maximumCyclomaticComplexity = 20;
3
- declare const maximumFileLineCount = 1000;
4
- declare const maximumLineLength = 160;
5
- declare const noMagicNumbersConfig: {
1
+ export declare const indentSpaces = 4;
2
+ export declare const maximumCyclomaticComplexity = 20;
3
+ export declare const maximumFileLineCount = 1000;
4
+ export declare const maximumLineLength = 160;
5
+ export declare const noMagicNumbersConfig: {
6
6
  detectObjects: boolean;
7
7
  ignore: number[];
8
8
  ignoreArrayIndexes: boolean;
9
9
  ignoreDefaultValues: boolean;
10
10
  };
11
- export { indentSpaces, maximumCyclomaticComplexity, maximumFileLineCount, maximumLineLength, noMagicNumbersConfig };
11
+ export declare const nodeVersion = ">=16.14.0";
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.noMagicNumbersConfig = exports.maximumLineLength = exports.maximumFileLineCount = exports.maximumCyclomaticComplexity = exports.indentSpaces = void 0;
4
- var indentSpaces = 4;
5
- exports.indentSpaces = indentSpaces;
6
- var maximumCyclomaticComplexity = 20;
7
- exports.maximumCyclomaticComplexity = maximumCyclomaticComplexity;
8
- var maximumFileLineCount = 1000;
9
- exports.maximumFileLineCount = maximumFileLineCount;
10
- var maximumLineLength = 160;
11
- exports.maximumLineLength = maximumLineLength;
12
- var noMagicNumbersConfig = {
3
+ exports.nodeVersion = exports.noMagicNumbersConfig = exports.maximumLineLength = exports.maximumFileLineCount = exports.maximumCyclomaticComplexity = exports.indentSpaces = void 0;
4
+ exports.indentSpaces = 4;
5
+ exports.maximumCyclomaticComplexity = 20;
6
+ exports.maximumFileLineCount = 1000;
7
+ exports.maximumLineLength = 160;
8
+ exports.noMagicNumbersConfig = {
13
9
  detectObjects: false,
14
10
  ignore: [
15
11
  -1,
@@ -21,4 +17,4 @@ var noMagicNumbersConfig = {
21
17
  ignoreArrayIndexes: true,
22
18
  ignoreDefaultValues: true
23
19
  };
24
- exports.noMagicNumbersConfig = noMagicNumbersConfig;
20
+ exports.nodeVersion = ">=16.14.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "0.0.109",
3
+ "version": "0.0.112",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "types": "./lib/cjs/index.d.ts",
@@ -51,11 +51,11 @@
51
51
  "devDependencies": {
52
52
  "@newsteam/jasmine": "0.0.40",
53
53
  "@types/eslint": "8.4.1",
54
- "@types/node": "17.0.23",
55
- "@types/react": "17.0.43",
56
- "@typescript-eslint/eslint-plugin": "5.18.0",
57
- "@typescript-eslint/parser": "5.18.0",
58
- "eslint": "8.12.0",
54
+ "@types/node": "17.0.24",
55
+ "@types/react": "18.0.5",
56
+ "@typescript-eslint/eslint-plugin": "5.19.0",
57
+ "@typescript-eslint/parser": "5.19.0",
58
+ "eslint": "8.13.0",
59
59
  "eslint-find-rules": "4.1.0",
60
60
  "eslint-plugin-array-func": "3.1.7",
61
61
  "eslint-plugin-css-modules": "2.11.0",
@@ -84,9 +84,9 @@
84
84
  "typescript": "4.6.3"
85
85
  },
86
86
  "peerDependencies": {
87
- "@typescript-eslint/eslint-plugin": "5.18.0",
88
- "@typescript-eslint/parser": "5.18.0",
89
- "eslint": "8.12.0",
87
+ "@typescript-eslint/eslint-plugin": "5.19.0",
88
+ "@typescript-eslint/parser": "5.19.0",
89
+ "eslint": "8.13.0",
90
90
  "eslint-plugin-array-func": "3.1.7",
91
91
  "eslint-plugin-css-modules": "2.11.0",
92
92
  "eslint-plugin-es": "4.1.0",