Property reference

glide.ui.syntax_editor.linter.eslint_config

Defines the ESLint rules used to lint scripts in the JavaScript syntax editor. The default configuration warns on many common code issues while disabling checks for undefined and unused variables.

Default
{ "rules": { "constructor-super": "warn", "no-case-declarations": "warn", "no-class-assign": "warn", "no-compare-neg-zero": "warn", "no-cond-assign": "warn", "no-console": "warn", "no-const-assign": "warn", "no-constant-condition": "warn", "no-control-regex": "warn", "no-debugger": "warn", "no-delete-var": "warn", "no-dupe-args": "warn", "no-dupe-class-members": "warn", "no-dupe-keys": "warn", "no-duplicate-case": "warn", "no-empty-character-class": "warn", "no-empty-pattern": "warn", "no-empty": ["warn", { "allowEmptyCatch": true }], "no-ex-assign": "warn", "no-extra-boolean-cast": "warn", "no-extra-semi": "warn", "semi" : "warn", "no-fallthrough": "warn", "no-func-assign": "warn", "no-global-assign": "warn", "no-inner-declarations": "warn", "no-invalid-regexp": "warn", "no-irregular-whitespace": "warn", "no-mixed-spaces-and-tabs": "warn", "no-new-symbol": "warn", "no-obj-calls": "warn", "no-octal": "warn", "no-redeclare": "warn", "no-regex-spaces": "warn", "no-self-assign": "warn", "no-sparse-arrays": "warn", "no-this-before-super": "warn", "no-undef": "off", "no-unexpected-multiline": "warn", "no-unreachable": "warn", "no-unsafe-finally": "warn", "no-unsafe-negation": "warn", "no-unused-labels": "warn", "no-unused-vars": "off", "no-useless-escape": "warn", "require-yield": "warn", "use-isnan": "warn", "valid-typeof": "warn" } }
Type
string
Application
Global

Key questions about this property

The answers below summarize the purpose, scope, default effect, and review scenarios for this property.

What does it do? This property defines a set of ESlint rules that govern code quality checks for JavaScript within the ServiceNow platform.
What area does it affect? JavaScript code linting
What does the default mean? The default value is "{ "rules": { "constructor-super": "warn", "no-case-declarations": "warn", "no-class-assign": "warn", "no-compare-neg-zero": "warn", "no-cond-assign": "warn", "no-console": "warn", "no-const-assign": "warn", "no-constant-condition": "warn", "no-control-regex": "warn", "no-debugger": "warn", "no-delete-var": "warn", "no-dupe-args": "warn", "no-dupe-class-members": "warn", "no-dupe-keys": "warn", "no-duplicate-case": "warn", "no-empty-character-class": "warn", "no-empty-pattern": "warn", "no-empty": ["warn", { "allowEmptyCatch": true }], "no-ex-assign": "warn", "no-extra-boolean-cast": "warn", "no-extra-semi": "warn", "semi" : "warn", "no-fallthrough": "warn", "no-func-assign": "warn", "no-global-assign": "warn", "no-inner-declarations": "warn", "no-invalid-regexp": "warn", "no-irregular-whitespace": "warn", "no-mixed-spaces-and-tabs": "warn", "no-new-symbol": "warn", "no-obj-calls": "warn", "no-octal": "warn", "no-redeclare": "warn", "no-regex-spaces": "warn", "no-self-assign": "warn", "no-sparse-arrays": "warn", "no-this-before-super": "warn", "no-undef": "off", "no-unexpected-multiline": "warn", "no-unreachable": "warn", "no-unsafe-finally": "warn", "no-unsafe-negation": "warn", "no-unused-labels": "warn", "no-unused-vars": "off", "no-useless-escape": "warn", "require-yield": "warn", "use-isnan": "warn", "valid-typeof": "warn" } }", which is the baseline setting used unless it is changed.
When should you review it? Review this property when updating coding standards or integrating new JavaScript features.

Out of the box property record

Raw metadata from the property record.

Property name glide.ui.syntax_editor.linter.eslint_config
Sys ID 9bebca14731023001c233096fbf6a753
Type string
Application Global
Default value { "rules": { "constructor-super": "warn", "no-case-declarations": "warn", "no-class-assign": "warn", "no-compare-neg-zero": "warn", "no-cond-assign": "warn", "no-console": "warn", "no-const-assign": "warn", "no-constant-condition": "warn", "no-control-regex": "warn", "no-debugger": "warn", "no-delete-var": "warn", "no-dupe-args": "warn", "no-dupe-class-members": "warn", "no-dupe-keys": "warn", "no-duplicate-case": "warn", "no-empty-character-class": "warn", "no-empty-pattern": "warn", "no-empty": ["warn", { "allowEmptyCatch": true }], "no-ex-assign": "warn", "no-extra-boolean-cast": "warn", "no-extra-semi": "warn", "semi" : "warn", "no-fallthrough": "warn", "no-func-assign": "warn", "no-global-assign": "warn", "no-inner-declarations": "warn", "no-invalid-regexp": "warn", "no-irregular-whitespace": "warn", "no-mixed-spaces-and-tabs": "warn", "no-new-symbol": "warn", "no-obj-calls": "warn", "no-octal": "warn", "no-redeclare": "warn", "no-regex-spaces": "warn", "no-self-assign": "warn", "no-sparse-arrays": "warn", "no-this-before-super": "warn", "no-undef": "off", "no-unexpected-multiline": "warn", "no-unreachable": "warn", "no-unsafe-finally": "warn", "no-unsafe-negation": "warn", "no-unused-labels": "warn", "no-unused-vars": "off", "no-useless-escape": "warn", "require-yield": "warn", "use-isnan": "warn", "valid-typeof": "warn" } }
Description ESlint configuration
Updated 2024-05-25 04:04:44

Sources

Official references and nearby text excerpts where this property appears.

Context preview Snippet 1
... JavaScript syntax editor for script fields. • glide.ui.syntax_editor.show_warnings_errors: Configure whether to show indicators next to a line of code that contains an issue for errors, warnings, both, or none. • glide.ui.syntax_editor.linter.eslint_config: View or modify the default linting configurations for scripts. • glide.ui.syntax_editor.linter.eslint_config.ecmascript2021: View or modify the default linting configurations for scripts using the ECMAScript 2021 (ES12) JavaScript mode. • glide.ui.syntax_editor.context_menu: Turn ...
Context preview Snippet 2
... | false • Default value: false glide.ui.syntax_editor.context_menu Enables disables the context menu in script editor. • Type: true | false • Default value: true • Location: System Property [sys_properties] table glide.ui.syntax_editor.linter.eslint_config Defines linting configurations using the ESLint utility. • Type: string • Default value: All recommended ESLint rules are enabled, except no-undef, no- unused-vars, no-empty, and semi. • Location: System Property ...

More in glide.ui

Other properties in the same namespace.

All 731 properties in glide.ui →