@newsteam/eslint-config 0.0.189 → 0.0.190

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 (108) hide show
  1. package/{lib → dist}/cjs/plugins/typescript.d.ts +7 -0
  2. package/{lib → dist}/cjs/plugins/typescript.js +8 -1
  3. package/{lib → dist}/cjs/rules.d.ts +8 -2
  4. package/{lib → dist}/cjs/rules.js +13 -7
  5. package/package.json +31 -29
  6. /package/{lib → dist}/cjs/index.d.ts +0 -0
  7. /package/{lib → dist}/cjs/index.js +0 -0
  8. /package/{lib → dist}/cjs/overrides/index.d.ts +0 -0
  9. /package/{lib → dist}/cjs/overrides/index.js +0 -0
  10. /package/{lib → dist}/cjs/overrides/javascript.d.ts +0 -0
  11. /package/{lib → dist}/cjs/overrides/javascript.js +0 -0
  12. /package/{lib → dist}/cjs/overrides/typescript.d.ts +0 -0
  13. /package/{lib → dist}/cjs/overrides/typescript.js +0 -0
  14. /package/{lib → dist}/cjs/plugins/array-function.d.ts +0 -0
  15. /package/{lib → dist}/cjs/plugins/array-function.js +0 -0
  16. /package/{lib → dist}/cjs/plugins/es/es2015.d.ts +0 -0
  17. /package/{lib → dist}/cjs/plugins/es/es2015.js +0 -0
  18. /package/{lib → dist}/cjs/plugins/es/es2016.d.ts +0 -0
  19. /package/{lib → dist}/cjs/plugins/es/es2016.js +0 -0
  20. /package/{lib → dist}/cjs/plugins/es/es2017.d.ts +0 -0
  21. /package/{lib → dist}/cjs/plugins/es/es2017.js +0 -0
  22. /package/{lib → dist}/cjs/plugins/es/es2018.d.ts +0 -0
  23. /package/{lib → dist}/cjs/plugins/es/es2018.js +0 -0
  24. /package/{lib → dist}/cjs/plugins/es/es2019.d.ts +0 -0
  25. /package/{lib → dist}/cjs/plugins/es/es2019.js +0 -0
  26. /package/{lib → dist}/cjs/plugins/es/es2020.d.ts +0 -0
  27. /package/{lib → dist}/cjs/plugins/es/es2020.js +0 -0
  28. /package/{lib → dist}/cjs/plugins/es/es2021.d.ts +0 -0
  29. /package/{lib → dist}/cjs/plugins/es/es2021.js +0 -0
  30. /package/{lib → dist}/cjs/plugins/es/es5.d.ts +0 -0
  31. /package/{lib → dist}/cjs/plugins/es/es5.js +0 -0
  32. /package/{lib → dist}/cjs/plugins/es/index.d.ts +0 -0
  33. /package/{lib → dist}/cjs/plugins/es/index.js +0 -0
  34. /package/{lib → dist}/cjs/plugins/eslint-comments/best-practices.d.ts +0 -0
  35. /package/{lib → dist}/cjs/plugins/eslint-comments/best-practices.js +0 -0
  36. /package/{lib → dist}/cjs/plugins/eslint-comments/index.d.ts +0 -0
  37. /package/{lib → dist}/cjs/plugins/eslint-comments/index.js +0 -0
  38. /package/{lib → dist}/cjs/plugins/eslint-comments/style.d.ts +0 -0
  39. /package/{lib → dist}/cjs/plugins/eslint-comments/style.js +0 -0
  40. /package/{lib → dist}/cjs/plugins/filenames.d.ts +0 -0
  41. /package/{lib → dist}/cjs/plugins/filenames.js +0 -0
  42. /package/{lib → dist}/cjs/plugins/format-message.d.ts +0 -0
  43. /package/{lib → dist}/cjs/plugins/format-message.js +0 -0
  44. /package/{lib → dist}/cjs/plugins/import/index.d.ts +0 -0
  45. /package/{lib → dist}/cjs/plugins/import/index.js +0 -0
  46. /package/{lib → dist}/cjs/plugins/import/module-systems.d.ts +0 -0
  47. /package/{lib → dist}/cjs/plugins/import/module-systems.js +0 -0
  48. /package/{lib → dist}/cjs/plugins/import/static-analysis.d.ts +0 -0
  49. /package/{lib → dist}/cjs/plugins/import/static-analysis.js +0 -0
  50. /package/{lib → dist}/cjs/plugins/import/style.d.ts +0 -0
  51. /package/{lib → dist}/cjs/plugins/import/style.js +0 -0
  52. /package/{lib → dist}/cjs/plugins/import/warnings.d.ts +0 -0
  53. /package/{lib → dist}/cjs/plugins/import/warnings.js +0 -0
  54. /package/{lib → dist}/cjs/plugins/import-newlines.d.ts +0 -0
  55. /package/{lib → dist}/cjs/plugins/import-newlines.js +0 -0
  56. /package/{lib → dist}/cjs/plugins/more.d.ts +0 -0
  57. /package/{lib → dist}/cjs/plugins/more.js +0 -0
  58. /package/{lib → dist}/cjs/plugins/no-unsanitized.d.ts +0 -0
  59. /package/{lib → dist}/cjs/plugins/no-unsanitized.js +0 -0
  60. /package/{lib → dist}/cjs/plugins/no-useless-assign.d.ts +0 -0
  61. /package/{lib → dist}/cjs/plugins/no-useless-assign.js +0 -0
  62. /package/{lib → dist}/cjs/plugins/node/best-practices.d.ts +0 -0
  63. /package/{lib → dist}/cjs/plugins/node/best-practices.js +0 -0
  64. /package/{lib → dist}/cjs/plugins/node/errors.d.ts +0 -0
  65. /package/{lib → dist}/cjs/plugins/node/errors.js +0 -0
  66. /package/{lib → dist}/cjs/plugins/node/index.d.ts +0 -0
  67. /package/{lib → dist}/cjs/plugins/node/index.js +0 -0
  68. /package/{lib → dist}/cjs/plugins/node/style.d.ts +0 -0
  69. /package/{lib → dist}/cjs/plugins/node/style.js +0 -0
  70. /package/{lib → dist}/cjs/plugins/optimize-regex.d.ts +0 -0
  71. /package/{lib → dist}/cjs/plugins/optimize-regex.js +0 -0
  72. /package/{lib → dist}/cjs/plugins/prefer-object-spread.d.ts +0 -0
  73. /package/{lib → dist}/cjs/plugins/prefer-object-spread.js +0 -0
  74. /package/{lib → dist}/cjs/plugins/promise.d.ts +0 -0
  75. /package/{lib → dist}/cjs/plugins/promise.js +0 -0
  76. /package/{lib → dist}/cjs/plugins/react/base.d.ts +0 -0
  77. /package/{lib → dist}/cjs/plugins/react/base.js +0 -0
  78. /package/{lib → dist}/cjs/plugins/react/index.d.ts +0 -0
  79. /package/{lib → dist}/cjs/plugins/react/index.js +0 -0
  80. /package/{lib → dist}/cjs/plugins/react/jsx.d.ts +0 -0
  81. /package/{lib → dist}/cjs/plugins/react/jsx.js +0 -0
  82. /package/{lib → dist}/cjs/plugins/react-hooks.d.ts +0 -0
  83. /package/{lib → dist}/cjs/plugins/react-hooks.js +0 -0
  84. /package/{lib → dist}/cjs/plugins/react-native.d.ts +0 -0
  85. /package/{lib → dist}/cjs/plugins/react-native.js +0 -0
  86. /package/{lib → dist}/cjs/plugins/react-perf.d.ts +0 -0
  87. /package/{lib → dist}/cjs/plugins/react-perf.js +0 -0
  88. /package/{lib → dist}/cjs/plugins/react-refresh.d.ts +0 -0
  89. /package/{lib → dist}/cjs/plugins/react-refresh.js +0 -0
  90. /package/{lib → dist}/cjs/plugins/security.d.ts +0 -0
  91. /package/{lib → dist}/cjs/plugins/security.js +0 -0
  92. /package/{lib → dist}/cjs/plugins/sort-keys-fix.d.ts +0 -0
  93. /package/{lib → dist}/cjs/plugins/sort-keys-fix.js +0 -0
  94. /package/{lib → dist}/cjs/plugins/unicorn.d.ts +0 -0
  95. /package/{lib → dist}/cjs/plugins/unicorn.js +0 -0
  96. /package/{lib → dist}/cjs/settings.d.ts +0 -0
  97. /package/{lib → dist}/cjs/settings.js +0 -0
  98. /package/{lib → dist}/cjs/test/test-duplicate-import-from.d.ts +0 -0
  99. /package/{lib → dist}/cjs/test/test-duplicate-import-from.js +0 -0
  100. /package/{lib → dist}/cjs/test/test-duplicate-import.d.ts +0 -0
  101. /package/{lib → dist}/cjs/test/test-duplicate-import.js +0 -0
  102. /package/{lib → dist}/cjs/test/test-eslint-plugin-more.d.ts +0 -0
  103. /package/{lib → dist}/cjs/test/test-eslint-plugin-more.js +0 -0
  104. /package/{lib → dist}/cjs/test/test-typescript-issues.d.ts +0 -0
  105. /package/{lib → dist}/cjs/test/test-typescript-issues.js +0 -0
  106. /package/{lib → dist}/cjs/test/unpublished-import-json.json +0 -0
  107. /package/{lib → dist}/cjs/test/unpublished-import.d.ts +0 -0
  108. /package/{lib → dist}/cjs/test/unpublished-import.js +0 -0
@@ -11,7 +11,14 @@ declare const _default: {
11
11
  "@typescript-eslint/class-literal-property-style": string;
12
12
  "@typescript-eslint/class-methods-use-this": string;
13
13
  "@typescript-eslint/comma-dangle": (string | {
14
+ arrays: string;
15
+ enums: string;
16
+ exports: string;
17
+ functions: string;
14
18
  generics: string;
19
+ imports: string;
20
+ objects: string;
21
+ tuples: string;
15
22
  })[];
16
23
  "@typescript-eslint/comma-spacing": string;
17
24
  "@typescript-eslint/consistent-generic-constructors": string[];
@@ -96,7 +96,14 @@ var rules = {
96
96
  "@typescript-eslint/comma-dangle": [
97
97
  "error",
98
98
  {
99
- generics: "ignore"
99
+ arrays: "never",
100
+ enums: "never",
101
+ exports: "never",
102
+ functions: "never",
103
+ generics: "ignore",
104
+ imports: "never",
105
+ objects: "always",
106
+ tuples: "never"
100
107
  }
101
108
  ],
102
109
  /*
@@ -22,7 +22,13 @@ declare const _default: {
22
22
  ignorePattern: string;
23
23
  })[];
24
24
  "class-methods-use-this": string;
25
- "comma-dangle": string[];
25
+ "comma-dangle": (string | {
26
+ arrays: string;
27
+ exports: string;
28
+ functions: string;
29
+ imports: string;
30
+ objects: string;
31
+ })[];
26
32
  "comma-spacing": string;
27
33
  "comma-style": string;
28
34
  complexity: (string | {
@@ -242,11 +248,11 @@ declare const _default: {
242
248
  "no-new": string;
243
249
  "no-new-func": string;
244
250
  "no-new-native-nonconstructor": string;
245
- "no-new-object": string;
246
251
  "no-new-symbol": string;
247
252
  "no-new-wrappers": string;
248
253
  "no-nonoctal-decimal-escape": string;
249
254
  "no-obj-calls": string;
255
+ "no-object-constructor": string;
250
256
  "no-octal": string;
251
257
  "no-octal-escape": string;
252
258
  "no-param-reassign": (string | {
@@ -147,7 +147,13 @@ module.exports = {
147
147
  */
148
148
  "comma-dangle": [
149
149
  "error",
150
- "never"
150
+ {
151
+ arrays: "never",
152
+ exports: "never",
153
+ functions: "never",
154
+ imports: "never",
155
+ objects: "always"
156
+ }
151
157
  ],
152
158
  /*
153
159
  * Enforce consistent spacing before and after commas
@@ -1087,12 +1093,6 @@ module.exports = {
1087
1093
  * https://eslint.org/docs/rules/no-new-native-nonconstructor
1088
1094
  */
1089
1095
  "no-new-native-nonconstructor": "error",
1090
- /*
1091
- * Disallow Object constructors
1092
- *
1093
- * https://eslint.org/docs/rules/no-new-object
1094
- */
1095
- "no-new-object": "error",
1096
1096
  /*
1097
1097
  * Disallow new operators with the Symbol object
1098
1098
  *
@@ -1117,6 +1117,12 @@ module.exports = {
1117
1117
  * https://eslint.org/docs/rules/no-obj-calls
1118
1118
  */
1119
1119
  "no-obj-calls": "error",
1120
+ /*
1121
+ * Disallow Object constructors
1122
+ *
1123
+ * https://eslint.org/docs/rules/no-object-constructor
1124
+ */
1125
+ "no-object-constructor": "error",
1120
1126
  /*
1121
1127
  * Disallow octal literals
1122
1128
  *
package/package.json CHANGED
@@ -1,14 +1,20 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "0.0.189",
3
+ "version": "0.0.190",
4
4
  "description": "Shared config for eslint",
5
- "main": "./lib/cjs/index.js",
6
- "types": "./lib/cjs/index.d.ts",
5
+ "main": "./dist/cjs/index.js",
6
+ "types": "./dist/cjs/index.d.ts",
7
7
  "scripts": {
8
- "build": "make build --always-make",
9
- "prepublishOnly": "make prepublish --always-make",
10
- "update-dependencies": "rm -rf node_modules && rm -f pnpm-lock.yaml && rm -f package-lock.json && ncu -u && ncu -u --dep peer && npm install && npm run test",
11
- "test": "make test --always-make"
8
+ "build": "tsc",
9
+ "clean": "rimraf dist",
10
+ "clean:tests": "rimraf dist/**/*.test.js dist/**/*.test.d.ts dist/*.test.js dist/*.test.d.ts",
11
+ "depcheck": "depcheck",
12
+ "lint": "npm run lint:eslint && npm run depcheck",
13
+ "lint:eslint": "cd ../.. && eslint packages/stylelint-config/src",
14
+ "prepublishOnly": "npm run clean && npm run build && npm run lint && npm run test && npm run clean:tests",
15
+ "test": "npm run test:ts && npm run depcheck && npm run test:rules",
16
+ "test:ts": "tsc --noEmit",
17
+ "test:rules": "npm run build && eslint-find-rules dist/cjs/index.js --unused --deprecated"
12
18
  },
13
19
  "browserslist": "node 12",
14
20
  "engines": {
@@ -41,26 +47,22 @@
41
47
  ],
42
48
  "homepage": "https://github.com/feight/newsteam/tree/main/packages/eslint-config#readme",
43
49
  "files": [
44
- "lib"
50
+ "dist"
45
51
  ],
46
52
  "dependencies": {
47
53
  "confusing-browser-globals": "1.0.11",
48
- "eslint-plugin-you-dont-need-lodash-underscore": "6.13.0",
49
- "undefined": "^0.1.0"
54
+ "eslint-plugin-you-dont-need-lodash-underscore": "6.13.0"
50
55
  },
51
56
  "devDependencies": {
52
- "@newsteam/jasmine": "0.0.45",
53
- "@types/eslint": "8.44.2",
54
- "@types/modernizr": "3.5.3",
55
- "@types/node": "20.5.9",
56
- "@types/react": "18.2.21",
57
- "@typescript-eslint/eslint-plugin": "6.6.0",
58
- "@typescript-eslint/parser": "6.6.0",
59
- "eslint": "8.48.0",
57
+ "@types/eslint": "8.44.3",
58
+ "@types/jasmine": "^5.1.0",
59
+ "@types/node": "20.8.4",
60
+ "@typescript-eslint/eslint-plugin": "6.7.5",
61
+ "@typescript-eslint/parser": "6.7.5",
62
+ "eslint": "8.51.0",
60
63
  "eslint-find-rules": "4.1.0",
61
- "eslint-import-resolver-typescript": "3.6.0",
62
- "eslint-plugin-array-func": "3.1.8",
63
- "eslint-plugin-css-modules": "2.11.0",
64
+ "eslint-plugin-array-func": "4.0.0",
65
+ "eslint-plugin-css-modules": "2.11.4",
64
66
  "eslint-plugin-es": "4.1.0",
65
67
  "eslint-plugin-eslint-comments": "3.2.0",
66
68
  "eslint-plugin-filenames": "1.3.2",
@@ -77,22 +79,22 @@
77
79
  "eslint-plugin-promise": "6.1.1",
78
80
  "eslint-plugin-react": "7.33.2",
79
81
  "eslint-plugin-react-hooks": "4.6.0",
80
- "eslint-plugin-react-native": "4.0.0",
82
+ "eslint-plugin-react-native": "4.1.0",
81
83
  "eslint-plugin-react-perf": "3.3.1",
82
84
  "eslint-plugin-react-refresh": "^0.4.3",
83
85
  "eslint-plugin-security": "1.7.1",
84
86
  "eslint-plugin-sort-keys-fix": "1.1.2",
85
87
  "eslint-plugin-unicorn": "48.0.1",
88
+ "jasmine": "^5.1.0",
86
89
  "json-schema": "0.4.0",
87
- "react": "18.2.0",
88
90
  "typescript": "5.2.2"
89
91
  },
90
92
  "peerDependencies": {
91
- "@typescript-eslint/eslint-plugin": "6.6.0",
92
- "@typescript-eslint/parser": "6.6.0",
93
- "eslint": "8.48.0",
94
- "eslint-plugin-array-func": "3.1.8",
95
- "eslint-plugin-css-modules": "2.11.0",
93
+ "@typescript-eslint/eslint-plugin": "6.7.5",
94
+ "@typescript-eslint/parser": "6.7.5",
95
+ "eslint": "8.51.0",
96
+ "eslint-plugin-array-func": "4.0.0",
97
+ "eslint-plugin-css-modules": "2.11.4",
96
98
  "eslint-plugin-es": "4.1.0",
97
99
  "eslint-plugin-eslint-comments": "3.2.0",
98
100
  "eslint-plugin-filenames": "1.3.2",
@@ -108,7 +110,7 @@
108
110
  "eslint-plugin-promise": "6.1.1",
109
111
  "eslint-plugin-react": "7.33.2",
110
112
  "eslint-plugin-react-hooks": "4.6.0",
111
- "eslint-plugin-react-native": "4.0.0",
113
+ "eslint-plugin-react-native": "4.1.0",
112
114
  "eslint-plugin-react-perf": "3.3.1",
113
115
  "eslint-plugin-react-refresh": "^0.4.3",
114
116
  "eslint-plugin-security": "1.7.1",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes