@alma-oss/remark-config 1.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,34 @@
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
+ ## 1.0.0-alpha.0 (2026-09-09)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ - **markdownlint:** Node.js v18 is now unsupported for this package. Use v20 or higher.
11
+ - **markdownlint:** The package moved from the [@almacareer](https://github.com/almacareer) scope to [@alma-oss](https://github.com/alma-oss). Update your dependency to @alma-oss/remark-config.
12
+
13
+ ### Features
14
+
15
+ - **markdownlint:** change library organization to alma-oss ([ebd47e5](https://github.com/lmc-eu/code-quality-tools/commit/ebd47e5726f25f34bcf2e53e152583e6df04932f))
16
+ - **markdownlint:** drop support for Node.js v18 ([6c55524](https://github.com/lmc-eu/code-quality-tools/commit/6c5552407185a9199ba9c4bf062b565bf0d2ed8a))
17
+
18
+ ### Chores
19
+
20
+ - **prettier:** Introduce package entrypoint through `exports` field ([8d63e20](https://github.com/lmc-eu/code-quality-tools/commit/8d63e20d43d027166903b983e262f7e94e515a3a))
21
+
22
+ ### Code Refactoring
23
+
24
+ - **markdownlint:** use modern exports field instead of main ([f83865c](https://github.com/lmc-eu/code-quality-tools/commit/f83865cd228b6bd0ebff226cd7c8d11b8e23da0d))
25
+
26
+ <a name="0.1.0"></a>
27
+
28
+ # 0.1.0 (2024-08-07)
29
+
30
+ ### Features
31
+
32
+ - **markdownlint:** Introducing remark-config package for linting Markdown files ([ac3a55f](https://github.com/lmc-eu/code-quality-tools/commit/ac3a55f)), closes [#12](https://github.com/lmc-eu/code-quality-tools/issues/12)
33
+
34
+ **Note:** Version bump only for package @almacareer/remark-config
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,23 @@
1
+ # @alma-oss/remark-config
2
+
3
+ > Alma Career’s config for [remark-cli][remark-cli-home]
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ npm i --dev remark-cli @alma-oss/remark-config
9
+ ```
10
+
11
+ Now, create a _.remarkrc.js_ file in your project’s root with the following contents:
12
+
13
+ ```js
14
+ import config from '@alma-oss/remark-config';
15
+
16
+ export default {
17
+ ...config,
18
+ };
19
+ ```
20
+
21
+ Remark’s configuration does not support built-in extensibility/inheritance of configuration so if you’d like to change some configuration options you will have to resort to standard JavaScript’s object mutation/extension patterns.
22
+
23
+ [remark-cli-home]: https://github.com/remarkjs/remark/tree/master/packages/remark-cli
package/index.js ADDED
@@ -0,0 +1,28 @@
1
+ export default {
2
+ settings: {
3
+ emphasis: '_',
4
+ },
5
+
6
+ plugins: [
7
+ 'preset-lint-recommended',
8
+ 'preset-lint-consistent',
9
+ 'preset-lint-markdown-style-guide',
10
+
11
+ // warn when the spacing between a list item’s bullet and its content violates a given style
12
+ // @see: https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-list-item-indent
13
+ ['lint-list-item-indent', 'one'],
14
+ // warn when lines are too long
15
+ // @see: https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-maximum-line-length
16
+ ['lint-maximum-line-length', Infinity],
17
+ // warn when emphasis markers violate the given style
18
+ // @see: https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-emphasis-marker
19
+ ['lint-emphasis-marker', '_'],
20
+ // warn when table pipes are not aligned
21
+ // @see: https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-table-pipe-alignment
22
+ ['lint-table-pipe-alignment', false],
23
+ // warn when table cells are incorrectly padded
24
+ // @see: https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-table-cell-padding
25
+ ['lint-table-cell-padding', 'consistent'],
26
+ ['lint-no-undefined-references', { allow: ['x'] }],
27
+ ],
28
+ };
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@alma-oss/remark-config",
3
+ "description": "Alma Career's config for Markdown linting with Remark",
4
+ "version": "1.0.0-alpha.0",
5
+ "keywords": [
6
+ "config",
7
+ "lint",
8
+ "markdown",
9
+ "remark",
10
+ "alma",
11
+ "career"
12
+ ],
13
+ "author": "Tomáš Litera <tomas.litera@almacareer.com>",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git://github.com/lmc-eu/code-quality-tools.git"
17
+ },
18
+ "engines": {
19
+ "node": ">=20"
20
+ },
21
+ "license": "MIT",
22
+ "type": "module",
23
+ "exports": {
24
+ ".": "./index.js"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "dependencies": {
30
+ "remark-preset-lint-consistent": "^6.0.0",
31
+ "remark-preset-lint-markdown-style-guide": "^6.0.0",
32
+ "remark-preset-lint-recommended": "^7.0.0"
33
+ },
34
+ "gitHead": "e0813802528e9cd92fd6c6a835058ad067f2d958"
35
+ }