Skip to content

Commit c385561

Browse files
committed
Initial prototype of an ESLint-based validator of the Elasticsearch specification
1 parent 6bf710e commit c385561

8 files changed

+2203
-0
lines changed

specification/eslint.config.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import parser from '@typescript-eslint/parser'
2+
import validator from 'eslint-plugin-es-spec'
3+
import { defineConfig } from 'eslint/config'
4+
5+
export default defineConfig({
6+
files: ['**/*.ts'],
7+
languageOptions: {
8+
parser,
9+
parserOptions: {
10+
projectService: true,
11+
tsconfigRootDir: import.meta.dirname
12+
}
13+
},
14+
plugins: { 'es-spec-validator': validator },
15+
rules: {
16+
'es-spec-validator/single-key-dictionary-key-is-string': 'error'
17+
}
18+
})

0 commit comments

Comments
 (0)