@cmssy/eslint-plugin 12.12.0 → 12.13.0
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.
- package/dist/index.cjs +29 -1
- package/dist/index.js +25 -1
- package/package.json +4 -2
package/dist/index.cjs
CHANGED
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var tsParser = require('@typescript-eslint/parser');
|
|
5
6
|
var fs = require('fs');
|
|
6
7
|
var path = require('path');
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
|
|
11
|
+
var tsParser__default = /*#__PURE__*/_interopDefault(tsParser);
|
|
12
|
+
|
|
13
|
+
// src/index.ts
|
|
9
14
|
var LAYOUT = /\/layout\.(tsx|jsx|js|ts)$/;
|
|
10
15
|
var EDIT_SEGMENT = "cmssy-edit";
|
|
11
16
|
var WRAPPERS = /* @__PURE__ */ new Set([
|
|
@@ -363,6 +368,29 @@ plugin.configs.recommended = [
|
|
|
363
368
|
}
|
|
364
369
|
}
|
|
365
370
|
];
|
|
371
|
+
plugin.configs.standalone = [
|
|
372
|
+
{
|
|
373
|
+
ignores: [
|
|
374
|
+
"**/.next/**",
|
|
375
|
+
"**/.astro/**",
|
|
376
|
+
"**/.react-router/**",
|
|
377
|
+
"**/.vercel/**",
|
|
378
|
+
"**/build/**",
|
|
379
|
+
"**/coverage/**",
|
|
380
|
+
"**/dist/**",
|
|
381
|
+
"**/out/**"
|
|
382
|
+
]
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}"],
|
|
386
|
+
languageOptions: {
|
|
387
|
+
parser: tsParser__default.default,
|
|
388
|
+
sourceType: "module",
|
|
389
|
+
parserOptions: { ecmaFeatures: { jsx: true } }
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
...plugin.configs.recommended
|
|
393
|
+
];
|
|
366
394
|
var index_default = plugin;
|
|
367
395
|
|
|
368
396
|
exports.default = index_default;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import tsParser from '@typescript-eslint/parser';
|
|
1
2
|
import { readFileSync, existsSync } from 'fs';
|
|
2
3
|
import { isAbsolute, resolve, dirname, sep } from 'path';
|
|
3
4
|
|
|
4
|
-
// src/
|
|
5
|
+
// src/index.ts
|
|
5
6
|
var LAYOUT = /\/layout\.(tsx|jsx|js|ts)$/;
|
|
6
7
|
var EDIT_SEGMENT = "cmssy-edit";
|
|
7
8
|
var WRAPPERS = /* @__PURE__ */ new Set([
|
|
@@ -359,6 +360,29 @@ plugin.configs.recommended = [
|
|
|
359
360
|
}
|
|
360
361
|
}
|
|
361
362
|
];
|
|
363
|
+
plugin.configs.standalone = [
|
|
364
|
+
{
|
|
365
|
+
ignores: [
|
|
366
|
+
"**/.next/**",
|
|
367
|
+
"**/.astro/**",
|
|
368
|
+
"**/.react-router/**",
|
|
369
|
+
"**/.vercel/**",
|
|
370
|
+
"**/build/**",
|
|
371
|
+
"**/coverage/**",
|
|
372
|
+
"**/dist/**",
|
|
373
|
+
"**/out/**"
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}"],
|
|
378
|
+
languageOptions: {
|
|
379
|
+
parser: tsParser,
|
|
380
|
+
sourceType: "module",
|
|
381
|
+
parserOptions: { ecmaFeatures: { jsx: true } }
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
...plugin.configs.recommended
|
|
385
|
+
];
|
|
362
386
|
var index_default = plugin;
|
|
363
387
|
|
|
364
388
|
export { index_default as default, editRouteProviderParity, noServerConfigInClient, rules };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/eslint-plugin",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.13.0",
|
|
4
4
|
"description": "Catches the cmssy wiring mistakes that a build cannot: server config dragged into a client bundle, a provider the editor route never gets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cmssy",
|
|
@@ -37,9 +37,11 @@
|
|
|
37
37
|
"files": [
|
|
38
38
|
"dist"
|
|
39
39
|
],
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@typescript-eslint/parser": "^8.0.0"
|
|
42
|
+
},
|
|
40
43
|
"devDependencies": {
|
|
41
44
|
"@types/node": "^20.0.0",
|
|
42
|
-
"@typescript-eslint/parser": "^8.0.0",
|
|
43
45
|
"eslint": "^9.0.0",
|
|
44
46
|
"tsup": "^8.3.0",
|
|
45
47
|
"typescript": "^5.6.0",
|