@storm-software/linting-tools 1.0.0
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/LICENSE +201 -0
- package/README.md +142 -0
- package/alex/.alexignore +5 -0
- package/alex/.alexrc +43 -0
- package/bin/cli.js +13 -0
- package/cli/index.js +315082 -0
- package/cspell/config.js +212 -0
- package/cspell/dictionary.txt +239 -0
- package/eslint/graphql/index.js +133 -0
- package/eslint/javascript/index.js +376 -0
- package/eslint/jest/index.js +24 -0
- package/eslint/json/index.js +100 -0
- package/eslint/next/index.js +95 -0
- package/eslint/react/index.js +144 -0
- package/eslint/typescript/index.js +577 -0
- package/manypkg/index.js +25626 -0
- package/package.json +118 -0
- package/prettier/.prettierignore +15 -0
- package/prettier/config.json +28 -0
- package/tsconfig/reset.d.ts +2 -0
- package/tsconfig/tsconfig.root.json +24 -0
package/cspell/config.js
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"$schema":
|
|
3
|
+
"https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
|
|
4
|
+
version: "0.2",
|
|
5
|
+
name: "Storm cspell settings",
|
|
6
|
+
id: "storm-cspell",
|
|
7
|
+
description: "Default cspell configuration used by Storm Software.",
|
|
8
|
+
language: "en",
|
|
9
|
+
caseSensitive: false,
|
|
10
|
+
enabledLanguageIds: [
|
|
11
|
+
"typescript",
|
|
12
|
+
"javascript",
|
|
13
|
+
"typescriptreact",
|
|
14
|
+
"javascriptreact",
|
|
15
|
+
"mdx",
|
|
16
|
+
"json",
|
|
17
|
+
"jsonc",
|
|
18
|
+
"html",
|
|
19
|
+
"handlebars",
|
|
20
|
+
"markdown"
|
|
21
|
+
],
|
|
22
|
+
maxNumberOfProblems: 10000,
|
|
23
|
+
dictionaryDefinitions: [
|
|
24
|
+
{
|
|
25
|
+
// The name of the dictionary is used to look it up.
|
|
26
|
+
name: "storm",
|
|
27
|
+
// Path to the custom word file. Relative to this `cspell.json` file.
|
|
28
|
+
path: "./dictionary.txt",
|
|
29
|
+
// Some editor extensions will use `addWords` for adding words to your
|
|
30
|
+
// personal dictionary.
|
|
31
|
+
addWords: true
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
dictionaries: [
|
|
35
|
+
"storm",
|
|
36
|
+
"companies",
|
|
37
|
+
"softwareTerms",
|
|
38
|
+
"public-licenses",
|
|
39
|
+
"filetypes"
|
|
40
|
+
],
|
|
41
|
+
flagWords: [],
|
|
42
|
+
|
|
43
|
+
// Ignore files that aren't check in to git as well as files that aren't written
|
|
44
|
+
// by hand. Note that we do want to check, say, JSON files (as package.json
|
|
45
|
+
// contains English text like package descriptions).
|
|
46
|
+
useGitignore: true,
|
|
47
|
+
// GitHub Security Advisories
|
|
48
|
+
ignoreRegExpList: ["GHSA-[-\\w]+"],
|
|
49
|
+
overrides: [
|
|
50
|
+
{
|
|
51
|
+
//Ignore anything in a changelog file that looks like a GitHub username.
|
|
52
|
+
filename: "**/CHANGELOG*.md",
|
|
53
|
+
ignoreRegExpList: ["@[-\\w]+"]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
//Ignore the targets of links in Markdown/MDX files.
|
|
57
|
+
filename: "'**/*.md*",
|
|
58
|
+
ignoreRegExpList: ["\\]\\([^)]+\\)"]
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
patterns: [
|
|
62
|
+
{
|
|
63
|
+
name: "HTML-symbol-entity",
|
|
64
|
+
description: "Matches on HTML symbols like `♣`",
|
|
65
|
+
pattern: /&[a-z]+;/g
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "MARKDOWN-link-reference",
|
|
69
|
+
description:
|
|
70
|
+
"Markdown reference link: `[This is a link][reference]`, matches `[reference]`",
|
|
71
|
+
pattern: /(?<=\])\[[-\w.`'"*&;#@ ]+\]/g
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "MARKDOWN-link-footer",
|
|
75
|
+
description:
|
|
76
|
+
"Markdown referenced link: `[reference]: https://www.google.com`, matches the entire reference.",
|
|
77
|
+
pattern: /\[[-\w.`'"*&;#@ ]+\]:( [^\s]*)?/g
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "MARKDOWN-link",
|
|
81
|
+
description: "Markdown link: `[link text](link)`, matches `link`",
|
|
82
|
+
pattern: /(?<=\]\()[^)\s]+/g
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "MARKDOWN-anchor",
|
|
86
|
+
description:
|
|
87
|
+
'Markdown Anchors: `<a id="my_link"></a>`, matches `my_link`',
|
|
88
|
+
pattern: /(?<=<a\s+id=")[^"\s]+/g
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
languageSettings: [
|
|
92
|
+
{
|
|
93
|
+
languageId: "javascript,javascriptreact",
|
|
94
|
+
dictionaries: ["storm", "typescript", "node", "npm"]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
languageId: "typescript,typescriptreact,mdx",
|
|
98
|
+
dictionaries: ["storm", "typescript", "node", "npm"]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
languageId: "javascriptreact,typescriptreact,mdx",
|
|
102
|
+
dictionaries: ["storm", "html", "html-symbol-entities", "css", "fonts"]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
languageId: "markdown,asciidoc",
|
|
106
|
+
dictionaries: ["storm", "npm", "html", "html-symbol-entities"]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
languageId: "html,pug,jade,php,handlebars",
|
|
110
|
+
dictionaries: [
|
|
111
|
+
"storm",
|
|
112
|
+
"html",
|
|
113
|
+
"fonts",
|
|
114
|
+
"typescript",
|
|
115
|
+
"css",
|
|
116
|
+
"npm",
|
|
117
|
+
"html-symbol-entities"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
languageId: "json,jsonc",
|
|
122
|
+
dictionaries: ["storm", "node", "npm"]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
languageId: "php",
|
|
126
|
+
dictionaries: ["storm", "php"]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
languageId: "css,less,scss",
|
|
130
|
+
dictionaries: ["storm", "fonts", "css"]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
languageId: "map",
|
|
134
|
+
enabled: false
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
languageId: "image",
|
|
138
|
+
enabled: false
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
languageId: "binary",
|
|
142
|
+
enabled: false
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
languageId: "markdown,html,mdx",
|
|
146
|
+
ignoreRegExpList: ["HTML-symbol-entity"]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
languageId: "html",
|
|
150
|
+
ignoreRegExpList: ["href"]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
languageId: "markdown",
|
|
154
|
+
ignoreRegExpList: [
|
|
155
|
+
"MARKDOWN-link-reference",
|
|
156
|
+
"MARKDOWN-link-footer",
|
|
157
|
+
"MARKDOWN-link",
|
|
158
|
+
"MARKDOWN-anchor"
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
import: [
|
|
163
|
+
"@cspell/dict-ada/cspell-ext.json",
|
|
164
|
+
"@cspell/dict-aws/cspell-ext.json",
|
|
165
|
+
"@cspell/dict-bash/cspell-ext.json",
|
|
166
|
+
"@cspell/dict-companies/cspell-ext.json",
|
|
167
|
+
"@cspell/dict-cpp/cspell-ext.json",
|
|
168
|
+
"@cspell/dict-cryptocurrencies/cspell-ext.json",
|
|
169
|
+
"@cspell/dict-csharp/cspell-ext.json",
|
|
170
|
+
"@cspell/dict-css/cspell-ext.json",
|
|
171
|
+
"@cspell/dict-dart/cspell-ext.json",
|
|
172
|
+
"@cspell/dict-django/cspell-ext.json",
|
|
173
|
+
"@cspell/dict-docker/cspell-ext.json",
|
|
174
|
+
"@cspell/dict-dotnet/cspell-ext.json",
|
|
175
|
+
"@cspell/dict-elixir/cspell-ext.json",
|
|
176
|
+
"@cspell/dict-en_us/cspell-ext.json",
|
|
177
|
+
"@cspell/dict-en-common-misspellings/cspell-ext.json",
|
|
178
|
+
"@cspell/dict-en-gb/cspell-ext.json",
|
|
179
|
+
"@cspell/dict-filetypes/cspell-ext.json",
|
|
180
|
+
"@cspell/dict-fonts/cspell-ext.json",
|
|
181
|
+
"@cspell/dict-fsharp/cspell-ext.json",
|
|
182
|
+
"@cspell/dict-fullstack/cspell-ext.json",
|
|
183
|
+
"@cspell/dict-gaming-terms/cspell-ext.json",
|
|
184
|
+
"@cspell/dict-git/cspell-ext.json",
|
|
185
|
+
"@cspell/dict-golang/cspell-ext.json",
|
|
186
|
+
"@cspell/dict-haskell/cspell-ext.json",
|
|
187
|
+
"@cspell/dict-html-symbol-entities/cspell-ext.json",
|
|
188
|
+
"@cspell/dict-html/cspell-ext.json",
|
|
189
|
+
"@cspell/dict-java/cspell-ext.json",
|
|
190
|
+
"@cspell/dict-k8s/cspell-ext.json",
|
|
191
|
+
"@cspell/dict-latex/cspell-ext.json",
|
|
192
|
+
"@cspell/dict-lorem-ipsum/cspell-ext.json",
|
|
193
|
+
"@cspell/dict-lua/cspell-ext.json",
|
|
194
|
+
"@cspell/dict-makefile/cspell-ext.json",
|
|
195
|
+
"@cspell/dict-node/cspell-ext.json",
|
|
196
|
+
"@cspell/dict-npm/cspell-ext.json",
|
|
197
|
+
"@cspell/dict-php/cspell-ext.json",
|
|
198
|
+
"@cspell/dict-powershell/cspell-ext.json",
|
|
199
|
+
"@cspell/dict-public-licenses/cspell-ext.json",
|
|
200
|
+
"@cspell/dict-python/cspell-ext.json",
|
|
201
|
+
"@cspell/dict-r/cspell-ext.json",
|
|
202
|
+
"@cspell/dict-ruby/cspell-ext.json",
|
|
203
|
+
"@cspell/dict-rust/cspell-ext.json",
|
|
204
|
+
"@cspell/dict-scala/cspell-ext.json",
|
|
205
|
+
"@cspell/dict-sql/cspell-ext.json",
|
|
206
|
+
"@cspell/dict-software-terms/cspell-ext.json",
|
|
207
|
+
"@cspell/dict-svelte/cspell-ext.json",
|
|
208
|
+
"@cspell/dict-swift/cspell-ext.json",
|
|
209
|
+
"@cspell/dict-typescript/cspell-ext.json",
|
|
210
|
+
"@cspell/dict-vue/cspell-ext.json"
|
|
211
|
+
]
|
|
212
|
+
};
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
# Base CSpell dictionary for the Open System repository
|
|
2
|
+
|
|
3
|
+
stormstack
|
|
4
|
+
stormcloud
|
|
5
|
+
Akka
|
|
6
|
+
alexignore
|
|
7
|
+
alexjs
|
|
8
|
+
alexrc
|
|
9
|
+
cdvc
|
|
10
|
+
mkdn
|
|
11
|
+
mkdown
|
|
12
|
+
Pluggable
|
|
13
|
+
retext
|
|
14
|
+
vfile
|
|
15
|
+
autoincrement
|
|
16
|
+
favicons
|
|
17
|
+
valibot
|
|
18
|
+
hasura
|
|
19
|
+
strapi
|
|
20
|
+
allcontributors
|
|
21
|
+
probot
|
|
22
|
+
smee
|
|
23
|
+
remeda
|
|
24
|
+
stormie
|
|
25
|
+
npmjs
|
|
26
|
+
noopener
|
|
27
|
+
noreferrer
|
|
28
|
+
tmpl
|
|
29
|
+
frontmatter
|
|
30
|
+
rehype
|
|
31
|
+
spawndamnit
|
|
32
|
+
tsup
|
|
33
|
+
maxage
|
|
34
|
+
unpublish
|
|
35
|
+
Akash
|
|
36
|
+
Hernández
|
|
37
|
+
Rajpurohit
|
|
38
|
+
Rajpurohits
|
|
39
|
+
changecase
|
|
40
|
+
cockroachdb
|
|
41
|
+
jdbc
|
|
42
|
+
sqlserver
|
|
43
|
+
EDITMSG
|
|
44
|
+
shellescape
|
|
45
|
+
uploadables
|
|
46
|
+
visibillitychange
|
|
47
|
+
preid
|
|
48
|
+
nxrelease
|
|
49
|
+
Ponyfill
|
|
50
|
+
Antiforgery
|
|
51
|
+
APIKEY
|
|
52
|
+
applogs
|
|
53
|
+
appsettings
|
|
54
|
+
ASPNETCORE
|
|
55
|
+
msword
|
|
56
|
+
repeaterjs
|
|
57
|
+
runtimes
|
|
58
|
+
unparseable
|
|
59
|
+
asyncapi
|
|
60
|
+
automerge
|
|
61
|
+
avrogen
|
|
62
|
+
backlink
|
|
63
|
+
badkey
|
|
64
|
+
Benning
|
|
65
|
+
Bootstrapper
|
|
66
|
+
Buildable
|
|
67
|
+
cacheable
|
|
68
|
+
checkmark
|
|
69
|
+
CLICKHOUSE
|
|
70
|
+
Clonable
|
|
71
|
+
Cloneable
|
|
72
|
+
clsx
|
|
73
|
+
codecov
|
|
74
|
+
codegen
|
|
75
|
+
commitlint
|
|
76
|
+
compat
|
|
77
|
+
conventionalcommits
|
|
78
|
+
corepack
|
|
79
|
+
cssmodule
|
|
80
|
+
cuid
|
|
81
|
+
Customizer
|
|
82
|
+
datamodel
|
|
83
|
+
DATAPROXY
|
|
84
|
+
postbuild
|
|
85
|
+
sonarjs
|
|
86
|
+
tsdoc
|
|
87
|
+
ultrabold
|
|
88
|
+
Datasource
|
|
89
|
+
datasources
|
|
90
|
+
datetime
|
|
91
|
+
devcontainer
|
|
92
|
+
devkit
|
|
93
|
+
dimens
|
|
94
|
+
DMMF
|
|
95
|
+
docgen
|
|
96
|
+
doctoc
|
|
97
|
+
dpdm
|
|
98
|
+
endregion
|
|
99
|
+
enjoi
|
|
100
|
+
esbuild
|
|
101
|
+
espree
|
|
102
|
+
eventcatalog
|
|
103
|
+
eventsourced
|
|
104
|
+
Expando
|
|
105
|
+
fullpath
|
|
106
|
+
funct
|
|
107
|
+
graphiql
|
|
108
|
+
Hasher
|
|
109
|
+
healthcheck
|
|
110
|
+
healthz
|
|
111
|
+
heroicons
|
|
112
|
+
Hocon
|
|
113
|
+
hookform
|
|
114
|
+
Hsts
|
|
115
|
+
ICRUD
|
|
116
|
+
indexeddb
|
|
117
|
+
infisical
|
|
118
|
+
Inversify
|
|
119
|
+
Invision
|
|
120
|
+
jsbi
|
|
121
|
+
kafkajs
|
|
122
|
+
keybase
|
|
123
|
+
ksql
|
|
124
|
+
kysely
|
|
125
|
+
langium
|
|
126
|
+
Linq
|
|
127
|
+
macrotask
|
|
128
|
+
manypkg
|
|
129
|
+
mediastream
|
|
130
|
+
Mediat
|
|
131
|
+
memjs
|
|
132
|
+
Mergeable
|
|
133
|
+
metafile
|
|
134
|
+
Mintlify
|
|
135
|
+
modelina
|
|
136
|
+
msvc
|
|
137
|
+
nextjs
|
|
138
|
+
nodelib
|
|
139
|
+
Npgsql
|
|
140
|
+
nrwl
|
|
141
|
+
nunit
|
|
142
|
+
nxkit
|
|
143
|
+
occured
|
|
144
|
+
openapi
|
|
145
|
+
opengraph
|
|
146
|
+
opentelemetry
|
|
147
|
+
operationgroup
|
|
148
|
+
otel
|
|
149
|
+
otlp
|
|
150
|
+
outdir
|
|
151
|
+
outfile
|
|
152
|
+
packagejson
|
|
153
|
+
Parens
|
|
154
|
+
Parseable
|
|
155
|
+
partytown
|
|
156
|
+
patsullivan
|
|
157
|
+
Persistor
|
|
158
|
+
Petabridge
|
|
159
|
+
pino
|
|
160
|
+
plantuml
|
|
161
|
+
pmmmwh
|
|
162
|
+
pnpapi
|
|
163
|
+
Pothos
|
|
164
|
+
Prehydration
|
|
165
|
+
preinstall
|
|
166
|
+
QLID
|
|
167
|
+
QUARTERNARY
|
|
168
|
+
rabbitmq
|
|
169
|
+
radash
|
|
170
|
+
redlock
|
|
171
|
+
Redocly
|
|
172
|
+
redocusaurus
|
|
173
|
+
reduxjs
|
|
174
|
+
Remoting
|
|
175
|
+
renamer
|
|
176
|
+
Renderable
|
|
177
|
+
Roadmap
|
|
178
|
+
rollup
|
|
179
|
+
ruhl
|
|
180
|
+
SASL
|
|
181
|
+
satoshi
|
|
182
|
+
sdls
|
|
183
|
+
Serdes
|
|
184
|
+
Seri
|
|
185
|
+
Serilog
|
|
186
|
+
squircle
|
|
187
|
+
stacktracey
|
|
188
|
+
stenciljs
|
|
189
|
+
Storyshots
|
|
190
|
+
Structurizr
|
|
191
|
+
Substreams
|
|
192
|
+
sullivanpj
|
|
193
|
+
superjson
|
|
194
|
+
supertokens
|
|
195
|
+
svgr
|
|
196
|
+
Swashbuckle
|
|
197
|
+
swcrc
|
|
198
|
+
systemvars
|
|
199
|
+
tailwindcss
|
|
200
|
+
tbenning
|
|
201
|
+
theunderscorer
|
|
202
|
+
Timespan
|
|
203
|
+
tinycolor
|
|
204
|
+
tsdocs
|
|
205
|
+
typecheck
|
|
206
|
+
typesense
|
|
207
|
+
unbase
|
|
208
|
+
unbased
|
|
209
|
+
Uncapitalize
|
|
210
|
+
Unnormalized
|
|
211
|
+
unoptimized
|
|
212
|
+
Unproxied
|
|
213
|
+
unserializable
|
|
214
|
+
Unstash
|
|
215
|
+
upgrader
|
|
216
|
+
Upgraders
|
|
217
|
+
upstash
|
|
218
|
+
urlpattern
|
|
219
|
+
uuidv
|
|
220
|
+
Validatable
|
|
221
|
+
Visualiser
|
|
222
|
+
webapi
|
|
223
|
+
webp
|
|
224
|
+
websphere
|
|
225
|
+
whatwg
|
|
226
|
+
wunderctl
|
|
227
|
+
wundergraph
|
|
228
|
+
zenstack
|
|
229
|
+
asyncapi
|
|
230
|
+
bundlewatch
|
|
231
|
+
clsx
|
|
232
|
+
commitlint
|
|
233
|
+
compat
|
|
234
|
+
heroicons
|
|
235
|
+
nrwl
|
|
236
|
+
opentelemetry
|
|
237
|
+
radash
|
|
238
|
+
redocusaurus
|
|
239
|
+
tailwindcss
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { fileURLToPath as _fileURLToPath } from 'url';
|
|
2
|
+
import _path from 'node:path';
|
|
3
|
+
import { createRequire as topLevelCreateRequire } from 'module';
|
|
4
|
+
const require = topLevelCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = _fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = _path.dirname(__filename);
|
|
7
|
+
|
|
8
|
+
// packages/linting-tools/src/eslint/graphql/index.ts
|
|
9
|
+
var config = {
|
|
10
|
+
root: true,
|
|
11
|
+
overrides: [
|
|
12
|
+
{
|
|
13
|
+
files: ["*.js", "*.ts", "*.jsx", "*.tsx"],
|
|
14
|
+
processor: "@graphql-eslint/graphql",
|
|
15
|
+
extends: ["plugin:relay/recommended"],
|
|
16
|
+
plugins: ["@graphql-eslint", "relay"],
|
|
17
|
+
rules: {
|
|
18
|
+
"@graphql-eslint/relay-arguments": "error",
|
|
19
|
+
"@graphql-eslint/relay-connection-types": "error",
|
|
20
|
+
"@graphql-eslint/relay-edge-types": "error",
|
|
21
|
+
"@graphql-eslint/relay-page-info": "error",
|
|
22
|
+
"@graphql-eslint/executable-definitions": "error",
|
|
23
|
+
"@graphql-eslint/fields-on-correct-type": "error",
|
|
24
|
+
"@graphql-eslint/fragments-on-composite-type": "error",
|
|
25
|
+
"@graphql-eslint/known-argument-names": "error",
|
|
26
|
+
"@graphql-eslint/known-directives": "error",
|
|
27
|
+
"@graphql-eslint/known-fragment-names": "error",
|
|
28
|
+
"@graphql-eslint/known-type-names": "error",
|
|
29
|
+
"@graphql-eslint/lone-anonymous-operation": "error",
|
|
30
|
+
"@graphql-eslint/naming-convention": [
|
|
31
|
+
"error",
|
|
32
|
+
{
|
|
33
|
+
VariableDefinition: "camelCase",
|
|
34
|
+
OperationDefinition: {
|
|
35
|
+
style: "PascalCase",
|
|
36
|
+
forbiddenPrefixes: ["Query", "Mutation", "Subscription", "Get"],
|
|
37
|
+
forbiddenSuffixes: ["Query", "Mutation", "Subscription"]
|
|
38
|
+
},
|
|
39
|
+
FragmentDefinition: {
|
|
40
|
+
style: "PascalCase",
|
|
41
|
+
forbiddenPrefixes: ["Fragment"],
|
|
42
|
+
forbiddenSuffixes: ["Fragment"]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"@graphql-eslint/no-anonymous-operations": "error",
|
|
47
|
+
"@graphql-eslint/no-deprecated": "error",
|
|
48
|
+
"@graphql-eslint/no-duplicate-fields": "error",
|
|
49
|
+
"@graphql-eslint/no-fragment-cycles": "error",
|
|
50
|
+
"@graphql-eslint/no-undefined-variables": "error",
|
|
51
|
+
"@graphql-eslint/no-unused-fragments": "error",
|
|
52
|
+
"@graphql-eslint/no-unused-variables": "error",
|
|
53
|
+
"@graphql-eslint/one-field-subscriptions": "error",
|
|
54
|
+
"@graphql-eslint/overlapping-fields-can-be-merged": "error",
|
|
55
|
+
"@graphql-eslint/possible-fragment-spread": "error",
|
|
56
|
+
"@graphql-eslint/provided-required-arguments": "error",
|
|
57
|
+
"@graphql-eslint/require-id-when-available": "error",
|
|
58
|
+
"@graphql-eslint/scalar-leafs": "error",
|
|
59
|
+
"@graphql-eslint/selection-set-depth": ["error", { maxDepth: 7 }],
|
|
60
|
+
"@graphql-eslint/unique-argument-names": "error",
|
|
61
|
+
"@graphql-eslint/unique-directive-names-per-location": "error",
|
|
62
|
+
"@graphql-eslint/unique-input-field-names": "error",
|
|
63
|
+
"@graphql-eslint/unique-variable-names": "error",
|
|
64
|
+
"@graphql-eslint/value-literals-of-correct-type": "error",
|
|
65
|
+
"@graphql-eslint/variables-are-input-types": "error",
|
|
66
|
+
"@graphql-eslint/variables-in-allowed-position": "error",
|
|
67
|
+
"relay/generated-flow-types": "off"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
files: ["*.graphql"],
|
|
72
|
+
parser: "@graphql-eslint/eslint-plugin",
|
|
73
|
+
extends: ["plugin:relay/recommended"],
|
|
74
|
+
plugins: ["@graphql-eslint", "relay"],
|
|
75
|
+
rules: {
|
|
76
|
+
"@graphql-eslint/relay-arguments": "error",
|
|
77
|
+
"@graphql-eslint/relay-connection-types": "error",
|
|
78
|
+
"@graphql-eslint/relay-edge-types": "error",
|
|
79
|
+
"@graphql-eslint/relay-page-info": "error",
|
|
80
|
+
"@graphql-eslint/executable-definitions": "error",
|
|
81
|
+
"@graphql-eslint/fields-on-correct-type": "error",
|
|
82
|
+
"@graphql-eslint/fragments-on-composite-type": "error",
|
|
83
|
+
"@graphql-eslint/known-argument-names": "error",
|
|
84
|
+
"@graphql-eslint/known-directives": "error",
|
|
85
|
+
"@graphql-eslint/known-fragment-names": "error",
|
|
86
|
+
"@graphql-eslint/known-type-names": "error",
|
|
87
|
+
"@graphql-eslint/lone-anonymous-operation": "error",
|
|
88
|
+
"@graphql-eslint/naming-convention": [
|
|
89
|
+
"error",
|
|
90
|
+
{
|
|
91
|
+
VariableDefinition: "camelCase",
|
|
92
|
+
OperationDefinition: {
|
|
93
|
+
style: "PascalCase",
|
|
94
|
+
forbiddenPrefixes: ["Query", "Mutation", "Subscription", "Get"],
|
|
95
|
+
forbiddenSuffixes: ["Query", "Mutation", "Subscription"]
|
|
96
|
+
},
|
|
97
|
+
FragmentDefinition: {
|
|
98
|
+
style: "PascalCase",
|
|
99
|
+
forbiddenPrefixes: ["Fragment"],
|
|
100
|
+
forbiddenSuffixes: ["Fragment"]
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"@graphql-eslint/no-anonymous-operations": "error",
|
|
105
|
+
"@graphql-eslint/no-deprecated": "error",
|
|
106
|
+
"@graphql-eslint/no-duplicate-fields": "error",
|
|
107
|
+
"@graphql-eslint/no-fragment-cycles": "error",
|
|
108
|
+
"@graphql-eslint/no-undefined-variables": "error",
|
|
109
|
+
"@graphql-eslint/no-unused-fragments": "error",
|
|
110
|
+
"@graphql-eslint/no-unused-variables": "error",
|
|
111
|
+
"@graphql-eslint/one-field-subscriptions": "error",
|
|
112
|
+
"@graphql-eslint/overlapping-fields-can-be-merged": "error",
|
|
113
|
+
"@graphql-eslint/possible-fragment-spread": "error",
|
|
114
|
+
"@graphql-eslint/provided-required-arguments": "error",
|
|
115
|
+
"@graphql-eslint/require-id-when-available": "error",
|
|
116
|
+
"@graphql-eslint/scalar-leafs": "error",
|
|
117
|
+
"@graphql-eslint/selection-set-depth": ["error", { maxDepth: 7 }],
|
|
118
|
+
"@graphql-eslint/unique-argument-names": "error",
|
|
119
|
+
"@graphql-eslint/unique-directive-names-per-location": "error",
|
|
120
|
+
"@graphql-eslint/unique-input-field-names": "error",
|
|
121
|
+
"@graphql-eslint/unique-variable-names": "error",
|
|
122
|
+
"@graphql-eslint/value-literals-of-correct-type": "error",
|
|
123
|
+
"@graphql-eslint/variables-are-input-types": "error",
|
|
124
|
+
"@graphql-eslint/variables-in-allowed-position": "error",
|
|
125
|
+
"relay/generated-flow-types": "off"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
};
|
|
130
|
+
var graphql_default = config;
|
|
131
|
+
export {
|
|
132
|
+
graphql_default as default
|
|
133
|
+
};
|