@alma-oss/eslint-config-graphql 4.0.0-alpha.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/CHANGELOG.md ADDED
@@ -0,0 +1,126 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## 4.0.0-alpha.0 (2026-09-09)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ - **eslint-config-graphql:** migrate to MIT license
11
+ - **eslint-config-graphql:** Node.js v16 and v18 are no longer supported
12
+ - **eslint-config-graphql:** the package has been migrated to `@alma-oss` scope
13
+
14
+ ### Features
15
+
16
+ - **eslint-config-graphql:** change library organization to `alma-oss` ([69d60d1](https://github.com/lmc-eu/code-quality-tools/commit/69d60d18936a81f4fc873cd321524a9a05400488))
17
+ - **eslint-config-graphql:** change license to MIT ([c15223e](https://github.com/lmc-eu/code-quality-tools/commit/c15223e9b65251d02d3176ad31612cc36f300f01))
18
+
19
+ ### Chores
20
+
21
+ - **eslint-config-graphql:** drop support for Node.js v16 and v18 ([b678061](https://github.com/lmc-eu/code-quality-tools/commit/b678061ca7b334f97103ad3b6ee55510c941ea3a)), references [#191](https://github.com/lmc-eu/code-quality-tools/issues/191)
22
+ - **prettier:** Introduce package entrypoint through `exports` field ([8d63e20](https://github.com/lmc-eu/code-quality-tools/commit/8d63e20d43d027166903b983e262f7e94e515a3a))
23
+
24
+ <a name="3.0.6"></a>
25
+
26
+ ## [3.0.6](https://github.com/lmc-eu/code-quality-tools/compare/@lmc-eu/eslint-config-graphql@3.0.5...@lmc-eu/eslint-config-graphql@3.0.6) (2025-02-27)
27
+
28
+ Miscellaneous changes
29
+
30
+ **Note:** Version bump only for package @lmc-eu/eslint-config-graphql
31
+
32
+ <a name="3.0.5"></a>
33
+
34
+ ## [3.0.5](https://github.com/lmc-eu/code-quality-tools/compare/@lmc-eu/eslint-config-graphql@3.0.4...@lmc-eu/eslint-config-graphql@3.0.5) (2024-08-21)
35
+
36
+ Miscellaneous changes
37
+
38
+ **Note:** Version bump only for package @lmc-eu/eslint-config-graphql
39
+
40
+ <a name="3.0.4"></a>
41
+
42
+ ## [3.0.4](https://github.com/lmc-eu/code-quality-tools/compare/@lmc-eu/eslint-config-graphql@3.0.3...@lmc-eu/eslint-config-graphql@3.0.4) (2024-08-09)
43
+
44
+ Miscellaneous changes
45
+
46
+ **Note:** Version bump only for package @lmc-eu/eslint-config-graphql
47
+
48
+ <a name="3.0.3"></a>
49
+
50
+ ## [3.0.3](https://github.com/lmc-eu/code-quality-tools/compare/@lmc-eu/eslint-config-graphql@3.0.2...@lmc-eu/eslint-config-graphql@3.0.3) (2024-08-07)
51
+
52
+ Miscellaneous changes
53
+
54
+ **Note:** Version bump only for package @lmc-eu/eslint-config-graphql
55
+
56
+ <a name="3.0.2"></a>
57
+
58
+ ## [3.0.2](https://github.com/lmc-eu/code-quality-tools/compare/@lmc-eu/eslint-config-graphql@3.0.1...@lmc-eu/eslint-config-graphql@3.0.2) (2023-12-14)
59
+
60
+ Miscellaneous changes
61
+
62
+ **Note:** Version bump only for package @lmc-eu/eslint-config-graphql
63
+
64
+ <a name="3.0.1"></a>
65
+
66
+ ## [3.0.1](https://github.com/lmc-eu/code-quality-tools/compare/@lmc-eu/eslint-config-graphql@3.0.0...@lmc-eu/eslint-config-graphql@3.0.1) (2023-10-06)
67
+
68
+ Miscellaneous changes
69
+
70
+ **Note:** Version bump only for package @lmc-eu/eslint-config-graphql
71
+
72
+ <a name="3.0.0"></a>
73
+
74
+ # [3.0.0](https://github.com/lmc-eu/code-quality-tools/compare/@lmc-eu/eslint-config-graphql@2.0.0...@lmc-eu/eslint-config-graphql@3.0.0) (2023-10-06)
75
+
76
+ ### BREAKING CHANGES
77
+
78
+ - **eslint-config-graphql:** Drop support for Node.js v17 and ([d54c60e](https://github.com/lmc-eu/code-quality-tools/commit/d54c60e)), closes [#130](https://github.com/lmc-eu/code-quality-tools/issues/130)
79
+
80
+ **Note:** Version bump only for package @lmc-eu/eslint-config-graphql
81
+
82
+ <a name="2.0.0"></a>
83
+
84
+ # [2.0.0](https://github.com/lmc-eu/code-quality-tools/compare/@lmc-eu/eslint-config-graphql@1.0.2...@lmc-eu/eslint-config-graphql@2.0.0) (2023-10-06)
85
+
86
+ ### BREAKING CHANGES
87
+
88
+ - **eslint-config-graphql:** Drop support for Node.js v14 ([b892d27](https://github.com/lmc-eu/code-quality-tools/commit/b892d27)), closes [#130](https://github.com/lmc-eu/code-quality-tools/issues/130)
89
+ - **eslint-config-graphql:** Switch to community plugin ([97f15e2](https://github.com/lmc-eu/code-quality-tools/commit/97f15e2))
90
+
91
+ **Note:** Version bump only for package @lmc-eu/eslint-config-graphql
92
+
93
+ <a name="1.0.2"></a>
94
+
95
+ ## 1.0.2 (2023-01-16)
96
+
97
+ ### Chores
98
+
99
+ - **ci:** Introduce `release-sync` command in Makefile ([029ad33](https://github.com/lmc-eu/code-quality-tools/commit/029ad33))
100
+
101
+ ### Styles
102
+
103
+ - **repo:** Rewrite documentation using Textlint ruleset ([22e19bd](https://github.com/lmc-eu/code-quality-tools/commit/22e19bd))
104
+
105
+ **Note:** Version bump only for package @lmc-eu/eslint-config-graphql
106
+
107
+ <a name="1.0.1"></a>
108
+
109
+ ## [1.0.1](https://github.com/lmc-eu/code-quality-tools/compare/@lmc-eu/eslint-config-graphql@1.0.0...@lmc-eu/eslint-config-graphql@1.0.1) (2022-03-08)
110
+
111
+ Miscellaneous changes
112
+
113
+ **Note:** Version bump only for package @lmc-eu/eslint-config-graphql
114
+
115
+ # Changelog
116
+
117
+ All notable changes to this project will be documented in this file.
118
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines and [LMC GitHub preset](https://github.com/lmc-eu/code-quality-tools/tree/main/packages/conventional-changelog-lmc-github) for the list of supported change types.
119
+
120
+ <a name="1.0.0"></a>
121
+
122
+ # 1.0.0 (2022-01-18)
123
+
124
+ ### Features
125
+
126
+ - **eslint-config-graphql:** Introduce ESLint preset for Graphql #11 ([9ce2e17](https://github.com/lmc-eu/code-quality-tools/commit/9ce2e17))
package/LICENSE ADDED
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2020, LMC s.r.o.
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ * Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # @alma-oss/eslint-config-graphql
2
+
3
+ ## Install
4
+
5
+ ```bash
6
+ npm install @alma-oss/eslint-config-graphql -D
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ Create a _.eslintrc.js_ file with the following contents:
12
+
13
+ ```js
14
+ module.exports = {
15
+ extends: [
16
+ // ... (base eslint config)
17
+ '@alma-oss/eslint-config-graphql',
18
+ ],
19
+ };
20
+ ```
21
+
22
+ The shareable config can be customized in your [**eslint** configuration file](https://eslint.org/docs/user-guide/configuring).
23
+
24
+ Additionally don’t forget to have `.graphqlconfig` file:
25
+
26
+ ```json
27
+ {
28
+ // ...
29
+ "schemaPath": "schema.json"
30
+ // ...
31
+ }
32
+ ```
33
+
34
+ ## Plugins
35
+
36
+ This configuration uses the following plugins:
37
+
38
+ - [`@graphql-eslint/eslint-plugin`](https://the-guild.dev/graphql/eslint/docs/getting-started)
39
+
40
+ ## 📝 License
41
+
42
+ Licensed under the [MIT][license].
43
+
44
+ [license]: https://github.com/lmc-eu/code-quality-tools/blob/main/LICENSE
package/index.js ADDED
@@ -0,0 +1,21 @@
1
+ const globs = require('@lmc-eu/eslint-config-base/globs');
2
+
3
+ module.exports = {
4
+ overrides: [
5
+ {
6
+ files: [...globs.configs, ...globs, globs.typescripts],
7
+ processor: '@graphql-eslint/graphql',
8
+ },
9
+ {
10
+ files: ['*.graphql'],
11
+
12
+ parser: '@graphql-eslint/eslint-plugin',
13
+
14
+ plugins: ['@graphql-eslint'],
15
+
16
+ rules: {
17
+ '@graphql-eslint/known-type-names': 'error',
18
+ },
19
+ },
20
+ ],
21
+ };
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@alma-oss/eslint-config-graphql",
3
+ "description": "Alma's ESLint config for javascript applications that use GraphQL and Apollo client.",
4
+ "version": "4.0.0-alpha.0",
5
+ "author": "Tomas Litera <tomas.litera@almacareer.com>",
6
+ "keywords": [
7
+ "config",
8
+ "eslint",
9
+ "preset",
10
+ "alma",
11
+ "graphql"
12
+ ],
13
+ "license": "MIT",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git://github.com/lmc-eu/code-quality-tools.git",
17
+ "directory": "packages/eslint-config-graphql"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/lmc-eu/code-quality-tools/issues"
21
+ },
22
+ "engines": {
23
+ "node": ">=20"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "main": "index.js",
29
+ "dependencies": {
30
+ "@graphql-eslint/eslint-plugin": "^3.19.1",
31
+ "@lmc-eu/eslint-config-base": "^3.1.3",
32
+ "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
33
+ },
34
+ "peerDependencies": {
35
+ "eslint": "^8"
36
+ },
37
+ "gitHead": "e0813802528e9cd92fd6c6a835058ad067f2d958"
38
+ }