@o3r/stylelint-plugin 10.3.0-prerelease.9 → 10.4.0-prerelease.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/package.json +21 -11
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +28 -2
- package/src/index.d.mts +4 -0
- package/src/index.d.mts.map +1 -0
- package/src/index.mjs +7 -0
- package/src/public_api.d.mts +3 -0
- package/src/public_api.d.mts.map +1 -0
- package/src/public_api.mjs +4 -0
- package/src/rules/index.d.mts +4 -0
- package/src/rules/index.d.mts.map +1 -0
- package/src/rules/index.mjs +6 -0
- package/src/rules/o3r-var-parameter-equal-variable/{o3r-var-parameter-equal-variable.d.ts → o3r-var-parameter-equal-variable.d.mts} +2 -2
- package/src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.d.mts.map +1 -0
- package/src/rules/o3r-var-parameter-equal-variable/{o3r-var-parameter-equal-variable.js → o3r-var-parameter-equal-variable.mjs} +15 -18
- package/src/utils/{get-namespaced-rule-name.d.ts → get-namespaced-rule-name.d.mts} +1 -1
- package/src/utils/get-namespaced-rule-name.d.mts.map +1 -0
- package/src/utils/get-namespaced-rule-name.mjs +7 -0
- package/src/index.d.ts +0 -3
- package/src/index.d.ts.map +0 -1
- package/src/index.js +0 -8
- package/src/index.js.map +0 -1
- package/src/public_api.d.ts +0 -3
- package/src/public_api.d.ts.map +0 -1
- package/src/public_api.js +0 -6
- package/src/public_api.js.map +0 -1
- package/src/rules/index.d.ts +0 -4
- package/src/rules/index.d.ts.map +0 -1
- package/src/rules/index.js +0 -9
- package/src/rules/index.js.map +0 -1
- package/src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.d.ts.map +0 -1
- package/src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.js.map +0 -1
- package/src/utils/get-namespaced-rule-name.d.ts.map +0 -1
- package/src/utils/get-namespaced-rule-name.js +0 -11
- package/src/utils/get-namespaced-rule-name.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/stylelint-plugin",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.4.0-prerelease.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"description": "In-house
|
|
7
|
+
"description": "In-house stylelint plugin to use in your own eslint configuration",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"stylelint",
|
|
10
10
|
"stylelint-plugin",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"nx": "nx",
|
|
18
18
|
"ng": "yarn nx",
|
|
19
19
|
"build": "yarn nx build stylelint-plugin",
|
|
20
|
-
"
|
|
20
|
+
"build:source": "tsc -b tsconfig.build.json",
|
|
21
|
+
"postbuild": "cpy package.json dist/ && patch-package-json-main",
|
|
21
22
|
"prepare:publish": "prepare-publish ./dist",
|
|
22
23
|
"prepare:build:builders": "yarn cpy 'schematics/**/*.json' 'schematics/**/templates/**' dist/schematics && yarn cpy './collection.json' dist",
|
|
23
24
|
"build:builders": "tsc -b tsconfig.builders.json --pretty && yarn generate-cjs-manifest"
|
|
@@ -26,9 +27,16 @@
|
|
|
26
27
|
"tslib": "^2.6.2"
|
|
27
28
|
},
|
|
28
29
|
"peerDependencies": {
|
|
30
|
+
"@schematics/angular": "~17.3.0",
|
|
29
31
|
"postcss": "^8.4.5",
|
|
32
|
+
"postcss-scss": "^4.0.9",
|
|
30
33
|
"stylelint": "^16.0.2"
|
|
31
34
|
},
|
|
35
|
+
"peerDependenciesMeta": {
|
|
36
|
+
"@schematics/angular": {
|
|
37
|
+
"optional": true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
32
40
|
"devDependencies": {
|
|
33
41
|
"@angular-devkit/core": "~17.3.0",
|
|
34
42
|
"@angular-devkit/schematics": "~17.3.0",
|
|
@@ -37,11 +45,13 @@
|
|
|
37
45
|
"@babel/core": "~7.24.0",
|
|
38
46
|
"@babel/preset-typescript": "~7.24.0",
|
|
39
47
|
"@compodoc/compodoc": "^1.1.19",
|
|
40
|
-
"@nx/eslint-plugin": "~18.
|
|
41
|
-
"@nx/jest": "~18.
|
|
42
|
-
"@o3r/build-helpers": "^10.
|
|
43
|
-
"@o3r/eslint-config-otter": "^10.
|
|
44
|
-
"@o3r/eslint-plugin": "^10.
|
|
48
|
+
"@nx/eslint-plugin": "~18.3.0",
|
|
49
|
+
"@nx/jest": "~18.3.0",
|
|
50
|
+
"@o3r/build-helpers": "^10.4.0-prerelease.0",
|
|
51
|
+
"@o3r/eslint-config-otter": "^10.4.0-prerelease.0",
|
|
52
|
+
"@o3r/eslint-plugin": "^10.4.0-prerelease.0",
|
|
53
|
+
"@o3r/test-helpers": "^10.4.0-prerelease.0",
|
|
54
|
+
"@schematics/angular": "~17.3.0",
|
|
45
55
|
"@stylistic/eslint-plugin-ts": "^1.5.4",
|
|
46
56
|
"@types/jest": "~29.5.2",
|
|
47
57
|
"@types/node": "^20.0.0",
|
|
@@ -57,17 +67,17 @@
|
|
|
57
67
|
"jest": "~29.7.0",
|
|
58
68
|
"jest-junit": "~16.0.0",
|
|
59
69
|
"jsonc-eslint-parser": "~2.4.0",
|
|
60
|
-
"nx": "~18.
|
|
70
|
+
"nx": "~18.3.0",
|
|
61
71
|
"postcss": "~8.4.31",
|
|
72
|
+
"postcss-scss": "~4.0.9",
|
|
62
73
|
"rimraf": "^5.0.1",
|
|
63
74
|
"stylelint": "^16.0.2",
|
|
64
75
|
"ts-jest": "~29.1.2",
|
|
65
76
|
"ts-node": "~10.9.2",
|
|
66
77
|
"typescript": "~5.4.2"
|
|
67
78
|
},
|
|
79
|
+
"main": "./src/public_api.mjs",
|
|
68
80
|
"schematics": "./collection.json",
|
|
69
|
-
"main": "./src/public_api.js",
|
|
70
|
-
"type": "commonjs",
|
|
71
81
|
"contributors": [
|
|
72
82
|
{
|
|
73
83
|
"name": "Yannick Adam",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AA4DtD;;;GAGG;AACH,eAAO,MAAM,KAAK,YAAa,qBAAqB,KAAG,IAGtD,CAAC"}
|
|
@@ -3,6 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ngAdd = void 0;
|
|
4
4
|
const path = require("node:path");
|
|
5
5
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
6
|
+
const dependenciesToInstall = [
|
|
7
|
+
'postcss',
|
|
8
|
+
'postcss-scss',
|
|
9
|
+
'stylelint'
|
|
10
|
+
];
|
|
6
11
|
const reportMissingSchematicsDep = (logger) => (reason) => {
|
|
7
12
|
logger.error(`[ERROR]: Adding @o3r/stylelint-plugin has failed.
|
|
8
13
|
If the error is related to missing @o3r dependencies you need to install '@o3r/core' to be able to use the mobile package. Please run 'ng add @o3r/core' .
|
|
@@ -16,10 +21,31 @@ Otherwise, use the error message as guidance.`);
|
|
|
16
21
|
function ngAddFn(options) {
|
|
17
22
|
/* ng add rules */
|
|
18
23
|
return async (tree) => {
|
|
19
|
-
const { getPackageInstallConfig, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
24
|
+
const { getExternalDependenciesVersionRange, getPackageInstallConfig, getProjectNewDependenciesTypes, getO3rPeerDeps, getWorkspaceConfig, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
26
|
+
const { NodeDependencyType } = await Promise.resolve().then(() => require('@schematics/angular/utility/dependencies'));
|
|
27
|
+
const depsInfo = getO3rPeerDeps(packageJsonPath);
|
|
28
|
+
const workspaceProject = options.projectName ? getWorkspaceConfig(tree)?.projects[options.projectName] : undefined;
|
|
29
|
+
const dependencies = depsInfo.o3rPeerDeps.reduce((acc, dep) => {
|
|
30
|
+
acc[dep] = {
|
|
31
|
+
inManifest: [{
|
|
32
|
+
range: `~${depsInfo.packageVersion}`,
|
|
33
|
+
types: getProjectNewDependenciesTypes(workspaceProject)
|
|
34
|
+
}]
|
|
35
|
+
};
|
|
36
|
+
return acc;
|
|
37
|
+
}, getPackageInstallConfig(packageJsonPath, tree, options.projectName, true, !!options.exactO3rVersion));
|
|
38
|
+
Object.entries(getExternalDependenciesVersionRange(dependenciesToInstall, packageJsonPath)).forEach(([dep, range]) => {
|
|
39
|
+
dependencies[dep] = {
|
|
40
|
+
inManifest: [{
|
|
41
|
+
range,
|
|
42
|
+
types: [NodeDependencyType.Dev]
|
|
43
|
+
}]
|
|
44
|
+
};
|
|
45
|
+
});
|
|
20
46
|
return setupDependencies({
|
|
21
47
|
projectName: options.projectName,
|
|
22
|
-
dependencies
|
|
48
|
+
dependencies
|
|
23
49
|
});
|
|
24
50
|
};
|
|
25
51
|
}
|
package/src/index.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/index.mts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAKlC,QAAA,MAAM,YAAY,oBAEjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/src/index.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import stylelint from 'stylelint';
|
|
2
|
+
import { getNamespacedRuleName } from './utils/get-namespaced-rule-name.mjs';
|
|
3
|
+
import { rules } from './rules/index.mjs';
|
|
4
|
+
const { createPlugin } = stylelint;
|
|
5
|
+
const rulesPlugins = Object.entries(rules).map(([ruleName, rule]) => createPlugin(getNamespacedRuleName(ruleName), rule));
|
|
6
|
+
export default rulesPlugins;
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public_api.d.mts","sourceRoot":"","sources":["../../src/public_api.mts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,aAAa,CAAC;AAEvC,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const rules: {
|
|
2
|
+
readonly 'o3r-var-parameter-equal-variable': (primary: any, _secondaryOptions: Record<string, any>, context: import("stylelint", { with: { "resolution-mode": "require" } }).RuleContext) => (root: import("postcss").Root, result: import("stylelint", { with: { "resolution-mode": "require" } }).PostcssResult) => void;
|
|
3
|
+
};
|
|
4
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/rules/index.mts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;CAGR,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { rule as o3rVarParameterEqualVariableRule } from './o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.mjs';
|
|
2
|
+
export const rules = {
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
4
|
+
'o3r-var-parameter-equal-variable': o3rVarParameterEqualVariableRule
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as PostCSS from 'postcss';
|
|
2
|
-
import { PostcssResult, RuleContext } from 'stylelint';
|
|
2
|
+
import type { PostcssResult, RuleContext } from 'stylelint';
|
|
3
3
|
/**
|
|
4
4
|
* Scoped rule name
|
|
5
5
|
*/
|
|
@@ -21,4 +21,4 @@ export declare const messagesAlias: {
|
|
|
21
21
|
* @param context
|
|
22
22
|
*/
|
|
23
23
|
export declare const rule: (primary: any, _secondaryOptions: Record<string, any>, context: RuleContext) => (root: PostCSS.Root, result: PostcssResult) => void;
|
|
24
|
-
//# sourceMappingURL=o3r-var-parameter-equal-variable.d.
|
|
24
|
+
//# sourceMappingURL=o3r-var-parameter-equal-variable.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o3r-var-parameter-equal-variable.d.mts","sourceRoot":"","sources":["../../../../src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAW,WAAW,EAAE,MAAM,WAAW,CAAC;AAMrE;;GAEG;AACH,eAAO,MAAM,QAAQ,QAA4D,CAAC;AAElF;;GAEG;AACH,eAAO,MAAM,QAAQ;0BACG,MAAM,gBAAgB,MAAM,SAAS,MAAM;CACjE,CAAC;AAEH,8FAA8F;AAC9F,eAAO,MAAM,aAAa;sBACN,MAAM,oBAAoB,MAAM;CAClD,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,IAAI,YAAa,GAAG,qBAAqB,OAAO,MAAM,EAAE,GAAG,CAAC,WAAW,WAAW,YAC/E,QAAQ,IAAI,UAAU,aAAa,SAiDlD,CAAC"}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const stylelint_1 = require("stylelint");
|
|
5
|
-
const get_namespaced_rule_name_1 = require("../../utils/get-namespaced-rule-name");
|
|
1
|
+
import stylelint from 'stylelint';
|
|
2
|
+
import { getNamespacedRuleName } from '../../utils/get-namespaced-rule-name.mjs';
|
|
3
|
+
const { utils } = stylelint;
|
|
6
4
|
const o3rImportRegexp = new RegExp(/^@use ['"]@o3r\/styling['"] as (.*);/m);
|
|
7
5
|
/**
|
|
8
6
|
* Scoped rule name
|
|
9
7
|
*/
|
|
10
|
-
|
|
8
|
+
export const ruleName = getNamespacedRuleName('o3r-var-parameter-equal-variable');
|
|
11
9
|
/**
|
|
12
10
|
* Contains expected function which is used to log issues
|
|
13
11
|
*/
|
|
14
|
-
|
|
12
|
+
export const messages = utils.ruleMessages(ruleName, {
|
|
15
13
|
expected: (parameter, variableName, alias) => `${alias}.variable parameter doesn't match variable name: "${parameter}" vs "${variableName}"`
|
|
16
14
|
});
|
|
17
15
|
/** Logs the error message when there is no good o3r styling alias for variable declaration */
|
|
18
|
-
|
|
16
|
+
export const messagesAlias = utils.ruleMessages(ruleName, {
|
|
19
17
|
expected: (alias, declarationValue) => `.variable not used with the good alias = ${alias} in ${declarationValue}`
|
|
20
18
|
});
|
|
21
19
|
/**
|
|
@@ -24,9 +22,9 @@ exports.messagesAlias = stylelint_1.utils.ruleMessages(exports.ruleName, {
|
|
|
24
22
|
* @param _secondaryOptions
|
|
25
23
|
* @param context
|
|
26
24
|
*/
|
|
27
|
-
const rule = (primary, _secondaryOptions, context) => {
|
|
25
|
+
export const rule = (primary, _secondaryOptions, context) => {
|
|
28
26
|
return (root, result) => {
|
|
29
|
-
const validOptions =
|
|
27
|
+
const validOptions = utils.validateOptions(result, ruleName, {
|
|
30
28
|
actual: primary
|
|
31
29
|
});
|
|
32
30
|
if (!validOptions) {
|
|
@@ -45,10 +43,10 @@ const rule = (primary, _secondaryOptions, context) => {
|
|
|
45
43
|
const regexResult = parameterRegexp.exec(decl.value);
|
|
46
44
|
const parameter = regexResult?.groups?.parameter ?? '';
|
|
47
45
|
if (!parameter) {
|
|
48
|
-
|
|
49
|
-
ruleName
|
|
46
|
+
utils.report({
|
|
47
|
+
ruleName,
|
|
50
48
|
result: result,
|
|
51
|
-
message:
|
|
49
|
+
message: messagesAlias.expected(alias, decl.value), // Build the reported message
|
|
52
50
|
node: decl, // Specify the reported node
|
|
53
51
|
word: decl.value
|
|
54
52
|
});
|
|
@@ -58,10 +56,10 @@ const rule = (primary, _secondaryOptions, context) => {
|
|
|
58
56
|
decl.value = decl.value.replace(parameter, variableName);
|
|
59
57
|
}
|
|
60
58
|
else { // We are in “report only” mode
|
|
61
|
-
|
|
62
|
-
ruleName
|
|
59
|
+
utils.report({
|
|
60
|
+
ruleName,
|
|
63
61
|
result: result,
|
|
64
|
-
message:
|
|
62
|
+
message: messages.expected(parameter, variableName, alias), // Build the reported message
|
|
65
63
|
node: decl, // Specify the reported node
|
|
66
64
|
word: parameter // Which exact word caused the error? This positions the error properly
|
|
67
65
|
});
|
|
@@ -71,5 +69,4 @@ const rule = (primary, _secondaryOptions, context) => {
|
|
|
71
69
|
}
|
|
72
70
|
};
|
|
73
71
|
};
|
|
74
|
-
|
|
75
|
-
//# sourceMappingURL=o3r-var-parameter-equal-variable.js.map
|
|
72
|
+
//# sourceMappingURL=o3r-var-parameter-equal-variable.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-namespaced-rule-name.d.mts","sourceRoot":"","sources":["../../../src/utils/get-namespaced-rule-name.mts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,qBAAqB,aAAc,MAAM,KAAG,MAAiC,CAAC"}
|
package/src/index.d.ts
DELETED
package/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,YAAY,8BAEjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/src/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const stylelint_1 = require("stylelint");
|
|
4
|
-
const get_namespaced_rule_name_1 = require("./utils/get-namespaced-rule-name");
|
|
5
|
-
const index_1 = require("./rules/index");
|
|
6
|
-
const rulesPlugins = Object.entries(index_1.rules).map(([ruleName, rule]) => (0, stylelint_1.createPlugin)((0, get_namespaced_rule_name_1.getNamespacedRuleName)(ruleName), rule));
|
|
7
|
-
exports.default = rulesPlugins;
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;AAAA,yCAAuC;AACvC,+EAAuE;AACvE,yCAAoC;AAEpC,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,aAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE,CAClE,IAAA,wBAAY,EAAC,IAAA,gDAAqB,EAAC,QAAQ,CAAC,EAAE,IAAW,CAAC,CAC3D,CAAC;AAEF,kBAAe,YAAY,CAAC"}
|
package/src/public_api.d.ts
DELETED
package/src/public_api.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,SAAS,CAAC;AAEnC,eAAe,YAAY,CAAC"}
|
package/src/public_api.js
DELETED
package/src/public_api.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":";;AAAA,mCAAmC;AACnC,+CAA+C;AAC/C,kBAAe,eAAY,CAAC"}
|
package/src/rules/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const rules: {
|
|
2
|
-
readonly 'o3r-var-parameter-equal-variable': (primary: any, _secondaryOptions: Record<string, any>, context: import("stylelint").RuleContext) => (root: import("postcss").Root, result: import("stylelint").PostcssResult) => void;
|
|
3
|
-
};
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
package/src/rules/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;CAGR,CAAC"}
|
package/src/rules/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rules = void 0;
|
|
4
|
-
const o3r_var_parameter_equal_variable_1 = require("./o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable");
|
|
5
|
-
exports.rules = {
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
-
'o3r-var-parameter-equal-variable': o3r_var_parameter_equal_variable_1.rule
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
package/src/rules/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/index.ts"],"names":[],"mappings":";;;AAAA,0HAA+H;AAElH,QAAA,KAAK,GAAG;IACnB,gEAAgE;IAChE,kCAAkC,EAAE,uCAAgC;CAC5D,CAAC"}
|
package/src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"o3r-var-parameter-equal-variable.d.ts","sourceRoot":"","sources":["../../../../src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,aAAa,EAAW,WAAW,EAAS,MAAM,WAAW,CAAC;AAIvE;;GAEG;AACH,eAAO,MAAM,QAAQ,QAA4D,CAAC;AAElF;;GAEG;AACH,eAAO,MAAM,QAAQ;0BACG,MAAM,gBAAgB,MAAM,SAAS,MAAM;CACjE,CAAC;AAEH,8FAA8F;AAC9F,eAAO,MAAM,aAAa;sBACN,MAAM,oBAAoB,MAAM;CAClD,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,IAAI,YAAa,GAAG,qBAAqB,OAAO,MAAM,EAAE,GAAG,CAAC,WAAW,WAAW,YAC/E,QAAQ,IAAI,UAAU,aAAa,SAiDlD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"o3r-var-parameter-equal-variable.js","sourceRoot":"","sources":["../../../../src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-namespaced-rule-name.d.ts","sourceRoot":"","sources":["../../../src/utils/get-namespaced-rule-name.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,qBAAqB,aAAc,MAAM,KAAG,MAAiC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getNamespacedRuleName = void 0;
|
|
4
|
-
const prefix = '@o3r';
|
|
5
|
-
/**
|
|
6
|
-
* Generates a namespaced rule name.
|
|
7
|
-
* @param ruleName Name of the rule
|
|
8
|
-
*/
|
|
9
|
-
const getNamespacedRuleName = (ruleName) => `${prefix}/${ruleName}`;
|
|
10
|
-
exports.getNamespacedRuleName = getNamespacedRuleName;
|
|
11
|
-
//# sourceMappingURL=get-namespaced-rule-name.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-namespaced-rule-name.js","sourceRoot":"","sources":["../../../src/utils/get-namespaced-rule-name.ts"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG,MAAM,CAAC;AAEtB;;;GAGG;AACI,MAAM,qBAAqB,GAAG,CAAC,QAAgB,EAAU,EAAE,CAAC,GAAG,MAAM,IAAI,QAAQ,EAAE,CAAC;AAA9E,QAAA,qBAAqB,yBAAyD"}
|