@averay/codeformat 0.2.17 → 0.2.19
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/rulesets/eslint/ruleset-jsx.d.ts +66 -66
- package/dist/rulesets/eslint/ruleset-jsx.js.map +1 -1
- package/dist/rulesets/eslint/ruleset-markdown.d.ts +20 -0
- package/dist/rulesets/eslint/ruleset-markdown.js +12 -0
- package/dist/rulesets/eslint/ruleset-markdown.js.map +1 -0
- package/dist/rulesets/eslint/ruleset-shared.d.ts +317 -313
- package/dist/rulesets/eslint/ruleset-shared.js +1 -0
- package/dist/rulesets/eslint/ruleset-shared.js.map +1 -1
- package/dist/rulesets/eslint/ruleset-typescript.d.ts +184 -184
- package/dist/rulesets/eslint/ruleset-typescript.js.map +1 -1
- package/dist/rulesets/php/ruleset-php-cs-fixer.php +93 -0
- package/dist/rulesets/stylelint/ruleset-css.d.ts +26 -26
- package/dist/rulesets/stylelint/ruleset-css.js.map +1 -1
- package/dist/rulesets/stylelint/ruleset-scss.d.ts +25 -25
- package/dist/rulesets/stylelint/ruleset-scss.js.map +1 -1
- package/dist/src/makeEslintConfig.js +8 -2
- package/dist/src/makeEslintConfig.js.map +1 -1
- package/dist/src/makeStylelintConfig.d.ts +14 -14
- package/package.json +18 -18
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
'csstools/use-logical':
|
|
3
|
-
'order/order':
|
|
4
|
-
'order/properties-order':
|
|
5
|
-
unspecified:
|
|
6
|
-
}
|
|
7
|
-
'plugin/use-defensive-css':
|
|
8
|
-
'accidental-hover':
|
|
9
|
-
'background-repeat':
|
|
10
|
-
'custom-property-fallbacks':
|
|
11
|
-
'flex-wrapping':
|
|
12
|
-
'scroll-chaining':
|
|
13
|
-
'scrollbar-gutter':
|
|
14
|
-
'vendor-prefix-grouping':
|
|
15
|
-
}
|
|
16
|
-
'container-name-pattern': string;
|
|
17
|
-
'custom-media-pattern': string;
|
|
18
|
-
'custom-property-pattern': string;
|
|
19
|
-
'keyframes-name-pattern': string;
|
|
20
|
-
'layer-name-pattern': string;
|
|
21
|
-
'selector-class-pattern': string;
|
|
22
|
-
'selector-id-pattern': string;
|
|
23
|
-
'at-rule-empty-line-before': null;
|
|
24
|
-
'comment-empty-line-before': null;
|
|
25
|
-
'rule-empty-line-before': null;
|
|
26
|
-
'color-named': string;
|
|
27
|
-
'function-url-no-scheme-relative': boolean;
|
|
2
|
+
readonly 'csstools/use-logical': "always";
|
|
3
|
+
readonly 'order/order': readonly ["custom-properties", "declarations"];
|
|
4
|
+
readonly 'order/properties-order': readonly [string[], {
|
|
5
|
+
readonly unspecified: "bottomAlphabetical";
|
|
6
|
+
}];
|
|
7
|
+
readonly 'plugin/use-defensive-css': readonly [true, {
|
|
8
|
+
readonly 'accidental-hover': true;
|
|
9
|
+
readonly 'background-repeat': true;
|
|
10
|
+
readonly 'custom-property-fallbacks': false;
|
|
11
|
+
readonly 'flex-wrapping': false;
|
|
12
|
+
readonly 'scroll-chaining': true;
|
|
13
|
+
readonly 'scrollbar-gutter': false;
|
|
14
|
+
readonly 'vendor-prefix-grouping': true;
|
|
15
|
+
}];
|
|
16
|
+
readonly 'container-name-pattern': string;
|
|
17
|
+
readonly 'custom-media-pattern': string;
|
|
18
|
+
readonly 'custom-property-pattern': string;
|
|
19
|
+
readonly 'keyframes-name-pattern': string;
|
|
20
|
+
readonly 'layer-name-pattern': string;
|
|
21
|
+
readonly 'selector-class-pattern': string;
|
|
22
|
+
readonly 'selector-id-pattern': string;
|
|
23
|
+
readonly 'at-rule-empty-line-before': null;
|
|
24
|
+
readonly 'comment-empty-line-before': null;
|
|
25
|
+
readonly 'rule-empty-line-before': null;
|
|
26
|
+
readonly 'color-named': string;
|
|
27
|
+
readonly 'function-url-no-scheme-relative': boolean;
|
|
28
28
|
};
|
|
29
29
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ruleset-css.js","sourceRo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,EAAE,IAAI;SAC/B;KACF;CACO,CAAC"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
'scss/at-if-no-null': null;
|
|
3
|
-
'container-name-pattern': string;
|
|
4
|
-
'custom-media-pattern': string;
|
|
5
|
-
'custom-property-pattern': string;
|
|
6
|
-
'keyframes-name-pattern': string;
|
|
7
|
-
'layer-name-pattern': string;
|
|
8
|
-
'scss/at-function-pattern': string;
|
|
9
|
-
'scss/at-mixin-pattern': string;
|
|
10
|
-
'scss/dollar-variable-pattern': string;
|
|
11
|
-
'scss/percent-placeholder-pattern': string;
|
|
12
|
-
'scss/at-else-closing-brace-newline-after': null;
|
|
13
|
-
'scss/at-else-closing-brace-space-after': null;
|
|
14
|
-
'scss/at-else-empty-line-before': null;
|
|
15
|
-
'scss/at-else-if-parentheses-space-before': null;
|
|
16
|
-
'scss/at-function-parentheses-space-before': null;
|
|
17
|
-
'scss/at-if-closing-brace-newline-after': null;
|
|
18
|
-
'scss/at-if-closing-brace-space-after': null;
|
|
19
|
-
'scss/at-mixin-parentheses-space-before': null;
|
|
20
|
-
'scss/dollar-variable-colon-newline-after': null;
|
|
21
|
-
'scss/dollar-variable-colon-space-after': null;
|
|
22
|
-
'scss/dollar-variable-colon-space-before': null;
|
|
23
|
-
'scss/operator-no-newline-after': null;
|
|
24
|
-
'scss/operator-no-newline-before': null;
|
|
25
|
-
'scss/operator-no-unspaced': null;
|
|
26
|
-
'nesting-selector-no-missing-scoping-root': null;
|
|
2
|
+
readonly 'scss/at-if-no-null': null;
|
|
3
|
+
readonly 'container-name-pattern': string;
|
|
4
|
+
readonly 'custom-media-pattern': string;
|
|
5
|
+
readonly 'custom-property-pattern': string;
|
|
6
|
+
readonly 'keyframes-name-pattern': string;
|
|
7
|
+
readonly 'layer-name-pattern': string;
|
|
8
|
+
readonly 'scss/at-function-pattern': string;
|
|
9
|
+
readonly 'scss/at-mixin-pattern': string;
|
|
10
|
+
readonly 'scss/dollar-variable-pattern': string;
|
|
11
|
+
readonly 'scss/percent-placeholder-pattern': string;
|
|
12
|
+
readonly 'scss/at-else-closing-brace-newline-after': null;
|
|
13
|
+
readonly 'scss/at-else-closing-brace-space-after': null;
|
|
14
|
+
readonly 'scss/at-else-empty-line-before': null;
|
|
15
|
+
readonly 'scss/at-else-if-parentheses-space-before': null;
|
|
16
|
+
readonly 'scss/at-function-parentheses-space-before': null;
|
|
17
|
+
readonly 'scss/at-if-closing-brace-newline-after': null;
|
|
18
|
+
readonly 'scss/at-if-closing-brace-space-after': null;
|
|
19
|
+
readonly 'scss/at-mixin-parentheses-space-before': null;
|
|
20
|
+
readonly 'scss/dollar-variable-colon-newline-after': null;
|
|
21
|
+
readonly 'scss/dollar-variable-colon-space-after': null;
|
|
22
|
+
readonly 'scss/dollar-variable-colon-space-before': null;
|
|
23
|
+
readonly 'scss/operator-no-newline-after': null;
|
|
24
|
+
readonly 'scss/operator-no-newline-before': null;
|
|
25
|
+
readonly 'scss/operator-no-unspaced': null;
|
|
26
|
+
readonly 'nesting-selector-no-missing-scoping-root': null;
|
|
27
27
|
};
|
|
28
28
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ruleset-scss.js","sourceRoot":"","sources":["../../../rulesets/stylelint/ruleset-scss.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,mCAAmC,CAAC;AAC5D,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AAEtD,OAAO,QAAQ,EAAE,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEhF,eAAe;IACb,GAAG,WAAW,CAAC,KAAK;IACpB,GAAG,QAAQ,CAAC,KAAK;IAEjB,6BAA6B;IAC7B,GAAG;QACD,0CAA0C,EAAE,IAAI,EAAE,sDAAsD;KACzG;IAED,6BAA6B;IAC7B,GAAG;QACD,0CAA0C,EAAE,IAAI;QAChD,wCAAwC,EAAE,IAAI;QAC9C,gCAAgC,EAAE,IAAI;QACtC,0CA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AAI,EAAE,sDAAsD;KACzG;IAED,6BAA6B;IAC7B,GAAG;QACD,0CAA0C,EAAE,IAAI;QAChD,wCAAwC,EAAE,IAAI;QAC9C,gCAAgC,EAAE,IAAI;QACtC,0CAA0C,EAAE,IAAI;QAChD,2CAA2C,EAAE,IAAI;QACjD,wCAAwC,EAAE,IAAI;QAC9C,sCAAsC,EAAE,IAAI;QAC5C,wCAAwC,EAAE,IAAI;QAC9C,0CAA0C,EAAE,IAAI;QAChD,wCAAwC,EAAE,IAAI;QAC9C,yCAAyC,EAAE,IAAI;QAC/C,gCAAgC,EAAE,IAAI;QACtC,iCAAiC,EAAE,IAAI;QACvC,2BAA2B,EAAE,IAAI;KAClC;IAED,kBAAkB;IAClB,GAAG;QACD,0BAA0B,EAAE,QAAQ,CAAC,qCAAqC;QAC1E,uBAAuB,EAAE,QAAQ,CAAC,qCAAqC;QACvE,8BAA8B,EAAE,QAAQ,CAAC,qCAAqC;QAC9E,kCAAkC,EAAE,QAAQ,CAAC,qCAAqC;KACnF;IAED,uCAAuC;IACvC,GAAG;QACD,wBAAwB,EAAE,0BAA0B,CAAC,QAAQ,CAAC,GAAG,CAAC;QAClE,sBAAsB,EAAE,0BAA0B,CAAC,QAAQ,CAAC,GAAG,CAAC;QAChE,yBAAyB,EAAE,0BAA0B,CAAC,QAAQ,CAAC,GAAG,CAAC;QACnE,wBAAwB,EAAE,0BAA0B,CAAC,QAAQ,CAAC,GAAG,CAAC;QAClE,oBAAoB,EAAE,0BAA0B,CAAC,QAAQ,CAAC,GAAG,CAAC;KAC/D;IAED,qBAAqB;IACrB,oBAAoB,EAAE,IAAI;CAClB,CAAC"}
|
|
@@ -17,6 +17,7 @@ import sonarjsPlugin from 'eslint-plugin-sonarjs';
|
|
|
17
17
|
import unicornPlugin from 'eslint-plugin-unicorn';
|
|
18
18
|
import convertWarnsToErrors from "../lib/convertWarnsToErrors.js";
|
|
19
19
|
import rulesetEslintJsx from "../rulesets/eslint/ruleset-jsx.js";
|
|
20
|
+
import rulesetEslintMarkdown from "../rulesets/eslint/ruleset-markdown.js";
|
|
20
21
|
import rulesetEslintShared from "../rulesets/eslint/ruleset-shared.js";
|
|
21
22
|
import rulesetEslintTypescript, { moduleDeclarations as rulesetEslintTypescriptModuleDeclarations, } from "../rulesets/eslint/ruleset-typescript.js";
|
|
22
23
|
import extensions from "./extensions.js";
|
|
@@ -29,7 +30,12 @@ export default function makeEslintConfig({ ecmaVersion = 'latest', tsconfigPath,
|
|
|
29
30
|
return [
|
|
30
31
|
prettierConfig,
|
|
31
32
|
// Markdown
|
|
32
|
-
|
|
33
|
+
{
|
|
34
|
+
files: [`**/*.{${extensions.md.join(',')}}`],
|
|
35
|
+
language: 'markdown/commonmark',
|
|
36
|
+
plugins: { markdown: markdownPlugin },
|
|
37
|
+
rules: convertWarnsToErrors(rulesetEslintMarkdown),
|
|
38
|
+
},
|
|
33
39
|
// JavaScript & TypeScript
|
|
34
40
|
{
|
|
35
41
|
files: [`**/*.{${[...extensions.js, ...extensions.ts].join(',')}}`],
|
|
@@ -101,7 +107,7 @@ export default function makeEslintConfig({ ecmaVersion = 'latest', tsconfigPath,
|
|
|
101
107
|
},
|
|
102
108
|
{
|
|
103
109
|
files: ['**/*.d.ts'],
|
|
104
|
-
rules: rulesetEslintTypescriptModuleDeclarations,
|
|
110
|
+
rules: convertWarnsToErrors(rulesetEslintTypescriptModuleDeclarations),
|
|
105
111
|
},
|
|
106
112
|
];
|
|
107
113
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeEslintConfig.js","sourceRoot":"","sources":["../../src/makeEslintConfig.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,eAAe,MAAM,0BAA0B,CAAC;AACvD,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAChE,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AAEzD,OAAO,cAAc,MAAM,wBAAwB,CAAC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alidScopeDisables: true;
|
|
12
12
|
reportNeedlessDisables: true;
|
|
13
13
|
rules: {
|
|
14
|
-
'csstools/use-logical':
|
|
15
|
-
'order/order':
|
|
16
|
-
'order/properties-order':
|
|
17
|
-
unspecified:
|
|
18
|
-
}
|
|
19
|
-
'plugin/use-defensive-css':
|
|
20
|
-
'accidental-hover':
|
|
21
|
-
'background-repeat':
|
|
22
|
-
'custom-property-fallbacks':
|
|
23
|
-
'flex-wrapping':
|
|
24
|
-
'scroll-chaining':
|
|
25
|
-
'scrollbar-gutter':
|
|
26
|
-
'vendor-prefix-grouping':
|
|
27
|
-
}
|
|
14
|
+
'csstools/use-logical': "always";
|
|
15
|
+
'order/order': readonly ["custom-properties", "declarations"];
|
|
16
|
+
'order/properties-order': readonly [string[], {
|
|
17
|
+
readonly unspecified: "bottomAlphabetical";
|
|
18
|
+
}];
|
|
19
|
+
'plugin/use-defensive-css': readonly [true, {
|
|
20
|
+
readonly 'accidental-hover': true;
|
|
21
|
+
readonly 'background-repeat': true;
|
|
22
|
+
readonly 'custom-property-fallbacks': false;
|
|
23
|
+
readonly 'flex-wrapping': false;
|
|
24
|
+
readonly 'scroll-chaining': true;
|
|
25
|
+
readonly 'scrollbar-gutter': false;
|
|
26
|
+
readonly 'vendor-prefix-grouping': true;
|
|
27
|
+
}];
|
|
28
28
|
'container-name-pattern': string;
|
|
29
29
|
'custom-media-pattern': string;
|
|
30
30
|
'custom-property-pattern': string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@averay/codeformat",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"author": "Adam Averay (https://adamaveray.com.au/)",
|
|
5
5
|
"homepage": "https://github.com/adamaveray/codeformat",
|
|
6
6
|
"repository": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"description": "A very opinionated collection of configurations for a number of code formatting tools.",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"engines": {
|
|
14
|
-
"bun": ">=1.
|
|
14
|
+
"bun": ">=1.3"
|
|
15
15
|
},
|
|
16
16
|
"bin": {
|
|
17
17
|
"codeformat": "dist/bin/codeformat.js"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "rm -rf dist && bun run build:tsc && bun run build:php && chmod +x dist/bin/*.js",
|
|
23
23
|
"build:tsc": "bun --bun x tsc --project tsconfig.build.json --outDir dist",
|
|
24
|
-
"build:php": "cp -R src/php dist/src/",
|
|
24
|
+
"build:php": "cp -R src/php dist/src/ && cp -R rulesets/php dist/rulesets/",
|
|
25
25
|
"test": "bun test",
|
|
26
26
|
"format": "dist/bin/codeformat.js fix",
|
|
27
27
|
"lint": "dist/bin/codeformat.js check",
|
|
@@ -32,47 +32,47 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@averay/css-properties-sort-order": "^1.0.3",
|
|
35
|
-
"@eslint/js": "^9.
|
|
36
|
-
"@eslint/markdown": "^7.
|
|
35
|
+
"@eslint/js": "^9.38.0",
|
|
36
|
+
"@eslint/markdown": "^7.4.0",
|
|
37
37
|
"@prettier/plugin-php": "^0.24.0",
|
|
38
38
|
"@prettier/plugin-xml": "^3.4.2",
|
|
39
|
-
"@stylistic/eslint-plugin": "^5.
|
|
40
|
-
"@types/eslint-plugin-jsx-a11y": "^6.10.
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
42
|
-
"@typescript-eslint/parser": "^8.
|
|
43
|
-
"@typescript-eslint/utils": "^8.
|
|
44
|
-
"eslint": "^9.
|
|
39
|
+
"@stylistic/eslint-plugin": "^5.5.0",
|
|
40
|
+
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^8.46.1",
|
|
42
|
+
"@typescript-eslint/parser": "^8.46.1",
|
|
43
|
+
"@typescript-eslint/utils": "^8.46.1",
|
|
44
|
+
"eslint": "^9.38.0",
|
|
45
45
|
"eslint-config-prettier": "^10.1.8",
|
|
46
46
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
47
47
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
48
48
|
"eslint-plugin-import-x": "^4.16.1",
|
|
49
|
-
"eslint-plugin-jsdoc": "^
|
|
49
|
+
"eslint-plugin-jsdoc": "^61.1.5",
|
|
50
50
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
51
51
|
"eslint-plugin-promise": "^7.2.1",
|
|
52
52
|
"eslint-plugin-react": "^7.37.5",
|
|
53
|
-
"eslint-plugin-react-hooks": "^
|
|
54
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "^0.
|
|
53
|
+
"eslint-plugin-react-hooks": "^7.0.0",
|
|
54
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.6.1",
|
|
55
55
|
"eslint-plugin-regexp": "^2.10.0",
|
|
56
56
|
"eslint-plugin-sonarjs": "^3.0.5",
|
|
57
57
|
"eslint-plugin-unicorn": "^61.0.2",
|
|
58
58
|
"globals": "^16.4.0",
|
|
59
|
-
"knip": "^5.
|
|
59
|
+
"knip": "^5.66.1",
|
|
60
60
|
"postcss-scss": "^4.0.9",
|
|
61
61
|
"prettier": "^3.6.2",
|
|
62
62
|
"stylelint": "^16.25.0",
|
|
63
63
|
"stylelint-config-recommended": "^17.0.0",
|
|
64
64
|
"stylelint-config-recommended-scss": "^16.0.2",
|
|
65
|
-
"stylelint-config-standard": "^39.0.
|
|
65
|
+
"stylelint-config-standard": "^39.0.1",
|
|
66
66
|
"stylelint-config-standard-scss": "^16.0.0",
|
|
67
67
|
"stylelint-order": "^7.0.0",
|
|
68
68
|
"stylelint-plugin-defensive-css": "^1.0.4",
|
|
69
69
|
"stylelint-scss": "^6.12.1",
|
|
70
70
|
"stylelint-use-logical": "^2.1.2",
|
|
71
|
-
"typescript-eslint": "^8.
|
|
71
|
+
"typescript-eslint": "^8.46.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@types/bun": "latest",
|
|
75
|
-
"bumpp": "^10.
|
|
75
|
+
"bumpp": "^10.3.1",
|
|
76
76
|
"husky": "^9.1.7",
|
|
77
77
|
"typescript": "^5.9.3"
|
|
78
78
|
}
|