immosquare-cleaner 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/lib/immosquare-cleaner.rb +3 -2
- data/linters/eslintrc.json +54 -27
- data/package.json +7 -8
- metadata +30 -69
- data/node_modules/eslint-plugin-jsonc/LICENSE +0 -21
- data/node_modules/eslint-plugin-jsonc/README.md +0 -279
- data/node_modules/eslint-plugin-jsonc/conf/eslint-all.js +0 -11
- data/node_modules/eslint-plugin-jsonc/conf/eslint-recommended.js +0 -13
- data/node_modules/eslint-plugin-jsonc/conf/rules.js +0 -10
- data/node_modules/eslint-plugin-jsonc/dist/configs/all.js +0 -18
- data/node_modules/eslint-plugin-jsonc/dist/configs/auto-config.js +0 -13
- data/node_modules/eslint-plugin-jsonc/dist/configs/base.js +0 -15
- data/node_modules/eslint-plugin-jsonc/dist/configs/prettier.js +0 -26
- data/node_modules/eslint-plugin-jsonc/dist/configs/recommended-with-json.js +0 -41
- data/node_modules/eslint-plugin-jsonc/dist/configs/recommended-with-json5.js +0 -30
- data/node_modules/eslint-plugin-jsonc/dist/configs/recommended-with-jsonc.js +0 -39
- data/node_modules/eslint-plugin-jsonc/dist/index.js +0 -68
- data/node_modules/eslint-plugin-jsonc/dist/meta.js +0 -5
- data/node_modules/eslint-plugin-jsonc/dist/rules/array-bracket-newline.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/array-bracket-spacing.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/array-element-newline.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/auto.js +0 -66
- data/node_modules/eslint-plugin-jsonc/dist/rules/comma-dangle.js +0 -27
- data/node_modules/eslint-plugin-jsonc/dist/rules/comma-style.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/indent.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/key-name-casing.js +0 -94
- data/node_modules/eslint-plugin-jsonc/dist/rules/key-spacing.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-bigint-literals.js +0 -33
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-binary-expression.js +0 -38
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-binary-numeric-literals.js +0 -39
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-comments.js +0 -34
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-dupe-keys.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-escape-sequence-in-identifier.js +0 -57
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-floating-decimal.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-hexadecimal-numeric-literals.js +0 -39
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-infinity.js +0 -37
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-irregular-whitespace.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-multi-str.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-nan.js +0 -37
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-number-props.js +0 -41
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-numeric-separators.js +0 -42
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-octal-escape.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-octal-numeric-literals.js +0 -39
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-octal.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-parenthesized.js +0 -70
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-plus-sign.js +0 -39
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-regexp-literals.js +0 -33
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-sparse-arrays.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-template-literals.js +0 -36
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-undefined-value.js +0 -35
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-unicode-codepoint-escapes.js +0 -73
- data/node_modules/eslint-plugin-jsonc/dist/rules/no-useless-escape.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/object-curly-newline.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/object-curly-spacing.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/object-property-newline.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/quote-props.js +0 -27
- data/node_modules/eslint-plugin-jsonc/dist/rules/quotes.js +0 -27
- data/node_modules/eslint-plugin-jsonc/dist/rules/sort-array-values.js +0 -371
- data/node_modules/eslint-plugin-jsonc/dist/rules/sort-keys.js +0 -413
- data/node_modules/eslint-plugin-jsonc/dist/rules/space-unary-ops.js +0 -23
- data/node_modules/eslint-plugin-jsonc/dist/rules/valid-json-number.js +0 -138
- data/node_modules/eslint-plugin-jsonc/dist/rules/vue-custom-block/no-parsing-error.js +0 -86
- data/node_modules/eslint-plugin-jsonc/dist/types.js +0 -2
- data/node_modules/eslint-plugin-jsonc/dist/utils/casing.js +0 -134
- data/node_modules/eslint-plugin-jsonc/dist/utils/get-auto-jsonc-rules-config.js +0 -97
- data/node_modules/eslint-plugin-jsonc/dist/utils/index.js +0 -121
- data/node_modules/eslint-plugin-jsonc/dist/utils/rules.js +0 -96
- data/node_modules/eslint-plugin-jsonc/index.d.ts +0 -364
- data/node_modules/eslint-plugin-jsonc/package.json +0 -123
@@ -1,134 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getExactConverter = exports.getConverter = exports.getChecker = exports.isPascalCase = exports.pascalCase = exports.isCamelCase = exports.camelCase = exports.isScreamingSnakeCase = exports.screamingSnakeCase = exports.isSnakeCase = exports.snakeCase = exports.isKebabCase = exports.kebabCase = exports.allowedCaseOptions = void 0;
|
4
|
-
exports.allowedCaseOptions = [
|
5
|
-
"camelCase",
|
6
|
-
"kebab-case",
|
7
|
-
"PascalCase",
|
8
|
-
"snake_case",
|
9
|
-
"SCREAMING_SNAKE_CASE",
|
10
|
-
];
|
11
|
-
function capitalize(str) {
|
12
|
-
return str.charAt(0).toUpperCase() + str.slice(1);
|
13
|
-
}
|
14
|
-
function hasSymbols(str) {
|
15
|
-
return /[\u0021-\u0023\u0025-\u002c./\u003a-\u0040\u005b-\u005e`\u007b-\u007d]/u.test(str);
|
16
|
-
}
|
17
|
-
function hasUpper(str) {
|
18
|
-
return /[A-Z]/u.test(str);
|
19
|
-
}
|
20
|
-
function hasLower(str) {
|
21
|
-
return /[a-z]/u.test(str);
|
22
|
-
}
|
23
|
-
function kebabCase(str) {
|
24
|
-
let res = str.replace(/_/gu, "-");
|
25
|
-
if (hasLower(res)) {
|
26
|
-
res = res.replace(/\B([A-Z])/gu, "-$1");
|
27
|
-
}
|
28
|
-
return res.toLowerCase();
|
29
|
-
}
|
30
|
-
exports.kebabCase = kebabCase;
|
31
|
-
function isKebabCase(str) {
|
32
|
-
if (hasUpper(str) ||
|
33
|
-
hasSymbols(str) ||
|
34
|
-
str.startsWith("-") ||
|
35
|
-
/_|--|\s/u.test(str)) {
|
36
|
-
return false;
|
37
|
-
}
|
38
|
-
return true;
|
39
|
-
}
|
40
|
-
exports.isKebabCase = isKebabCase;
|
41
|
-
function snakeCase(str) {
|
42
|
-
let res = str.replace(/-/gu, "_");
|
43
|
-
if (hasLower(res)) {
|
44
|
-
res = res.replace(/\B([A-Z])/gu, "_$1");
|
45
|
-
}
|
46
|
-
return res.toLowerCase();
|
47
|
-
}
|
48
|
-
exports.snakeCase = snakeCase;
|
49
|
-
function isSnakeCase(str) {
|
50
|
-
if (hasUpper(str) || hasSymbols(str) || /-|__|\s/u.test(str)) {
|
51
|
-
return false;
|
52
|
-
}
|
53
|
-
return true;
|
54
|
-
}
|
55
|
-
exports.isSnakeCase = isSnakeCase;
|
56
|
-
function screamingSnakeCase(str) {
|
57
|
-
let res = str.replace(/-/gu, "_");
|
58
|
-
if (hasLower(res)) {
|
59
|
-
res = res.replace(/\B([A-Z])/gu, "_$1");
|
60
|
-
}
|
61
|
-
return res.toUpperCase();
|
62
|
-
}
|
63
|
-
exports.screamingSnakeCase = screamingSnakeCase;
|
64
|
-
function isScreamingSnakeCase(str) {
|
65
|
-
if (hasLower(str) || hasSymbols(str) || /-|__|\s/u.test(str)) {
|
66
|
-
return false;
|
67
|
-
}
|
68
|
-
return true;
|
69
|
-
}
|
70
|
-
exports.isScreamingSnakeCase = isScreamingSnakeCase;
|
71
|
-
function camelCase(str) {
|
72
|
-
if (isPascalCase(str)) {
|
73
|
-
return str.charAt(0).toLowerCase() + str.slice(1);
|
74
|
-
}
|
75
|
-
let s = str;
|
76
|
-
if (!hasLower(s)) {
|
77
|
-
s = s.toLowerCase();
|
78
|
-
}
|
79
|
-
return s.replace(/[-_](\w)/gu, (_, c) => (c ? c.toUpperCase() : ""));
|
80
|
-
}
|
81
|
-
exports.camelCase = camelCase;
|
82
|
-
function isCamelCase(str) {
|
83
|
-
if (hasSymbols(str) ||
|
84
|
-
/^[A-Z]/u.test(str) ||
|
85
|
-
/[\s\-_]/u.test(str)) {
|
86
|
-
return false;
|
87
|
-
}
|
88
|
-
return true;
|
89
|
-
}
|
90
|
-
exports.isCamelCase = isCamelCase;
|
91
|
-
function pascalCase(str) {
|
92
|
-
return capitalize(camelCase(str));
|
93
|
-
}
|
94
|
-
exports.pascalCase = pascalCase;
|
95
|
-
function isPascalCase(str) {
|
96
|
-
if (hasSymbols(str) ||
|
97
|
-
/^[a-z]/u.test(str) ||
|
98
|
-
/[\s\-_]/u.test(str)) {
|
99
|
-
return false;
|
100
|
-
}
|
101
|
-
return true;
|
102
|
-
}
|
103
|
-
exports.isPascalCase = isPascalCase;
|
104
|
-
const convertersMap = {
|
105
|
-
"kebab-case": kebabCase,
|
106
|
-
snake_case: snakeCase,
|
107
|
-
SCREAMING_SNAKE_CASE: screamingSnakeCase,
|
108
|
-
camelCase,
|
109
|
-
PascalCase: pascalCase,
|
110
|
-
};
|
111
|
-
const checkersMap = {
|
112
|
-
"kebab-case": isKebabCase,
|
113
|
-
snake_case: isSnakeCase,
|
114
|
-
SCREAMING_SNAKE_CASE: isScreamingSnakeCase,
|
115
|
-
camelCase: isCamelCase,
|
116
|
-
PascalCase: isPascalCase,
|
117
|
-
};
|
118
|
-
function getChecker(name) {
|
119
|
-
return checkersMap[name] || isPascalCase;
|
120
|
-
}
|
121
|
-
exports.getChecker = getChecker;
|
122
|
-
function getConverter(name) {
|
123
|
-
return convertersMap[name] || pascalCase;
|
124
|
-
}
|
125
|
-
exports.getConverter = getConverter;
|
126
|
-
function getExactConverter(name) {
|
127
|
-
const converter = getConverter(name);
|
128
|
-
const checker = getChecker(name);
|
129
|
-
return (str) => {
|
130
|
-
const result = converter(str);
|
131
|
-
return checker(result) ? result : str;
|
132
|
-
};
|
133
|
-
}
|
134
|
-
exports.getExactConverter = getExactConverter;
|
@@ -1,97 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getAutoConfig = void 0;
|
4
|
-
const fs_1 = require("fs");
|
5
|
-
const path_1 = require("path");
|
6
|
-
let configResolver, ruleNames;
|
7
|
-
function getConfigResolver() {
|
8
|
-
if (configResolver) {
|
9
|
-
return configResolver;
|
10
|
-
}
|
11
|
-
const plugin = require("..");
|
12
|
-
try {
|
13
|
-
const eslintrc = require("@eslint/eslintrc");
|
14
|
-
const configArrayFactory = new eslintrc.Legacy.CascadingConfigArrayFactory({
|
15
|
-
additionalPluginPool: new Map([["eslint-plugin-jsonc", plugin]]),
|
16
|
-
getEslintRecommendedConfig() {
|
17
|
-
return require("../../conf/eslint-recommended.js");
|
18
|
-
},
|
19
|
-
getEslintAllConfig() {
|
20
|
-
return require("../../conf/eslint-all.js");
|
21
|
-
},
|
22
|
-
eslintRecommendedPath: require.resolve("../../conf/eslint-recommended.js"),
|
23
|
-
eslintAllPath: require.resolve("../../conf/eslint-all.js"),
|
24
|
-
});
|
25
|
-
return (configResolver = (filePath) => {
|
26
|
-
const absolutePath = (0, path_1.resolve)(process.cwd(), filePath);
|
27
|
-
return configArrayFactory
|
28
|
-
.getConfigArrayForFile(absolutePath)
|
29
|
-
.extractConfig(absolutePath)
|
30
|
-
.toCompatibleObjectAsConfigFileContent();
|
31
|
-
});
|
32
|
-
}
|
33
|
-
catch (_a) {
|
34
|
-
}
|
35
|
-
try {
|
36
|
-
const eslint = require("eslint");
|
37
|
-
const engine = new eslint.CLIEngine({});
|
38
|
-
engine.addPlugin("eslint-plugin-jsonc", plugin);
|
39
|
-
return (configResolver = (filePath) => {
|
40
|
-
let targetFilePath = filePath;
|
41
|
-
const ext = (0, path_1.extname)(filePath);
|
42
|
-
while (!isValidFilename(targetFilePath)) {
|
43
|
-
const dir = (0, path_1.dirname)(targetFilePath);
|
44
|
-
if (dir === targetFilePath) {
|
45
|
-
return {};
|
46
|
-
}
|
47
|
-
targetFilePath = dir;
|
48
|
-
if (ext && (0, path_1.extname)(targetFilePath) !== ext) {
|
49
|
-
targetFilePath += ext;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
return engine.getConfigForFile(targetFilePath);
|
53
|
-
});
|
54
|
-
}
|
55
|
-
catch (_b) {
|
56
|
-
}
|
57
|
-
return () => ({});
|
58
|
-
}
|
59
|
-
function isValidFilename(filename) {
|
60
|
-
const dir = (0, path_1.dirname)(filename);
|
61
|
-
if ((0, fs_1.existsSync)(dir) && (0, fs_1.statSync)(dir).isDirectory()) {
|
62
|
-
if ((0, fs_1.existsSync)(filename) && (0, fs_1.statSync)(filename).isDirectory()) {
|
63
|
-
return false;
|
64
|
-
}
|
65
|
-
return true;
|
66
|
-
}
|
67
|
-
return false;
|
68
|
-
}
|
69
|
-
function getConfig(filename) {
|
70
|
-
return getConfigResolver()(filename);
|
71
|
-
}
|
72
|
-
function getJsoncRule(rule) {
|
73
|
-
ruleNames =
|
74
|
-
ruleNames ||
|
75
|
-
new Set(require("./rules").rules.map((r) => r.meta.docs.ruleName));
|
76
|
-
return ruleNames.has(rule) ? `jsonc/${rule}` : null;
|
77
|
-
}
|
78
|
-
function getAutoConfig(filename) {
|
79
|
-
const autoConfig = {};
|
80
|
-
const config = getConfig(filename);
|
81
|
-
if (config.rules) {
|
82
|
-
for (const ruleName of Object.keys(config.rules)) {
|
83
|
-
const jsoncName = getJsoncRule(ruleName);
|
84
|
-
if (jsoncName && !config.rules[jsoncName]) {
|
85
|
-
const entry = config.rules[ruleName];
|
86
|
-
if (entry) {
|
87
|
-
const severity = Array.isArray(entry) ? entry[0] : entry;
|
88
|
-
if (severity !== "off" && severity !== 0) {
|
89
|
-
autoConfig[jsoncName] = entry;
|
90
|
-
}
|
91
|
-
}
|
92
|
-
}
|
93
|
-
}
|
94
|
-
}
|
95
|
-
return autoConfig;
|
96
|
-
}
|
97
|
-
exports.getAutoConfig = getAutoConfig;
|
@@ -1,121 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
-
};
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.getCoreRule = exports.defineWrapperListener = exports.createRule = void 0;
|
30
|
-
const jsoncESLintParser = __importStar(require("jsonc-eslint-parser"));
|
31
|
-
const path_1 = __importDefault(require("path"));
|
32
|
-
function createRule(ruleName, rule) {
|
33
|
-
return {
|
34
|
-
meta: Object.assign(Object.assign({}, rule.meta), { docs: Object.assign(Object.assign({}, rule.meta.docs), { url: `https://ota-meshi.github.io/eslint-plugin-jsonc/rules/${ruleName}.html`, ruleId: `jsonc/${ruleName}`, ruleName }) }),
|
35
|
-
jsoncDefineRule: rule,
|
36
|
-
create(context) {
|
37
|
-
if (typeof context.parserServices.defineCustomBlocksVisitor ===
|
38
|
-
"function" &&
|
39
|
-
path_1.default.extname(context.getFilename()) === ".vue") {
|
40
|
-
return context.parserServices.defineCustomBlocksVisitor(context, jsoncESLintParser, {
|
41
|
-
target(lang, block) {
|
42
|
-
if (lang) {
|
43
|
-
return /^json[5c]?$/i.test(lang);
|
44
|
-
}
|
45
|
-
return block.name === "i18n";
|
46
|
-
},
|
47
|
-
create(blockContext) {
|
48
|
-
return rule.create(blockContext, {
|
49
|
-
customBlock: true,
|
50
|
-
});
|
51
|
-
},
|
52
|
-
});
|
53
|
-
}
|
54
|
-
return rule.create(context, {
|
55
|
-
customBlock: false,
|
56
|
-
});
|
57
|
-
},
|
58
|
-
};
|
59
|
-
}
|
60
|
-
exports.createRule = createRule;
|
61
|
-
function defineWrapperListener(coreRule, context, options) {
|
62
|
-
if (!context.parserServices.isJSON) {
|
63
|
-
return {};
|
64
|
-
}
|
65
|
-
const listener = coreRule.create({
|
66
|
-
__proto__: context,
|
67
|
-
options,
|
68
|
-
});
|
69
|
-
const jsonListener = {};
|
70
|
-
for (const key of Object.keys(listener)) {
|
71
|
-
const original = listener[key];
|
72
|
-
if (!original) {
|
73
|
-
continue;
|
74
|
-
}
|
75
|
-
const jsonKey = key.replace(/(?:^|\b)(ExpressionStatement|(?:Template)?Literal|(?:Array|Object|Unary)Expression|Property|Identifier|TemplateElement)(?:\b|$)/gu, "JSON$1");
|
76
|
-
jsonListener[jsonKey] = function (node, ...args) {
|
77
|
-
original.call(this, getProxyNode(node), ...args);
|
78
|
-
};
|
79
|
-
}
|
80
|
-
function isNode(data) {
|
81
|
-
return (data &&
|
82
|
-
typeof data.type === "string" &&
|
83
|
-
Array.isArray(data.range) &&
|
84
|
-
data.range.length === 2 &&
|
85
|
-
typeof data.range[0] === "number" &&
|
86
|
-
typeof data.range[1] === "number");
|
87
|
-
}
|
88
|
-
function getProxyNode(node) {
|
89
|
-
const type = node.type.startsWith("JSON") ? node.type.slice(4) : node.type;
|
90
|
-
const cache = { type };
|
91
|
-
return new Proxy(node, {
|
92
|
-
get(_t, key) {
|
93
|
-
if (key in cache) {
|
94
|
-
return cache[key];
|
95
|
-
}
|
96
|
-
const data = node[key];
|
97
|
-
if (isNode(data)) {
|
98
|
-
return (cache[key] = getProxyNode(data));
|
99
|
-
}
|
100
|
-
if (Array.isArray(data)) {
|
101
|
-
return (cache[key] = data.map((e) => isNode(e) ? getProxyNode(e) : e));
|
102
|
-
}
|
103
|
-
return data;
|
104
|
-
},
|
105
|
-
});
|
106
|
-
}
|
107
|
-
return jsonListener;
|
108
|
-
}
|
109
|
-
exports.defineWrapperListener = defineWrapperListener;
|
110
|
-
let ruleMap = null;
|
111
|
-
function getCoreRule(name) {
|
112
|
-
let map;
|
113
|
-
if (ruleMap) {
|
114
|
-
map = ruleMap;
|
115
|
-
}
|
116
|
-
else {
|
117
|
-
ruleMap = map = new (require("eslint").Linter)().getRules();
|
118
|
-
}
|
119
|
-
return map.get(name);
|
120
|
-
}
|
121
|
-
exports.getCoreRule = getCoreRule;
|
@@ -1,96 +0,0 @@
|
|
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 });
|
6
|
-
exports.rules = void 0;
|
7
|
-
const array_bracket_newline_1 = __importDefault(require("../rules/array-bracket-newline"));
|
8
|
-
const array_bracket_spacing_1 = __importDefault(require("../rules/array-bracket-spacing"));
|
9
|
-
const array_element_newline_1 = __importDefault(require("../rules/array-element-newline"));
|
10
|
-
const auto_1 = __importDefault(require("../rules/auto"));
|
11
|
-
const comma_dangle_1 = __importDefault(require("../rules/comma-dangle"));
|
12
|
-
const comma_style_1 = __importDefault(require("../rules/comma-style"));
|
13
|
-
const indent_1 = __importDefault(require("../rules/indent"));
|
14
|
-
const key_name_casing_1 = __importDefault(require("../rules/key-name-casing"));
|
15
|
-
const key_spacing_1 = __importDefault(require("../rules/key-spacing"));
|
16
|
-
const no_bigint_literals_1 = __importDefault(require("../rules/no-bigint-literals"));
|
17
|
-
const no_binary_expression_1 = __importDefault(require("../rules/no-binary-expression"));
|
18
|
-
const no_binary_numeric_literals_1 = __importDefault(require("../rules/no-binary-numeric-literals"));
|
19
|
-
const no_comments_1 = __importDefault(require("../rules/no-comments"));
|
20
|
-
const no_dupe_keys_1 = __importDefault(require("../rules/no-dupe-keys"));
|
21
|
-
const no_escape_sequence_in_identifier_1 = __importDefault(require("../rules/no-escape-sequence-in-identifier"));
|
22
|
-
const no_floating_decimal_1 = __importDefault(require("../rules/no-floating-decimal"));
|
23
|
-
const no_hexadecimal_numeric_literals_1 = __importDefault(require("../rules/no-hexadecimal-numeric-literals"));
|
24
|
-
const no_infinity_1 = __importDefault(require("../rules/no-infinity"));
|
25
|
-
const no_irregular_whitespace_1 = __importDefault(require("../rules/no-irregular-whitespace"));
|
26
|
-
const no_multi_str_1 = __importDefault(require("../rules/no-multi-str"));
|
27
|
-
const no_nan_1 = __importDefault(require("../rules/no-nan"));
|
28
|
-
const no_number_props_1 = __importDefault(require("../rules/no-number-props"));
|
29
|
-
const no_numeric_separators_1 = __importDefault(require("../rules/no-numeric-separators"));
|
30
|
-
const no_octal_escape_1 = __importDefault(require("../rules/no-octal-escape"));
|
31
|
-
const no_octal_numeric_literals_1 = __importDefault(require("../rules/no-octal-numeric-literals"));
|
32
|
-
const no_octal_1 = __importDefault(require("../rules/no-octal"));
|
33
|
-
const no_parenthesized_1 = __importDefault(require("../rules/no-parenthesized"));
|
34
|
-
const no_plus_sign_1 = __importDefault(require("../rules/no-plus-sign"));
|
35
|
-
const no_regexp_literals_1 = __importDefault(require("../rules/no-regexp-literals"));
|
36
|
-
const no_sparse_arrays_1 = __importDefault(require("../rules/no-sparse-arrays"));
|
37
|
-
const no_template_literals_1 = __importDefault(require("../rules/no-template-literals"));
|
38
|
-
const no_undefined_value_1 = __importDefault(require("../rules/no-undefined-value"));
|
39
|
-
const no_unicode_codepoint_escapes_1 = __importDefault(require("../rules/no-unicode-codepoint-escapes"));
|
40
|
-
const no_useless_escape_1 = __importDefault(require("../rules/no-useless-escape"));
|
41
|
-
const object_curly_newline_1 = __importDefault(require("../rules/object-curly-newline"));
|
42
|
-
const object_curly_spacing_1 = __importDefault(require("../rules/object-curly-spacing"));
|
43
|
-
const object_property_newline_1 = __importDefault(require("../rules/object-property-newline"));
|
44
|
-
const quote_props_1 = __importDefault(require("../rules/quote-props"));
|
45
|
-
const quotes_1 = __importDefault(require("../rules/quotes"));
|
46
|
-
const sort_array_values_1 = __importDefault(require("../rules/sort-array-values"));
|
47
|
-
const sort_keys_1 = __importDefault(require("../rules/sort-keys"));
|
48
|
-
const space_unary_ops_1 = __importDefault(require("../rules/space-unary-ops"));
|
49
|
-
const valid_json_number_1 = __importDefault(require("../rules/valid-json-number"));
|
50
|
-
const no_parsing_error_1 = __importDefault(require("../rules/vue-custom-block/no-parsing-error"));
|
51
|
-
exports.rules = [
|
52
|
-
array_bracket_newline_1.default,
|
53
|
-
array_bracket_spacing_1.default,
|
54
|
-
array_element_newline_1.default,
|
55
|
-
auto_1.default,
|
56
|
-
comma_dangle_1.default,
|
57
|
-
comma_style_1.default,
|
58
|
-
indent_1.default,
|
59
|
-
key_name_casing_1.default,
|
60
|
-
key_spacing_1.default,
|
61
|
-
no_bigint_literals_1.default,
|
62
|
-
no_binary_expression_1.default,
|
63
|
-
no_binary_numeric_literals_1.default,
|
64
|
-
no_comments_1.default,
|
65
|
-
no_dupe_keys_1.default,
|
66
|
-
no_escape_sequence_in_identifier_1.default,
|
67
|
-
no_floating_decimal_1.default,
|
68
|
-
no_hexadecimal_numeric_literals_1.default,
|
69
|
-
no_infinity_1.default,
|
70
|
-
no_irregular_whitespace_1.default,
|
71
|
-
no_multi_str_1.default,
|
72
|
-
no_nan_1.default,
|
73
|
-
no_number_props_1.default,
|
74
|
-
no_numeric_separators_1.default,
|
75
|
-
no_octal_escape_1.default,
|
76
|
-
no_octal_numeric_literals_1.default,
|
77
|
-
no_octal_1.default,
|
78
|
-
no_parenthesized_1.default,
|
79
|
-
no_plus_sign_1.default,
|
80
|
-
no_regexp_literals_1.default,
|
81
|
-
no_sparse_arrays_1.default,
|
82
|
-
no_template_literals_1.default,
|
83
|
-
no_undefined_value_1.default,
|
84
|
-
no_unicode_codepoint_escapes_1.default,
|
85
|
-
no_useless_escape_1.default,
|
86
|
-
object_curly_newline_1.default,
|
87
|
-
object_curly_spacing_1.default,
|
88
|
-
object_property_newline_1.default,
|
89
|
-
quote_props_1.default,
|
90
|
-
quotes_1.default,
|
91
|
-
sort_array_values_1.default,
|
92
|
-
sort_keys_1.default,
|
93
|
-
space_unary_ops_1.default,
|
94
|
-
valid_json_number_1.default,
|
95
|
-
no_parsing_error_1.default,
|
96
|
-
];
|