@dvukovic/style-guide 0.3.92 → 0.3.94
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/README.md +112 -115
- package/package.json +55 -53
- package/src/cspell/base.txt +2 -0
- package/src/eslint/configs/core.js +35 -19
- package/src/eslint/configs/core.test.js +23 -0
- package/src/eslint/configs/jest.js +5 -4
- package/src/eslint/configs/jest.test.js +17 -0
- package/src/eslint/configs/mobx.js +5 -4
- package/src/eslint/configs/mobx.test.js +17 -0
- package/src/eslint/configs/next.js +5 -4
- package/src/eslint/configs/next.test.js +17 -0
- package/src/eslint/configs/node.js +6 -4
- package/src/eslint/configs/node.test.js +17 -0
- package/src/eslint/configs/playwright.js +5 -4
- package/src/eslint/configs/playwright.test.js +17 -0
- package/src/eslint/configs/react.js +6 -4
- package/src/eslint/configs/react.test.js +17 -0
- package/src/eslint/configs/storybook.js +15 -10
- package/src/eslint/configs/storybook.test.js +17 -0
- package/src/eslint/configs/typescript-strict.js +31 -24
- package/src/eslint/configs/typescript-strict.test.js +17 -0
- package/src/eslint/configs/typescript.js +6 -4
- package/src/eslint/configs/typescript.test.js +17 -0
- package/src/eslint/configs/vitest.js +5 -4
- package/src/eslint/configs/vitest.test.js +17 -0
- package/src/eslint/plugins/es-x.js +8 -15
- package/src/eslint/plugins/eslint-comments.js +10 -8
- package/src/eslint/plugins/eslint.js +13 -8
- package/src/eslint/plugins/etc.js +3 -13
- package/src/eslint/plugins/import-x.js +8 -4
- package/src/eslint/plugins/jest.js +9 -3
- package/src/eslint/plugins/mobx.js +8 -3
- package/src/eslint/plugins/n.js +8 -3
- package/src/eslint/plugins/next.js +8 -3
- package/src/eslint/plugins/playwright.js +9 -3
- package/src/eslint/plugins/prettier.js +12 -0
- package/src/eslint/plugins/promise.js +11 -15
- package/src/eslint/plugins/react-hooks.js +8 -3
- package/src/eslint/plugins/react.js +13 -4
- package/src/eslint/plugins/rimac.js +8 -3
- package/src/eslint/plugins/security-node.js +8 -3
- package/src/eslint/plugins/simple-import-sort.js +8 -3
- package/src/eslint/plugins/sonarjs.js +38 -32
- package/src/eslint/plugins/sort-destructure-keys.js +8 -3
- package/src/eslint/plugins/sort-keys-fix.js +8 -3
- package/src/eslint/plugins/storybook.js +8 -3
- package/src/eslint/plugins/stylistic.js +8 -3
- package/src/eslint/plugins/typescript-eslint.js +10 -6
- package/src/eslint/plugins/typescript-sort-keys.js +8 -3
- package/src/eslint/plugins/unicorn.js +20 -3
- package/src/eslint/plugins/unused-imports.js +8 -3
- package/src/eslint/plugins/vitest.js +30 -5
- package/src/package-json/configs/core.js +3 -5
- package/src/package-json/plugins/package-json.js +2 -4
- package/src/prettier/configs/core.js +6 -4
- package/src/prettier/configs/core.test.js +24 -0
- package/src/prettier/plugins/embed.js +2 -4
- package/src/prettier/plugins/prettier.js +2 -4
- package/src/prettier/plugins/sql.js +2 -4
- package/src/stylelint/configs/core.js +8 -4
- package/src/stylelint/configs/core.test.js +24 -0
- package/src/stylelint/plugins/no-unused-selectors.js +8 -0
- package/src/stylelint/plugins/order.js +2 -4
- package/src/stylelint/plugins/stylelint.js +9 -4
- package/src/graphql/configs/core.js +0 -4
- package/src/graphql/plugins/graphql.js +0 -96
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/** @type {import("eslint").ESLint.ConfigData} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
plugins: ["@graphql-eslint"],
|
|
4
|
-
rules: {
|
|
5
|
-
"@graphql-eslint/alphabetize": [
|
|
6
|
-
"error",
|
|
7
|
-
{
|
|
8
|
-
arguments: ["FieldDefinition", "Field", "DirectiveDefinition", "Directive"],
|
|
9
|
-
fields: [
|
|
10
|
-
"InputObjectTypeDefinition",
|
|
11
|
-
"InterfaceTypeDefinition",
|
|
12
|
-
"ObjectTypeDefinition",
|
|
13
|
-
],
|
|
14
|
-
groups: ["id", "*", "createdAt", "updatedAt"],
|
|
15
|
-
selections: ["FragmentDefinition", "OperationDefinition"],
|
|
16
|
-
variables: ["OperationDefinition"],
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
"@graphql-eslint/description-style": ["error", { style: "block" }],
|
|
20
|
-
"@graphql-eslint/input-name": "error",
|
|
21
|
-
"@graphql-eslint/lone-executable-definition": "error",
|
|
22
|
-
"@graphql-eslint/match-document-filename": [
|
|
23
|
-
"error",
|
|
24
|
-
{
|
|
25
|
-
fileExtension: ".graphql",
|
|
26
|
-
fragment: {
|
|
27
|
-
style: "PascalCase",
|
|
28
|
-
suffix: ".fragment.",
|
|
29
|
-
},
|
|
30
|
-
mutation: {
|
|
31
|
-
style: "PascalCase",
|
|
32
|
-
suffix: ".mutation.",
|
|
33
|
-
},
|
|
34
|
-
query: {
|
|
35
|
-
style: "PascalCase",
|
|
36
|
-
suffix: ".query.",
|
|
37
|
-
},
|
|
38
|
-
subscription: {
|
|
39
|
-
style: "PascalCase",
|
|
40
|
-
suffix: ".subscription.",
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
"@graphql-eslint/naming-convention": [
|
|
45
|
-
"error",
|
|
46
|
-
{
|
|
47
|
-
Argument: "camelCase",
|
|
48
|
-
DirectiveDefinition: "camelCase",
|
|
49
|
-
EnumTypeDefinition: {
|
|
50
|
-
requiredSuffixes: ["Enum"],
|
|
51
|
-
style: "PascalCase",
|
|
52
|
-
},
|
|
53
|
-
EnumValueDefinition: "PascalCase",
|
|
54
|
-
FieldDefinition: "camelCase",
|
|
55
|
-
"FieldDefinition[gqlType.name.value=Boolean]": {
|
|
56
|
-
requiredPrefixes: ["is", "has"],
|
|
57
|
-
style: "camelCase",
|
|
58
|
-
},
|
|
59
|
-
"FieldDefinition[parent.name.value=Mutation]": {
|
|
60
|
-
forbiddenPrefixes: ["mutation"],
|
|
61
|
-
forbiddenSuffixes: ["Mutation"],
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
"FieldDefinition[parent.name.value=Query]": {
|
|
65
|
-
forbiddenPrefixes: ["query", "get"],
|
|
66
|
-
forbiddenSuffixes: ["Query"],
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
"FieldDefinition[parent.name.value=Subscription]": {
|
|
70
|
-
forbiddenPrefixes: ["subscription"],
|
|
71
|
-
forbiddenSuffixes: ["Subscription"],
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
InputValueDefinition: "camelCase",
|
|
75
|
-
InterfaceTypeDefinition: {
|
|
76
|
-
requiredSuffixes: ["Interface"],
|
|
77
|
-
style: "PascalCase",
|
|
78
|
-
},
|
|
79
|
-
types: "PascalCase",
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
"@graphql-eslint/no-anonymous-operations": "error",
|
|
83
|
-
"@graphql-eslint/no-deprecated": "error",
|
|
84
|
-
"@graphql-eslint/no-duplicate-fields": "error",
|
|
85
|
-
"@graphql-eslint/no-hashtag-description": "error",
|
|
86
|
-
"@graphql-eslint/no-scalar-result-type-on-mutation": "error",
|
|
87
|
-
"@graphql-eslint/no-typename-prefix": "error",
|
|
88
|
-
"@graphql-eslint/no-unreachable-types": "error",
|
|
89
|
-
"@graphql-eslint/require-deprecation-date": "error",
|
|
90
|
-
"@graphql-eslint/require-deprecation-reason": "error",
|
|
91
|
-
"@graphql-eslint/strict-id-in-types": "error",
|
|
92
|
-
"@graphql-eslint/unique-enum-value-names": "error",
|
|
93
|
-
"@graphql-eslint/unique-fragment-name": "error",
|
|
94
|
-
"@graphql-eslint/unique-operation-name": "error",
|
|
95
|
-
},
|
|
96
|
-
}
|