@bhsd/common 0.15.0 → 1.0.1
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/dist/index.d.ts +1 -64
- package/dist/index.js +66 -186
- package/dist/index.mjs +1 -122
- package/package.json +14 -33
- package/dist/cm.d.ts +0 -49
- package/dist/cm.js +0 -83
- package/dist/cm.mjs +0 -63
- package/dist/stylelint.d.ts +0 -10
- package/dist/stylelint.js +0 -39
- package/dist/stylelint.mjs +0 -19
- package/dist/test.d.ts +0 -38
- package/dist/test.js +0 -172
- package/eslintrc.browser.cjs +0 -54
- package/eslintrc.cjs +0 -950
- package/eslintrc.dist.cjs +0 -23
- package/eslintrc.node.cjs +0 -48
- package/stylelintrc.cjs +0 -72
package/eslintrc.dist.cjs
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
root: true,
|
|
5
|
-
env: {
|
|
6
|
-
browser: true,
|
|
7
|
-
es2024: true,
|
|
8
|
-
},
|
|
9
|
-
plugins: ['es-x'],
|
|
10
|
-
extends: ['plugin:es-x/restrict-to-es2020'],
|
|
11
|
-
parserOptions: {
|
|
12
|
-
ecmaVersion: 'latest',
|
|
13
|
-
},
|
|
14
|
-
rules: {
|
|
15
|
-
'es-x/no-regexp-lookbehind-assertions': 2,
|
|
16
|
-
'es-x/no-regexp-unicode-property-escapes-2020': 2,
|
|
17
|
-
},
|
|
18
|
-
settings: {
|
|
19
|
-
'es-x': {
|
|
20
|
-
aggressive: true,
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
};
|
package/eslintrc.node.cjs
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const config = require('./eslintrc.cjs');
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
...config,
|
|
7
|
-
env: {
|
|
8
|
-
...config.env,
|
|
9
|
-
node: true,
|
|
10
|
-
},
|
|
11
|
-
extends: [
|
|
12
|
-
...config.extends,
|
|
13
|
-
'plugin:n/recommended-script',
|
|
14
|
-
],
|
|
15
|
-
rules: {
|
|
16
|
-
...config.rules,
|
|
17
|
-
'n/exports-style': [
|
|
18
|
-
2,
|
|
19
|
-
'module.exports',
|
|
20
|
-
],
|
|
21
|
-
'n/no-missing-import': [
|
|
22
|
-
2,
|
|
23
|
-
{
|
|
24
|
-
ignoreTypeImport: true,
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
'n/no-missing-require': 2,
|
|
28
|
-
'n/no-mixed-requires': 2,
|
|
29
|
-
'n/no-new-require': 2,
|
|
30
|
-
'n/no-path-concat': 2,
|
|
31
|
-
'n/no-unsupported-features/node-builtins': [
|
|
32
|
-
2,
|
|
33
|
-
{
|
|
34
|
-
ignores: ['fetch'],
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
settings: {
|
|
39
|
-
...config.settings,
|
|
40
|
-
n: {
|
|
41
|
-
tryExtensions: [
|
|
42
|
-
'.js',
|
|
43
|
-
'.json',
|
|
44
|
-
'.ts',
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
};
|
package/stylelintrc.cjs
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
extends: 'stylelint-config-recommended',
|
|
5
|
-
plugins: ['@stylistic/stylelint-plugin'],
|
|
6
|
-
rules: {
|
|
7
|
-
'declaration-property-value-no-unknown': true,
|
|
8
|
-
'no-unknown-animations': true,
|
|
9
|
-
'no-unknown-custom-media': true,
|
|
10
|
-
'at-rule-no-vendor-prefix': true,
|
|
11
|
-
'color-hex-alpha': 'never',
|
|
12
|
-
'color-named': 'never',
|
|
13
|
-
'length-zero-no-unit': true,
|
|
14
|
-
'media-feature-name-no-vendor-prefix': true,
|
|
15
|
-
'selector-no-vendor-prefix': true,
|
|
16
|
-
'value-no-vendor-prefix': true,
|
|
17
|
-
'declaration-block-single-line-max-declarations': 1,
|
|
18
|
-
'number-max-precision': 2,
|
|
19
|
-
'alpha-value-notation': 'number',
|
|
20
|
-
'color-function-alias-notation': 'without-alpha',
|
|
21
|
-
'color-function-notation': 'legacy',
|
|
22
|
-
'color-hex-length': 'short',
|
|
23
|
-
'font-weight-notation': 'named-where-possible',
|
|
24
|
-
'hue-degree-notation': 'number',
|
|
25
|
-
'keyframe-selector-notation': 'percentage-unless-within-keyword-only-block',
|
|
26
|
-
'selector-not-notation': 'complex',
|
|
27
|
-
'selector-pseudo-element-colon-notation': 'double',
|
|
28
|
-
'font-family-name-quotes': 'always-where-recommended',
|
|
29
|
-
'selector-attribute-quotes': 'always',
|
|
30
|
-
'declaration-block-no-redundant-longhand-properties': true,
|
|
31
|
-
'shorthand-property-no-redundant-values': true,
|
|
32
|
-
'comment-whitespace-inside': 'always',
|
|
33
|
-
'@stylistic/color-hex-case': 'lower',
|
|
34
|
-
'@stylistic/function-comma-space-after': 'always',
|
|
35
|
-
'@stylistic/function-comma-space-before': 'never',
|
|
36
|
-
'@stylistic/function-parentheses-space-inside': 'never',
|
|
37
|
-
'@stylistic/function-whitespace-after': 'always',
|
|
38
|
-
'@stylistic/number-leading-zero': 'never',
|
|
39
|
-
'@stylistic/number-no-trailing-zeros': true,
|
|
40
|
-
'@stylistic/string-quotes': 'double',
|
|
41
|
-
'@stylistic/declaration-bang-space-after': 'never',
|
|
42
|
-
'@stylistic/declaration-bang-space-before': 'always',
|
|
43
|
-
'@stylistic/declaration-colon-space-after': 'always',
|
|
44
|
-
'@stylistic/declaration-colon-space-before': 'never',
|
|
45
|
-
'@stylistic/declaration-block-semicolon-newline-after': 'always',
|
|
46
|
-
'@stylistic/declaration-block-trailing-semicolon': 'always',
|
|
47
|
-
'@stylistic/block-closing-brace-newline-after': 'always',
|
|
48
|
-
'@stylistic/block-closing-brace-newline-before': 'always',
|
|
49
|
-
'@stylistic/block-opening-brace-newline-after': 'always',
|
|
50
|
-
'@stylistic/block-opening-brace-space-before': 'always',
|
|
51
|
-
'@stylistic/selector-attribute-brackets-space-inside': 'never',
|
|
52
|
-
'@stylistic/selector-attribute-operator-space-after': 'never',
|
|
53
|
-
'@stylistic/selector-attribute-operator-space-before': 'never',
|
|
54
|
-
'@stylistic/selector-combinator-space-after': 'always',
|
|
55
|
-
'@stylistic/selector-combinator-space-before': 'always',
|
|
56
|
-
'@stylistic/selector-max-empty-lines': 0,
|
|
57
|
-
'@stylistic/selector-pseudo-class-parentheses-space-inside': 'never',
|
|
58
|
-
'@stylistic/media-feature-colon-space-after': 'always',
|
|
59
|
-
'@stylistic/media-feature-colon-space-before': 'never',
|
|
60
|
-
'@stylistic/media-feature-parentheses-space-inside': 'never',
|
|
61
|
-
'@stylistic/at-rule-name-space-after': 'always',
|
|
62
|
-
'@stylistic/indentation': 'tab',
|
|
63
|
-
'@stylistic/linebreaks': 'unix',
|
|
64
|
-
'@stylistic/max-empty-lines': 1,
|
|
65
|
-
'@stylistic/no-empty-first-line': true,
|
|
66
|
-
'@stylistic/no-eol-whitespace': true,
|
|
67
|
-
'@stylistic/no-extra-semicolons': true,
|
|
68
|
-
'@stylistic/no-missing-end-of-source-newline': true,
|
|
69
|
-
},
|
|
70
|
-
reportInvalidScopeDisables: true,
|
|
71
|
-
reportNeedlessDisables: true,
|
|
72
|
-
};
|