@brnshkr/config 0.0.1-alpha.6 → 0.0.1-alpha.8
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 +3 -3
- package/dist/eslint/index.mjs +7 -4
- package/dist/shared.mjs +1 -1
- package/dist/stylelint/index.mjs +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<h1 id="top">
|
|
2
2
|
<a href="#top">
|
|
3
|
-
<img src="https://raw.githubusercontent.com/brnshkr/
|
|
3
|
+
<img src="https://raw.githubusercontent.com/brnshkr/brand/refs/heads/master/images/projects/config.png" alt="@brnshkr/config project logo" title="@brnshkr/config">
|
|
4
4
|
</a>
|
|
5
5
|
|
|
6
6
|
[![Semantic Versioning 2.0.0][semver-2.0.0-shield-url]][semver-2.0.0-url]
|
|
@@ -180,7 +180,7 @@ A few possible ways are listed below:
|
|
|
180
180
|
Example call, adjust as needed
|
|
181
181
|
|
|
182
182
|
```sh
|
|
183
|
-
bun eslint --config ./conf/eslint.config.
|
|
183
|
+
bun eslint --config ./conf/eslint.config.mjs --cache --cache-location ./.cache/eslint.cache.json
|
|
184
184
|
```
|
|
185
185
|
|
|
186
186
|
<!-- omit in toc -->
|
|
@@ -646,7 +646,7 @@ Distributed under the MIT License. See [LICENSE](./LICENSE) for more information
|
|
|
646
646
|
[semver-2.0.0-url]: https://semver.org/#semantic-versioning-200
|
|
647
647
|
[semver-2.0.0-shield-url]: https://img.shields.io/badge/semver-2.0.0-blue?label=🔖%20semver&style=flat-square&labelColor=%237f399d&color=%23a5097e
|
|
648
648
|
|
|
649
|
-
[license-url]:
|
|
649
|
+
[license-url]: https://github.com/brnshkr/config/blob/master/LICENSE
|
|
650
650
|
[license-shield-url]: https://img.shields.io/github/license/brnshkr/config.svg?label=📃%20license&style=flat-square&labelColor=%237f399d&color=%23a5097e
|
|
651
651
|
|
|
652
652
|
[stars-url]: https://github.com/brnshkr/config/stargazers
|
package/dist/eslint/index.mjs
CHANGED
|
@@ -717,8 +717,8 @@ const getNamingConvention = (isTypeAware) => {
|
|
|
717
717
|
format: ["StrictPascalCase"],
|
|
718
718
|
prefix: [
|
|
719
719
|
"is",
|
|
720
|
-
"do",
|
|
721
720
|
"does",
|
|
721
|
+
"do",
|
|
722
722
|
"did",
|
|
723
723
|
"has",
|
|
724
724
|
"was",
|
|
@@ -837,7 +837,7 @@ const jsdoc = async () => {
|
|
|
837
837
|
});
|
|
838
838
|
const createRulesConfig = (isForTypescript) => ({
|
|
839
839
|
name: buildConfigName(MAIN_SCOPES.JSDOC, `${SUB_SCOPES.RULES}${isForTypescript ? "-typescript" : ""}`),
|
|
840
|
-
files: isForTypescript ? [GLOB_TS
|
|
840
|
+
files: isForTypescript ? [GLOB_TS] : [GLOB_TS, ...GLOB_SCRIPT_FILES_WITHOUT_TS],
|
|
841
841
|
rules: { ...isForTypescript ? {
|
|
842
842
|
...Object.fromEntries(objectEntries(pluginJsdoc.configs["flat/recommended-typescript-error"].rules ?? {}).map(([key, value]) => Object.is(pluginJsdoc.configs["flat/recommended-error"].rules?.[key], value) ? void 0 : [key, value]).filter(Boolean)),
|
|
843
843
|
"jsdoc/require-param": "off",
|
|
@@ -1723,7 +1723,7 @@ const unicorn = async () => {
|
|
|
1723
1723
|
//#region src/js/eslint/configs/overrides.ts
|
|
1724
1724
|
const jsOverrides = [{
|
|
1725
1725
|
name: buildConfigName(MAIN_SCOPES.OVERRIDES, `${MAIN_SCOPES.JAVASCRIPT}/scripts`),
|
|
1726
|
-
files:
|
|
1726
|
+
files: ["scripts/**/*.?(c)js"],
|
|
1727
1727
|
languageOptions: {
|
|
1728
1728
|
sourceType: "script",
|
|
1729
1729
|
parserOptions: { sourceType: "script" }
|
|
@@ -1762,7 +1762,10 @@ const tsOverrides = isModuleEnabled(MODULES.typescript) ? [{
|
|
|
1762
1762
|
"vars-on-top": "off",
|
|
1763
1763
|
"comments/no-unlimited-disable": "off",
|
|
1764
1764
|
"import/no-extraneous-dependencies": "off",
|
|
1765
|
-
"import/unambiguous": "off"
|
|
1765
|
+
"import/unambiguous": "off",
|
|
1766
|
+
"import/no-default-export": "off",
|
|
1767
|
+
"import/no-named-as-default": "off",
|
|
1768
|
+
"import/no-named-as-default-member": "off"
|
|
1766
1769
|
}
|
|
1767
1770
|
}] : [];
|
|
1768
1771
|
const testOverrides = isModuleEnabled(MODULES.test) ? [{
|
package/dist/shared.mjs
CHANGED
package/dist/stylelint/index.mjs
CHANGED
|
@@ -55,6 +55,10 @@ const css = () => [{
|
|
|
55
55
|
"no-unknown-animations": true,
|
|
56
56
|
"no-unknown-custom-media": true,
|
|
57
57
|
"no-unknown-custom-properties": true,
|
|
58
|
+
"selector-class-pattern": ["^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?(--[a-z0-9]([-]?[a-z0-9]+)*)?$", {
|
|
59
|
+
resolveNestedSelectors: true,
|
|
60
|
+
message: (value) => `Expected class selector "${value}" to match BEM methodology (https://getbem.com/). Selector validation tool: https://regexr.com/3apms`
|
|
61
|
+
}],
|
|
58
62
|
"string-no-newline": true,
|
|
59
63
|
"unit-no-unknown": true,
|
|
60
64
|
"value-keyword-case": ["lower", {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@brnshkr/config",
|
|
4
|
-
"version": "0.0.1-alpha.
|
|
4
|
+
"version": "0.0.1-alpha.8",
|
|
5
5
|
"description": "Centralized collection of configuration and tooling used across all @brnshkr projects",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Patrick Rupp",
|