@akinon/eslint-plugin-projectzero 1.43.0-rc.7 → 1.43.0-rc.9
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 +4 -0
- package/dist/configs/core.js +22 -23
- package/dist/rules/index.js +29 -35
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/configs/core.js
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
4
|
+
rules: {
|
|
5
|
+
'@akinon/projectzero/image-import': 'error',
|
|
6
|
+
'@akinon/projectzero/client-url': 'error',
|
|
7
|
+
'@akinon/projectzero/link-import': 'error',
|
|
8
|
+
'@akinon/projectzero/router-import': 'error',
|
|
9
|
+
'@akinon/projectzero/skip-trailing-slash-redirect': 'error',
|
|
10
|
+
'@akinon/projectzero/check-locale': 'error',
|
|
11
|
+
'@akinon/projectzero/meta-data-import': 'error',
|
|
12
|
+
'@akinon/projectzero/urls-without-slash': 'error',
|
|
13
|
+
'@akinon/projectzero/invalid-imports': 'error',
|
|
14
|
+
'@akinon/projectzero/check-menu-depth': 'error',
|
|
15
|
+
'@akinon/projectzero/case-warning': 'warn',
|
|
16
|
+
'no-restricted-syntax': [
|
|
17
|
+
'error',
|
|
18
|
+
{
|
|
19
|
+
selector: "MemberExpression[property.name='COMMERCE_URL'][object.property.name='env'][object.object.name='process']",
|
|
20
|
+
message: "You should use it as 'Settings.commerceUrl'"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
25
24
|
};
|
package/dist/rules/index.js
CHANGED
|
@@ -1,39 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
6
|
exports.rules = void 0;
|
|
9
|
-
const client_url_1 = __importDefault(require(
|
|
10
|
-
const image_import_1 = __importDefault(require(
|
|
11
|
-
const link_import_1 = __importDefault(require(
|
|
12
|
-
const router_import_1 = __importDefault(require(
|
|
13
|
-
const skip_trailing_slash_redirect_1 = __importDefault(
|
|
14
|
-
|
|
15
|
-
);
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
);
|
|
21
|
-
const urls_without_slash_1 = __importDefault(require('./urls-without-slash'));
|
|
22
|
-
const invalid_imports_1 = __importDefault(require('./invalid-imports'));
|
|
23
|
-
const check_menu_depth_1 = __importDefault(require('./check-menu-depth'));
|
|
24
|
-
const case_warning_1 = __importDefault(require('./case-warning'));
|
|
7
|
+
const client_url_1 = __importDefault(require("./client-url"));
|
|
8
|
+
const image_import_1 = __importDefault(require("./image-import"));
|
|
9
|
+
const link_import_1 = __importDefault(require("./link-import"));
|
|
10
|
+
const router_import_1 = __importDefault(require("./router-import"));
|
|
11
|
+
const skip_trailing_slash_redirect_1 = __importDefault(require("./skip-trailing-slash-redirect"));
|
|
12
|
+
const check_locale_1 = __importDefault(require("./check-locale"));
|
|
13
|
+
const meta_data_import_1 = __importDefault(require("./meta-data-import"));
|
|
14
|
+
const check_middleware_order_1 = __importDefault(require("./check-middleware-order"));
|
|
15
|
+
const urls_without_slash_1 = __importDefault(require("./urls-without-slash"));
|
|
16
|
+
const invalid_imports_1 = __importDefault(require("./invalid-imports"));
|
|
17
|
+
const check_menu_depth_1 = __importDefault(require("./check-menu-depth"));
|
|
18
|
+
const case_warning_1 = __importDefault(require("./case-warning"));
|
|
25
19
|
const rules = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
20
|
+
'client-url': client_url_1.default,
|
|
21
|
+
'image-import': image_import_1.default,
|
|
22
|
+
'link-import': link_import_1.default,
|
|
23
|
+
'router-import': router_import_1.default,
|
|
24
|
+
'skip-trailing-slash-redirect': skip_trailing_slash_redirect_1.default,
|
|
25
|
+
'check-locale': check_locale_1.default,
|
|
26
|
+
'meta-data-import': meta_data_import_1.default,
|
|
27
|
+
'check-middleware-order': check_middleware_order_1.default,
|
|
28
|
+
'urls-without-slash': urls_without_slash_1.default,
|
|
29
|
+
'invalid-imports': invalid_imports_1.default,
|
|
30
|
+
'check-menu-depth': check_menu_depth_1.default,
|
|
31
|
+
'case-warning': case_warning_1.default
|
|
38
32
|
};
|
|
39
33
|
exports.rules = rules;
|