@nitra/eslint-config 3.6.10 → 3.6.11
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/index.js
CHANGED
|
@@ -236,7 +236,9 @@ const all = [
|
|
|
236
236
|
},
|
|
237
237
|
rules: {
|
|
238
238
|
...js.configs.recommended.rules,
|
|
239
|
-
'no-unused-vars': NO_UNUSED_VARS_RULE
|
|
239
|
+
'no-unused-vars': NO_UNUSED_VARS_RULE,
|
|
240
|
+
// `continue` дозволено як легітимний контроль потоку в циклах.
|
|
241
|
+
'no-continue': 'off'
|
|
240
242
|
}
|
|
241
243
|
},
|
|
242
244
|
// Unicorn правила (лише JS-подібні файли — узгоджено з блоком рекомендованих правил ESLint)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitra/eslint-config",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.11",
|
|
4
4
|
"description": "An ESLint shareable config for projects using Vue and Node",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"graphql-eslint-anchor.js",
|
|
18
|
-
"index.
|
|
19
|
-
"
|
|
18
|
+
"index.js",
|
|
19
|
+
"types"
|
|
20
20
|
],
|
|
21
21
|
"type": "module",
|
|
22
|
-
"types": "./index.d.ts",
|
|
22
|
+
"types": "./types/index.d.ts",
|
|
23
23
|
"exports": "./index.js",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@e18e/eslint-plugin": "^0.3.0",
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Шлях для graphql-config: для віртуальних блоків Vue — фізичний .vue, інакше той самий filePath.
|
|
3
|
+
* @param {string} filePath шлях файлу, який обробляє processor
|
|
4
|
+
* @returns {string} шлях для loadOnDiskGraphQLConfig та getProjectForFile
|
|
5
|
+
*/
|
|
6
|
+
export function graphQLConfigPathAnchor(filePath?: string): string
|
|
7
|
+
/**
|
|
8
|
+
* Парсер graphql-eslint: той самий anchor для filePath, щоб loadGraphQLConfig знаходив проєкт для віртуальних document.graphql з-під Vue.
|
|
9
|
+
* @param {string} code вміст GraphQL-документа
|
|
10
|
+
* @param {import('eslint').Linter.ParserOptions} options опції ESLint (filePath тощо)
|
|
11
|
+
* @returns {ReturnType<typeof baseParser.parseForESLint>} AST і parserServices для graphql-eslint
|
|
12
|
+
*/
|
|
13
|
+
export function graphqlParseForESLintWithAnchor(
|
|
14
|
+
code: string,
|
|
15
|
+
options?: import('eslint').Linter.ParserOptions
|
|
16
|
+
): ReturnType<typeof baseParser.parseForESLint>
|
|
17
|
+
export namespace graphqlCodefileProcessor {
|
|
18
|
+
namespace meta {
|
|
19
|
+
export let name: string
|
|
20
|
+
export { version }
|
|
21
|
+
}
|
|
22
|
+
let supportsAutofix: boolean
|
|
23
|
+
function preprocess(code: any, filePath: any): any[]
|
|
24
|
+
function postprocess(messages: any, filePath: any): any
|
|
25
|
+
}
|
|
26
|
+
export namespace graphqlParserWithConfigAnchor {
|
|
27
|
+
let meta_1: {
|
|
28
|
+
name: string
|
|
29
|
+
version: string | undefined
|
|
30
|
+
}
|
|
31
|
+
export { meta_1 as meta }
|
|
32
|
+
export { graphqlParseForESLintWithAnchor as parseForESLint }
|
|
33
|
+
}
|
|
34
|
+
declare const baseParser: {
|
|
35
|
+
parseForESLint: typeof import('@graphql-eslint/eslint-plugin').parseForESLint
|
|
36
|
+
meta: {
|
|
37
|
+
name: string
|
|
38
|
+
version: string | undefined
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
import { version } from '@graphql-eslint/eslint-plugin/meta'
|
|
42
|
+
export {}
|
|
File without changes
|