Skip to content

Commit 3951a3f

Browse files
committed
Run make spec-format-fix
1 parent be3b927 commit 3951a3f

File tree

3 files changed

+57
-41
lines changed

3 files changed

+57
-41
lines changed

specification/_global/index/IndexRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ import { Duration } from '@_types/Time'
147147
* }
148148
* }
149149
* ```
150-
*
150+
*
151151
* In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.
152152
* If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code).
153153
*
154154
* A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used.
155155
* Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order.
156-
*
156+
*
157157
* @rest_spec_name index
158158
* @availability stack stability=stable
159159
* @availability serverless stability=stable visibility=public

specification/eslint.config.js

Lines changed: 54 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919
import parser from '@typescript-eslint/parser'
2020
import validator from 'eslint-plugin-es-spec'
21+
import { jsdoc } from 'eslint-plugin-jsdoc'
2122
import { defineConfig } from 'eslint/config'
22-
import { jsdoc } from 'eslint-plugin-jsdoc';
2323

2424
export default defineConfig([
2525
{
@@ -52,7 +52,11 @@ export default defineConfig([
5252
'indices.update_aliases',
5353
'watcher._types'
5454
],
55-
Actions: ['ilm._types', 'security.put_privileges', 'watcher._types'],
55+
Actions: [
56+
'ilm._types',
57+
'security.put_privileges',
58+
'watcher._types'
59+
],
5660
ComponentTemplate: ['cat.component_templates', 'cluster._types'],
5761
Context: [
5862
'_global.get_script_context',
@@ -68,7 +72,11 @@ export default defineConfig([
6872
Feature: ['features._types', 'indices.get', 'xpack.info'],
6973
Features: ['indices.get', 'xpack.info'],
7074
Filter: ['_global.termvectors', 'ml._types'],
71-
IndexingPressure: ['cluster.stats', 'indices._types', 'nodes._types'],
75+
IndexingPressure: [
76+
'cluster.stats',
77+
'indices._types',
78+
'nodes._types'
79+
],
7280
IndexingPressureMemory: ['indices._types', 'nodes._types'],
7381
Ingest: ['ingest._types', 'nodes._types'],
7482
MigrationFeature: [
@@ -125,45 +133,53 @@ export default defineConfig([
125133
config: 'flat/recommended-typescript-error',
126134
rules: {
127135
// Allow custom tags used in Elasticsearch specification
128-
'jsdoc/check-tag-names': ['error', {
129-
definedTags: [
130-
'UpdateForV10',
131-
'aliases',
132-
'availability',
133-
'behavior',
134-
'behavior_meta',
135-
'class_serializer',
136-
'cluster_privileges',
137-
'codegen_name',
138-
'codegen_names',
139-
'doc_id',
140-
'doc_tag',
141-
'doc_url',
142-
'es_quirk',
143-
'ext_doc_id',
144-
'index_privileges',
145-
'non_exhaustive',
146-
'prop_serializer',
147-
'rest_spec_name',
148-
'server_default',
149-
'shortcut_property',
150-
'variant',
151-
'variants'
152-
],
153-
}],
136+
'jsdoc/check-tag-names': [
137+
'error',
138+
{
139+
definedTags: [
140+
'UpdateForV10',
141+
'aliases',
142+
'availability',
143+
'behavior',
144+
'behavior_meta',
145+
'class_serializer',
146+
'cluster_privileges',
147+
'codegen_name',
148+
'codegen_names',
149+
'doc_id',
150+
'doc_tag',
151+
'doc_url',
152+
'es_quirk',
153+
'ext_doc_id',
154+
'index_privileges',
155+
'non_exhaustive',
156+
'prop_serializer',
157+
'rest_spec_name',
158+
'server_default',
159+
'shortcut_property',
160+
'variant',
161+
'variants'
162+
]
163+
}
164+
],
154165
// Require UpdateForV10 tags to have an associated description/name
155-
"jsdoc/match-name": ["error", {
156-
match: [{
157-
"allowName":"/.+/","tags":["UpdateForV10"],
158-
"message": "Please provide a reason for the breaking change"
159-
}]
160-
}],
166+
'jsdoc/match-name': [
167+
'error',
168+
{
169+
match: [
170+
{
171+
allowName: '/.+/',
172+
tags: ['UpdateForV10'],
173+
message: 'Please provide a reason for the breaking change'
174+
}
175+
]
176+
}
177+
],
161178
// Allow Markdown formatting
162179
'jsdoc/tag-lines': 'off',
163180
'jsdoc/no-multi-asterisks': 'off',
164181
// server_default values aren't parsed by jsdoc correctly
165-
'jsdoc/valid-types': 'off',
166-
167-
},
182+
'jsdoc/valid-types': 'off'
183+
}
168184
})
169185
])

specification/ml/_types/inference.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export class NerInferenceOptions {
285285

286286
/** Fill mask inference options */
287287
export class FillMaskInferenceOptions {
288-
/**
288+
/**
289289
* The string/token which will be removed from incoming documents and replaced with the inference prediction(s).
290290
* In a response, this field contains the mask token for the specified model/tokenizer. Each model and tokenizer
291291
* has a predefined mask token which cannot be changed. Thus, it is recommended not to set this value in requests.

0 commit comments

Comments
 (0)