Skip to content

Commit 64f94ca

Browse files
Update dependency @ota-meshi/eslint-plugin to ^0.12.0 (#192)
* Update dependency @ota-meshi/eslint-plugin to ^0.12.0 * format Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Yosuke Ota <[email protected]>
1 parent b52e6d4 commit 64f94ca

File tree

121 files changed

+6063
-6209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+6063
-6209
lines changed

lib/configs/all.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { rules } from "../utils/rules"
2-
import path from "path"
3-
const base = require.resolve("./base")
1+
import { rules } from "../utils/rules";
2+
import path from "path";
3+
const base = require.resolve("./base");
44
const baseExtend =
5-
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base
5+
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base;
66

7-
const all: Record<string, string> = {}
7+
const all: Record<string, string> = {};
88
for (const rule of rules) {
9-
if (rule.meta.docs.ruleId === "jsonc/sort-array-values") continue
10-
all[rule.meta.docs.ruleId] = "error"
9+
if (rule.meta.docs.ruleId === "jsonc/sort-array-values") continue;
10+
all[rule.meta.docs.ruleId] = "error";
1111
}
1212

1313
export = {
14-
extends: [baseExtend],
15-
rules: {
16-
...all,
17-
},
18-
}
14+
extends: [baseExtend],
15+
rules: {
16+
...all,
17+
},
18+
};

lib/configs/auto-config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/**
22
* @deprecated Use the `jsonc/auto` rule instead.
33
*/
4-
import path from "path"
5-
const base = require.resolve("./base")
4+
import path from "path";
5+
const base = require.resolve("./base");
66
const baseExtend =
7-
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base
7+
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base;
88
export = {
9-
extends: [baseExtend],
10-
rules: {
11-
"jsonc/auto": "error",
12-
},
13-
}
9+
extends: [baseExtend],
10+
rules: {
11+
"jsonc/auto": "error",
12+
},
13+
};

lib/configs/base.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
export = {
2-
plugins: ["jsonc"],
3-
overrides: [
4-
{
5-
files: ["*.json", "*.json5", "*.jsonc"],
6-
parser: require.resolve("jsonc-eslint-parser"),
7-
rules: {
8-
// ESLint core rules known to cause problems with JSON.
9-
strict: "off",
10-
"no-unused-expressions": "off",
11-
},
12-
},
13-
],
14-
}
2+
plugins: ["jsonc"],
3+
overrides: [
4+
{
5+
files: ["*.json", "*.json5", "*.jsonc"],
6+
parser: require.resolve("jsonc-eslint-parser"),
7+
rules: {
8+
// ESLint core rules known to cause problems with JSON.
9+
strict: "off",
10+
"no-unused-expressions": "off",
11+
},
12+
},
13+
],
14+
};

lib/configs/prettier.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
import path from "path"
2-
const base = require.resolve("./base")
1+
import path from "path";
2+
const base = require.resolve("./base");
33
const baseExtend =
4-
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base
4+
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base;
55
export = {
6-
extends: [baseExtend],
7-
rules: {
8-
// eslint-plugin-jsonc rules
9-
"jsonc/array-bracket-newline": "off",
10-
"jsonc/array-bracket-spacing": "off",
11-
"jsonc/array-element-newline": "off",
12-
"jsonc/comma-dangle": "off",
13-
"jsonc/comma-style": "off",
14-
"jsonc/indent": "off",
15-
"jsonc/key-spacing": "off",
16-
"jsonc/no-floating-decimal": "off",
17-
"jsonc/object-curly-newline": "off",
18-
"jsonc/object-curly-spacing": "off",
19-
"jsonc/object-property-newline": "off",
20-
"jsonc/quote-props": "off",
21-
"jsonc/quotes": "off",
22-
"jsonc/space-unary-ops": "off",
23-
},
24-
}
6+
extends: [baseExtend],
7+
rules: {
8+
// eslint-plugin-jsonc rules
9+
"jsonc/array-bracket-newline": "off",
10+
"jsonc/array-bracket-spacing": "off",
11+
"jsonc/array-element-newline": "off",
12+
"jsonc/comma-dangle": "off",
13+
"jsonc/comma-style": "off",
14+
"jsonc/indent": "off",
15+
"jsonc/key-spacing": "off",
16+
"jsonc/no-floating-decimal": "off",
17+
"jsonc/object-curly-newline": "off",
18+
"jsonc/object-curly-spacing": "off",
19+
"jsonc/object-property-newline": "off",
20+
"jsonc/quote-props": "off",
21+
"jsonc/quotes": "off",
22+
"jsonc/space-unary-ops": "off",
23+
},
24+
};
Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
import path from "path"
2-
const base = require.resolve("./base")
1+
import path from "path";
2+
const base = require.resolve("./base");
33
const baseExtend =
4-
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base
4+
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base;
55
export = {
6-
extends: [baseExtend],
7-
rules: {
8-
// eslint-plugin-jsonc rules
9-
"jsonc/comma-dangle": "error",
10-
"jsonc/no-bigint-literals": "error",
11-
"jsonc/no-binary-expression": "error",
12-
"jsonc/no-binary-numeric-literals": "error",
13-
"jsonc/no-comments": "error",
14-
"jsonc/no-dupe-keys": "error",
15-
"jsonc/no-escape-sequence-in-identifier": "error",
16-
"jsonc/no-floating-decimal": "error",
17-
"jsonc/no-hexadecimal-numeric-literals": "error",
18-
"jsonc/no-infinity": "error",
19-
"jsonc/no-multi-str": "error",
20-
"jsonc/no-nan": "error",
21-
"jsonc/no-number-props": "error",
22-
"jsonc/no-numeric-separators": "error",
23-
"jsonc/no-octal-numeric-literals": "error",
24-
"jsonc/no-octal": "error",
25-
"jsonc/no-parenthesized": "error",
26-
"jsonc/no-plus-sign": "error",
27-
"jsonc/no-regexp-literals": "error",
28-
"jsonc/no-sparse-arrays": "error",
29-
"jsonc/no-template-literals": "error",
30-
"jsonc/no-undefined-value": "error",
31-
"jsonc/no-unicode-codepoint-escapes": "error",
32-
"jsonc/no-useless-escape": "error",
33-
"jsonc/quote-props": "error",
34-
"jsonc/quotes": "error",
35-
"jsonc/space-unary-ops": "error",
36-
"jsonc/valid-json-number": "error",
37-
"jsonc/vue-custom-block/no-parsing-error": "error",
38-
},
39-
}
6+
extends: [baseExtend],
7+
rules: {
8+
// eslint-plugin-jsonc rules
9+
"jsonc/comma-dangle": "error",
10+
"jsonc/no-bigint-literals": "error",
11+
"jsonc/no-binary-expression": "error",
12+
"jsonc/no-binary-numeric-literals": "error",
13+
"jsonc/no-comments": "error",
14+
"jsonc/no-dupe-keys": "error",
15+
"jsonc/no-escape-sequence-in-identifier": "error",
16+
"jsonc/no-floating-decimal": "error",
17+
"jsonc/no-hexadecimal-numeric-literals": "error",
18+
"jsonc/no-infinity": "error",
19+
"jsonc/no-multi-str": "error",
20+
"jsonc/no-nan": "error",
21+
"jsonc/no-number-props": "error",
22+
"jsonc/no-numeric-separators": "error",
23+
"jsonc/no-octal-numeric-literals": "error",
24+
"jsonc/no-octal": "error",
25+
"jsonc/no-parenthesized": "error",
26+
"jsonc/no-plus-sign": "error",
27+
"jsonc/no-regexp-literals": "error",
28+
"jsonc/no-sparse-arrays": "error",
29+
"jsonc/no-template-literals": "error",
30+
"jsonc/no-undefined-value": "error",
31+
"jsonc/no-unicode-codepoint-escapes": "error",
32+
"jsonc/no-useless-escape": "error",
33+
"jsonc/quote-props": "error",
34+
"jsonc/quotes": "error",
35+
"jsonc/space-unary-ops": "error",
36+
"jsonc/valid-json-number": "error",
37+
"jsonc/vue-custom-block/no-parsing-error": "error",
38+
},
39+
};
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
import path from "path"
2-
const base = require.resolve("./base")
1+
import path from "path";
2+
const base = require.resolve("./base");
33
const baseExtend =
4-
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base
4+
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base;
55
export = {
6-
extends: [baseExtend],
7-
rules: {
8-
// eslint-plugin-jsonc rules
9-
"jsonc/no-bigint-literals": "error",
10-
"jsonc/no-binary-expression": "error",
11-
"jsonc/no-binary-numeric-literals": "error",
12-
"jsonc/no-dupe-keys": "error",
13-
"jsonc/no-escape-sequence-in-identifier": "error",
14-
"jsonc/no-number-props": "error",
15-
"jsonc/no-numeric-separators": "error",
16-
"jsonc/no-octal-numeric-literals": "error",
17-
"jsonc/no-octal": "error",
18-
"jsonc/no-parenthesized": "error",
19-
"jsonc/no-regexp-literals": "error",
20-
"jsonc/no-sparse-arrays": "error",
21-
"jsonc/no-template-literals": "error",
22-
"jsonc/no-undefined-value": "error",
23-
"jsonc/no-unicode-codepoint-escapes": "error",
24-
"jsonc/no-useless-escape": "error",
25-
"jsonc/space-unary-ops": "error",
26-
"jsonc/vue-custom-block/no-parsing-error": "error",
27-
},
28-
}
6+
extends: [baseExtend],
7+
rules: {
8+
// eslint-plugin-jsonc rules
9+
"jsonc/no-bigint-literals": "error",
10+
"jsonc/no-binary-expression": "error",
11+
"jsonc/no-binary-numeric-literals": "error",
12+
"jsonc/no-dupe-keys": "error",
13+
"jsonc/no-escape-sequence-in-identifier": "error",
14+
"jsonc/no-number-props": "error",
15+
"jsonc/no-numeric-separators": "error",
16+
"jsonc/no-octal-numeric-literals": "error",
17+
"jsonc/no-octal": "error",
18+
"jsonc/no-parenthesized": "error",
19+
"jsonc/no-regexp-literals": "error",
20+
"jsonc/no-sparse-arrays": "error",
21+
"jsonc/no-template-literals": "error",
22+
"jsonc/no-undefined-value": "error",
23+
"jsonc/no-unicode-codepoint-escapes": "error",
24+
"jsonc/no-useless-escape": "error",
25+
"jsonc/space-unary-ops": "error",
26+
"jsonc/vue-custom-block/no-parsing-error": "error",
27+
},
28+
};
Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
import path from "path"
2-
const base = require.resolve("./base")
1+
import path from "path";
2+
const base = require.resolve("./base");
33
const baseExtend =
4-
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base
4+
path.extname(`${base}`) === ".ts" ? "plugin:jsonc/base" : base;
55
export = {
6-
extends: [baseExtend],
7-
rules: {
8-
// eslint-plugin-jsonc rules
9-
"jsonc/no-bigint-literals": "error",
10-
"jsonc/no-binary-expression": "error",
11-
"jsonc/no-binary-numeric-literals": "error",
12-
"jsonc/no-dupe-keys": "error",
13-
"jsonc/no-escape-sequence-in-identifier": "error",
14-
"jsonc/no-floating-decimal": "error",
15-
"jsonc/no-hexadecimal-numeric-literals": "error",
16-
"jsonc/no-infinity": "error",
17-
"jsonc/no-multi-str": "error",
18-
"jsonc/no-nan": "error",
19-
"jsonc/no-number-props": "error",
20-
"jsonc/no-numeric-separators": "error",
21-
"jsonc/no-octal-numeric-literals": "error",
22-
"jsonc/no-octal": "error",
23-
"jsonc/no-parenthesized": "error",
24-
"jsonc/no-plus-sign": "error",
25-
"jsonc/no-regexp-literals": "error",
26-
"jsonc/no-sparse-arrays": "error",
27-
"jsonc/no-template-literals": "error",
28-
"jsonc/no-undefined-value": "error",
29-
"jsonc/no-unicode-codepoint-escapes": "error",
30-
"jsonc/no-useless-escape": "error",
31-
"jsonc/quote-props": "error",
32-
"jsonc/quotes": "error",
33-
"jsonc/space-unary-ops": "error",
34-
"jsonc/valid-json-number": "error",
35-
"jsonc/vue-custom-block/no-parsing-error": "error",
36-
},
37-
}
6+
extends: [baseExtend],
7+
rules: {
8+
// eslint-plugin-jsonc rules
9+
"jsonc/no-bigint-literals": "error",
10+
"jsonc/no-binary-expression": "error",
11+
"jsonc/no-binary-numeric-literals": "error",
12+
"jsonc/no-dupe-keys": "error",
13+
"jsonc/no-escape-sequence-in-identifier": "error",
14+
"jsonc/no-floating-decimal": "error",
15+
"jsonc/no-hexadecimal-numeric-literals": "error",
16+
"jsonc/no-infinity": "error",
17+
"jsonc/no-multi-str": "error",
18+
"jsonc/no-nan": "error",
19+
"jsonc/no-number-props": "error",
20+
"jsonc/no-numeric-separators": "error",
21+
"jsonc/no-octal-numeric-literals": "error",
22+
"jsonc/no-octal": "error",
23+
"jsonc/no-parenthesized": "error",
24+
"jsonc/no-plus-sign": "error",
25+
"jsonc/no-regexp-literals": "error",
26+
"jsonc/no-sparse-arrays": "error",
27+
"jsonc/no-template-literals": "error",
28+
"jsonc/no-undefined-value": "error",
29+
"jsonc/no-unicode-codepoint-escapes": "error",
30+
"jsonc/no-useless-escape": "error",
31+
"jsonc/quote-props": "error",
32+
"jsonc/quotes": "error",
33+
"jsonc/space-unary-ops": "error",
34+
"jsonc/valid-json-number": "error",
35+
"jsonc/vue-custom-block/no-parsing-error": "error",
36+
},
37+
};

0 commit comments

Comments
 (0)