eslint-plugin-toml 0.10.0 → 0.11.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/README.md +3 -3
- package/lib/configs/flat/base.d.ts +2 -2
- package/lib/configs/flat/recommended.d.ts +6 -6
- package/lib/configs/flat/standard.d.ts +21 -21
- package/lib/index.d.ts +29 -29
- package/lib/meta.d.ts +1 -1
- package/lib/meta.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ npm install --save-dev eslint eslint-plugin-toml
|
|
|
51
51
|
|
|
52
52
|
### Configuration
|
|
53
53
|
|
|
54
|
-
#### New
|
|
54
|
+
#### New Config (`eslint.config.js`)
|
|
55
55
|
|
|
56
56
|
Use `eslint.config.js` file to configure rules. See also: <https://eslint.org/docs/latest/use/configure/configuration-files-new>.
|
|
57
57
|
|
|
@@ -78,9 +78,9 @@ This plugin provides configs:
|
|
|
78
78
|
- `*.configs['flat/recommended']` ... Above, plus rules to prevent errors or unintended behavior.
|
|
79
79
|
- `*.configs['flat/standard']` ... Above, plus rules to enforce the common stylistic conventions.
|
|
80
80
|
|
|
81
|
-
See [the rule list](https://ota-meshi.github.io/eslint-plugin-
|
|
81
|
+
See [the rule list](https://ota-meshi.github.io/eslint-plugin-toml/rules/) to get the `rules` that this plugin provides.
|
|
82
82
|
|
|
83
|
-
#### Legacy Config (
|
|
83
|
+
#### Legacy Config (`.eslintrc`)
|
|
84
84
|
|
|
85
85
|
Use `.eslintrc.*` file to configure rules. See also: <https://eslint.org/docs/latest/use/configure/>.
|
|
86
86
|
|
|
@@ -11,16 +11,16 @@ declare const _default: ({
|
|
|
11
11
|
parser: typeof import("toml-eslint-parser");
|
|
12
12
|
};
|
|
13
13
|
rules: {
|
|
14
|
-
"no-irregular-whitespace":
|
|
15
|
-
"spaced-comment":
|
|
14
|
+
"no-irregular-whitespace": "off";
|
|
15
|
+
"spaced-comment": "off";
|
|
16
16
|
};
|
|
17
17
|
plugins?: undefined;
|
|
18
18
|
} | {
|
|
19
19
|
rules: {
|
|
20
|
-
"toml/no-unreadable-number-separator":
|
|
21
|
-
"toml/precision-of-fractional-seconds":
|
|
22
|
-
"toml/precision-of-integer":
|
|
23
|
-
"toml/vue-custom-block/no-parsing-error":
|
|
20
|
+
"toml/no-unreadable-number-separator": "error";
|
|
21
|
+
"toml/precision-of-fractional-seconds": "error";
|
|
22
|
+
"toml/precision-of-integer": "error";
|
|
23
|
+
"toml/vue-custom-block/no-parsing-error": "error";
|
|
24
24
|
};
|
|
25
25
|
})[];
|
|
26
26
|
export default _default;
|
|
@@ -11,31 +11,31 @@ declare const _default: ({
|
|
|
11
11
|
parser: typeof import("toml-eslint-parser");
|
|
12
12
|
};
|
|
13
13
|
rules: {
|
|
14
|
-
"no-irregular-whitespace":
|
|
15
|
-
"spaced-comment":
|
|
14
|
+
"no-irregular-whitespace": "off";
|
|
15
|
+
"spaced-comment": "off";
|
|
16
16
|
};
|
|
17
17
|
plugins?: undefined;
|
|
18
18
|
} | {
|
|
19
19
|
rules: {
|
|
20
|
-
"toml/array-bracket-newline":
|
|
21
|
-
"toml/array-bracket-spacing":
|
|
22
|
-
"toml/array-element-newline":
|
|
23
|
-
"toml/comma-style":
|
|
24
|
-
"toml/indent":
|
|
25
|
-
"toml/inline-table-curly-spacing":
|
|
26
|
-
"toml/key-spacing":
|
|
27
|
-
"toml/keys-order":
|
|
28
|
-
"toml/no-space-dots":
|
|
29
|
-
"toml/no-unreadable-number-separator":
|
|
30
|
-
"toml/padding-line-between-pairs":
|
|
31
|
-
"toml/padding-line-between-tables":
|
|
32
|
-
"toml/precision-of-fractional-seconds":
|
|
33
|
-
"toml/precision-of-integer":
|
|
34
|
-
"toml/quoted-keys":
|
|
35
|
-
"toml/spaced-comment":
|
|
36
|
-
"toml/table-bracket-spacing":
|
|
37
|
-
"toml/tables-order":
|
|
38
|
-
"toml/vue-custom-block/no-parsing-error":
|
|
20
|
+
"toml/array-bracket-newline": "error";
|
|
21
|
+
"toml/array-bracket-spacing": "error";
|
|
22
|
+
"toml/array-element-newline": "error";
|
|
23
|
+
"toml/comma-style": "error";
|
|
24
|
+
"toml/indent": "error";
|
|
25
|
+
"toml/inline-table-curly-spacing": "error";
|
|
26
|
+
"toml/key-spacing": "error";
|
|
27
|
+
"toml/keys-order": "error";
|
|
28
|
+
"toml/no-space-dots": "error";
|
|
29
|
+
"toml/no-unreadable-number-separator": "error";
|
|
30
|
+
"toml/padding-line-between-pairs": "error";
|
|
31
|
+
"toml/padding-line-between-tables": "error";
|
|
32
|
+
"toml/precision-of-fractional-seconds": "error";
|
|
33
|
+
"toml/precision-of-integer": "error";
|
|
34
|
+
"toml/quoted-keys": "error";
|
|
35
|
+
"toml/spaced-comment": "error";
|
|
36
|
+
"toml/table-bracket-spacing": "error";
|
|
37
|
+
"toml/tables-order": "error";
|
|
38
|
+
"toml/vue-custom-block/no-parsing-error": "error";
|
|
39
39
|
};
|
|
40
40
|
})[];
|
|
41
41
|
export default _default;
|
package/lib/index.d.ts
CHANGED
|
@@ -60,8 +60,8 @@ declare const _default: {
|
|
|
60
60
|
parser: typeof import("toml-eslint-parser");
|
|
61
61
|
};
|
|
62
62
|
rules: {
|
|
63
|
-
"no-irregular-whitespace":
|
|
64
|
-
"spaced-comment":
|
|
63
|
+
"no-irregular-whitespace": "off";
|
|
64
|
+
"spaced-comment": "off";
|
|
65
65
|
};
|
|
66
66
|
plugins?: undefined;
|
|
67
67
|
})[];
|
|
@@ -78,16 +78,16 @@ declare const _default: {
|
|
|
78
78
|
parser: typeof import("toml-eslint-parser");
|
|
79
79
|
};
|
|
80
80
|
rules: {
|
|
81
|
-
"no-irregular-whitespace":
|
|
82
|
-
"spaced-comment":
|
|
81
|
+
"no-irregular-whitespace": "off";
|
|
82
|
+
"spaced-comment": "off";
|
|
83
83
|
};
|
|
84
84
|
plugins?: undefined;
|
|
85
85
|
} | {
|
|
86
86
|
rules: {
|
|
87
|
-
"toml/no-unreadable-number-separator":
|
|
88
|
-
"toml/precision-of-fractional-seconds":
|
|
89
|
-
"toml/precision-of-integer":
|
|
90
|
-
"toml/vue-custom-block/no-parsing-error":
|
|
87
|
+
"toml/no-unreadable-number-separator": "error";
|
|
88
|
+
"toml/precision-of-fractional-seconds": "error";
|
|
89
|
+
"toml/precision-of-integer": "error";
|
|
90
|
+
"toml/vue-custom-block/no-parsing-error": "error";
|
|
91
91
|
};
|
|
92
92
|
})[];
|
|
93
93
|
"flat/standard": ({
|
|
@@ -103,31 +103,31 @@ declare const _default: {
|
|
|
103
103
|
parser: typeof import("toml-eslint-parser");
|
|
104
104
|
};
|
|
105
105
|
rules: {
|
|
106
|
-
"no-irregular-whitespace":
|
|
107
|
-
"spaced-comment":
|
|
106
|
+
"no-irregular-whitespace": "off";
|
|
107
|
+
"spaced-comment": "off";
|
|
108
108
|
};
|
|
109
109
|
plugins?: undefined;
|
|
110
110
|
} | {
|
|
111
111
|
rules: {
|
|
112
|
-
"toml/array-bracket-newline":
|
|
113
|
-
"toml/array-bracket-spacing":
|
|
114
|
-
"toml/array-element-newline":
|
|
115
|
-
"toml/comma-style":
|
|
116
|
-
"toml/indent":
|
|
117
|
-
"toml/inline-table-curly-spacing":
|
|
118
|
-
"toml/key-spacing":
|
|
119
|
-
"toml/keys-order":
|
|
120
|
-
"toml/no-space-dots":
|
|
121
|
-
"toml/no-unreadable-number-separator":
|
|
122
|
-
"toml/padding-line-between-pairs":
|
|
123
|
-
"toml/padding-line-between-tables":
|
|
124
|
-
"toml/precision-of-fractional-seconds":
|
|
125
|
-
"toml/precision-of-integer":
|
|
126
|
-
"toml/quoted-keys":
|
|
127
|
-
"toml/spaced-comment":
|
|
128
|
-
"toml/table-bracket-spacing":
|
|
129
|
-
"toml/tables-order":
|
|
130
|
-
"toml/vue-custom-block/no-parsing-error":
|
|
112
|
+
"toml/array-bracket-newline": "error";
|
|
113
|
+
"toml/array-bracket-spacing": "error";
|
|
114
|
+
"toml/array-element-newline": "error";
|
|
115
|
+
"toml/comma-style": "error";
|
|
116
|
+
"toml/indent": "error";
|
|
117
|
+
"toml/inline-table-curly-spacing": "error";
|
|
118
|
+
"toml/key-spacing": "error";
|
|
119
|
+
"toml/keys-order": "error";
|
|
120
|
+
"toml/no-space-dots": "error";
|
|
121
|
+
"toml/no-unreadable-number-separator": "error";
|
|
122
|
+
"toml/padding-line-between-pairs": "error";
|
|
123
|
+
"toml/padding-line-between-tables": "error";
|
|
124
|
+
"toml/precision-of-fractional-seconds": "error";
|
|
125
|
+
"toml/precision-of-integer": "error";
|
|
126
|
+
"toml/quoted-keys": "error";
|
|
127
|
+
"toml/spaced-comment": "error";
|
|
128
|
+
"toml/table-bracket-spacing": "error";
|
|
129
|
+
"toml/tables-order": "error";
|
|
130
|
+
"toml/vue-custom-block/no-parsing-error": "error";
|
|
131
131
|
};
|
|
132
132
|
})[];
|
|
133
133
|
};
|
package/lib/meta.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name: "eslint-plugin-toml";
|
|
2
|
-
export declare const version: "0.
|
|
2
|
+
export declare const version: "0.11.0";
|
package/lib/meta.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-toml",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "This ESLint plugin provides linting rules for TOML.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@types/debug": "^4.1.5",
|
|
70
70
|
"@types/eslint": "^8.0.0",
|
|
71
71
|
"@types/eslint-scope": "^3.7.0",
|
|
72
|
-
"@types/eslint-visitor-keys": "^
|
|
72
|
+
"@types/eslint-visitor-keys": "^3.0.0",
|
|
73
73
|
"@types/estree": "^1.0.0",
|
|
74
74
|
"@types/lodash": "^4.14.158",
|
|
75
75
|
"@types/mocha": "^10.0.0",
|
|
@@ -79,21 +79,21 @@
|
|
|
79
79
|
"@typescript-eslint/parser": "^6.19.0",
|
|
80
80
|
"cross-env": "^7.0.2",
|
|
81
81
|
"env-cmd": "^10.1.0",
|
|
82
|
-
"esbuild": "^0.
|
|
82
|
+
"esbuild": "^0.20.0",
|
|
83
83
|
"eslint": "^8.0.0",
|
|
84
84
|
"eslint-config-prettier": "^9.0.0",
|
|
85
85
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
86
86
|
"eslint-plugin-eslint-plugin": "^5.0.0",
|
|
87
|
-
"eslint-plugin-json-schema-validator": "^
|
|
87
|
+
"eslint-plugin-json-schema-validator": "^5.0.0",
|
|
88
88
|
"eslint-plugin-jsonc": "^2.0.0",
|
|
89
89
|
"eslint-plugin-markdown": "^3.0.0",
|
|
90
90
|
"eslint-plugin-n": "^16.0.0",
|
|
91
91
|
"eslint-plugin-prettier": "^5.0.0",
|
|
92
92
|
"eslint-plugin-regexp": "^2.0.0",
|
|
93
|
-
"eslint-plugin-toml": "^0.
|
|
93
|
+
"eslint-plugin-toml": "^0.10.0",
|
|
94
94
|
"eslint-plugin-vue": "^9.0.0",
|
|
95
95
|
"eslint-plugin-yml": "^1.0.0",
|
|
96
|
-
"espree": "^
|
|
96
|
+
"espree": "^10.0.0",
|
|
97
97
|
"events": "^3.3.0",
|
|
98
98
|
"mocha": "^10.0.0",
|
|
99
99
|
"nyc": "^15.1.0",
|