lucy-cli 1.0.14 → 1.0.15

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/files/.nvmrc CHANGED
@@ -1 +1 @@
1
- 20
1
+ 22
@@ -0,0 +1,9 @@
1
+ module.exports = {
2
+ // ...your other rules
3
+ overrides: [
4
+ {
5
+ files: ["**/*.{ts,tsx}"],
6
+ customSyntax: "@stylelint/postcss-css-in-js",
7
+ },
8
+ ],
9
+ };
@@ -11,7 +11,14 @@ export default tseslint.config(
11
11
  tseslint.configs.recommendedTypeChecked,
12
12
  jsdoc.configs['flat/recommended-typescript'],
13
13
  {
14
- ignores: ['./.wix', './src'],
14
+ ignores: [
15
+ './.wix',
16
+ './src',
17
+ "eslint.config.mjs",
18
+ "**/*.js"
19
+ ],
20
+ },
21
+ {
15
22
  plugins: {
16
23
  '@typescript-eslint': tseslint.plugin,
17
24
  'simple-import-sort': simpleImportSort,
@@ -44,6 +51,7 @@ export default tseslint.config(
44
51
  },
45
52
  },
46
53
  rules: {
54
+ 'no-console': ['error'],
47
55
  'no-restricted-imports': [
48
56
  'error',
49
57
  {
@@ -51,11 +59,23 @@ export default tseslint.config(
51
59
  }
52
60
  ],
53
61
  'no-restricted-syntax': [
54
- 'error',
62
+ 'warn',
55
63
  {
56
64
  selector: 'StaticBlock',
57
65
  message: 'Static blocks are not allowed in classes.',
58
66
  },
67
+ {
68
+ selector: "MemberExpression[object.name='globalThis'][property.name='console']",
69
+ message: 'Using globalThis.console is not allowed.'
70
+ },
71
+ {
72
+ selector: "CallExpression[callee.property.name='runPromise'][callee.object.name='runtime']",
73
+ message: 'Usage of runtime.runPromise() is discouraged.',
74
+ },
75
+ {
76
+ selector: "CallExpression[callee.property.name='runFork'][callee.object.name='runtime']",
77
+ message: 'Usage of runtime.runFork() is discouraged.',
78
+ }
59
79
  ],
60
80
  '@typescript-eslint/no-unsafe-argument': 'error',
61
81
  '@typescript-eslint/no-unsafe-assignment': 'off',
@@ -73,7 +93,7 @@ export default tseslint.config(
73
93
  'object-curly-spacing': ['error', 'always'],
74
94
  'space-in-parens': ['error', 'never'],
75
95
  'newline-before-return': 'error',
76
- 'space-before-blocks': ['error', { functions: 'always', keywords: 'never', classes: 'always' }],
96
+ 'space-before-blocks': ['error', { functions: 'always', keywords: 'always', classes: 'always' }],
77
97
  'comma-spacing': ['error', { before: false, after: true }],
78
98
  'no-multi-spaces': 'error',
79
99
  'import/newline-after-import': ['error', { count: 1 }],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "lucy-cli",
4
- "version": "1.0.14",
4
+ "version": "1.0.15",
5
5
  "description": "Lucy Framework for WIX Studio Editor",
6
6
  "main": ".dist/index.js",
7
7
  "scripts": {