vanjs-jsf 0.0.17 → 0.0.18

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.js CHANGED
@@ -115818,81 +115818,6 @@ var {
115818
115818
  select,
115819
115819
  option
115820
115820
  } = van.tags;
115821
- var eslintConfig = {
115822
- // eslint configuration
115823
- languageOptions: {
115824
- globals: {
115825
- ...import_globals.default.node
115826
- },
115827
- parserOptions: {
115828
- ecmaVersion: 2022,
115829
- sourceType: "module"
115830
- }
115831
- },
115832
- rules: {
115833
- "constructor-super": "error",
115834
- "for-direction": "error",
115835
- "getter-return": "error",
115836
- "no-async-promise-executor": "error",
115837
- "no-case-declarations": "error",
115838
- "no-class-assign": "error",
115839
- "no-compare-neg-zero": "error",
115840
- "no-cond-assign": "error",
115841
- "no-const-assign": "error",
115842
- "no-constant-binary-expression": "error",
115843
- "no-constant-condition": "error",
115844
- "no-control-regex": "error",
115845
- "no-debugger": "error",
115846
- "no-delete-var": "error",
115847
- "no-dupe-args": "error",
115848
- "no-dupe-class-members": "error",
115849
- "no-dupe-else-if": "error",
115850
- "no-dupe-keys": "error",
115851
- "no-duplicate-case": "error",
115852
- "no-empty": "error",
115853
- "no-empty-character-class": "error",
115854
- "no-empty-pattern": "error",
115855
- "no-empty-static-block": "error",
115856
- "no-ex-assign": "error",
115857
- "no-extra-boolean-cast": "error",
115858
- "no-fallthrough": "error",
115859
- "no-func-assign": "error",
115860
- "no-global-assign": "error",
115861
- "no-import-assign": "error",
115862
- "no-invalid-regexp": "error",
115863
- "no-irregular-whitespace": "error",
115864
- "no-loss-of-precision": "error",
115865
- "no-misleading-character-class": "error",
115866
- "no-new-native-nonconstructor": "error",
115867
- "no-nonoctal-decimal-escape": "error",
115868
- "no-obj-calls": "error",
115869
- "no-octal": "error",
115870
- "no-prototype-builtins": "error",
115871
- "no-redeclare": "error",
115872
- "no-regex-spaces": "error",
115873
- "no-self-assign": "error",
115874
- "no-setter-return": "error",
115875
- "no-shadow-restricted-names": "error",
115876
- "no-sparse-arrays": "error",
115877
- "no-this-before-super": "error",
115878
- "no-undef": "error",
115879
- "no-unexpected-multiline": "error",
115880
- "no-unreachable": "error",
115881
- "no-unsafe-finally": "error",
115882
- "no-unsafe-negation": "error",
115883
- "no-unsafe-optional-chaining": "error",
115884
- "no-unused-labels": "error",
115885
- "no-unused-private-class-members": "error",
115886
- "no-unused-vars": "error",
115887
- "no-useless-backreference": "error",
115888
- "no-useless-catch": "error",
115889
- "no-useless-escape": "error",
115890
- "no-with": "error",
115891
- "require-yield": "error",
115892
- "use-isnan": "error",
115893
- "valid-typeof": "error"
115894
- }
115895
- };
115896
115821
  var VanJsfField = class _VanJsfField extends VanJSComponent {
115897
115822
  name;
115898
115823
  field;
@@ -115925,6 +115850,83 @@ var VanJsfField = class _VanJsfField extends VanJSComponent {
115925
115850
  return this.field.errorClass;
115926
115851
  }
115927
115852
  get codemirrorExtension() {
115853
+ const fieldGlobals = this.field.globals && typeof this.field.globals === "object" ? this.field.globals : {};
115854
+ const eslintConfig = {
115855
+ // eslint configuration
115856
+ languageOptions: {
115857
+ globals: {
115858
+ ...fieldGlobals,
115859
+ ...import_globals.default.node
115860
+ },
115861
+ parserOptions: {
115862
+ ecmaVersion: 2022,
115863
+ sourceType: "module"
115864
+ }
115865
+ },
115866
+ rules: {
115867
+ "constructor-super": "error",
115868
+ "for-direction": "error",
115869
+ "getter-return": "error",
115870
+ "no-async-promise-executor": "error",
115871
+ "no-case-declarations": "error",
115872
+ "no-class-assign": "error",
115873
+ "no-compare-neg-zero": "error",
115874
+ "no-cond-assign": "error",
115875
+ "no-const-assign": "error",
115876
+ "no-constant-binary-expression": "error",
115877
+ "no-constant-condition": "error",
115878
+ "no-control-regex": "error",
115879
+ "no-debugger": "error",
115880
+ "no-delete-var": "error",
115881
+ "no-dupe-args": "error",
115882
+ "no-dupe-class-members": "error",
115883
+ "no-dupe-else-if": "error",
115884
+ "no-dupe-keys": "error",
115885
+ "no-duplicate-case": "error",
115886
+ "no-empty": "error",
115887
+ "no-empty-character-class": "error",
115888
+ "no-empty-pattern": "error",
115889
+ "no-empty-static-block": "error",
115890
+ "no-ex-assign": "error",
115891
+ "no-extra-boolean-cast": "error",
115892
+ "no-fallthrough": "error",
115893
+ "no-func-assign": "error",
115894
+ "no-global-assign": "error",
115895
+ "no-import-assign": "error",
115896
+ "no-invalid-regexp": "error",
115897
+ "no-irregular-whitespace": "error",
115898
+ "no-loss-of-precision": "error",
115899
+ "no-misleading-character-class": "error",
115900
+ "no-new-native-nonconstructor": "error",
115901
+ "no-nonoctal-decimal-escape": "error",
115902
+ "no-obj-calls": "error",
115903
+ "no-octal": "error",
115904
+ "no-prototype-builtins": "error",
115905
+ "no-redeclare": "error",
115906
+ "no-regex-spaces": "error",
115907
+ "no-self-assign": "error",
115908
+ "no-setter-return": "error",
115909
+ "no-shadow-restricted-names": "error",
115910
+ "no-sparse-arrays": "error",
115911
+ "no-this-before-super": "error",
115912
+ "no-undef": "error",
115913
+ "no-unexpected-multiline": "error",
115914
+ "no-unreachable": "error",
115915
+ "no-unsafe-finally": "error",
115916
+ "no-unsafe-negation": "error",
115917
+ "no-unsafe-optional-chaining": "error",
115918
+ "no-unused-labels": "error",
115919
+ "no-unused-private-class-members": "error",
115920
+ "no-unused-vars": "error",
115921
+ "no-useless-backreference": "error",
115922
+ "no-useless-catch": "error",
115923
+ "no-useless-escape": "error",
115924
+ "no-with": "error",
115925
+ "require-yield": "error",
115926
+ "use-isnan": "error",
115927
+ "valid-typeof": "error"
115928
+ }
115929
+ };
115928
115930
  const theme2 = EditorView.theme(
115929
115931
  {
115930
115932
  ".cm-content, .cm-gutter": {