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 CHANGED
@@ -51,7 +51,7 @@ npm install --save-dev eslint eslint-plugin-toml
51
51
 
52
52
  ### Configuration
53
53
 
54
- #### New (ESLint>=v9) Config (Flat Config)
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-yml/rules/) to get the `rules` that this plugin provides.
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 (ESLint<v9)
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
 
@@ -13,8 +13,8 @@ declare const _default: ({
13
13
  parser: typeof parser;
14
14
  };
15
15
  rules: {
16
- "no-irregular-whitespace": string;
17
- "spaced-comment": string;
16
+ "no-irregular-whitespace": "off";
17
+ "spaced-comment": "off";
18
18
  };
19
19
  plugins?: undefined;
20
20
  })[];
@@ -11,16 +11,16 @@ declare const _default: ({
11
11
  parser: typeof import("toml-eslint-parser");
12
12
  };
13
13
  rules: {
14
- "no-irregular-whitespace": string;
15
- "spaced-comment": string;
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": string;
21
- "toml/precision-of-fractional-seconds": string;
22
- "toml/precision-of-integer": string;
23
- "toml/vue-custom-block/no-parsing-error": string;
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": string;
15
- "spaced-comment": string;
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": string;
21
- "toml/array-bracket-spacing": string;
22
- "toml/array-element-newline": string;
23
- "toml/comma-style": string;
24
- "toml/indent": string;
25
- "toml/inline-table-curly-spacing": string;
26
- "toml/key-spacing": string;
27
- "toml/keys-order": string;
28
- "toml/no-space-dots": string;
29
- "toml/no-unreadable-number-separator": string;
30
- "toml/padding-line-between-pairs": string;
31
- "toml/padding-line-between-tables": string;
32
- "toml/precision-of-fractional-seconds": string;
33
- "toml/precision-of-integer": string;
34
- "toml/quoted-keys": string;
35
- "toml/spaced-comment": string;
36
- "toml/table-bracket-spacing": string;
37
- "toml/tables-order": string;
38
- "toml/vue-custom-block/no-parsing-error": string;
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": string;
64
- "spaced-comment": string;
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": string;
82
- "spaced-comment": string;
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": string;
88
- "toml/precision-of-fractional-seconds": string;
89
- "toml/precision-of-integer": string;
90
- "toml/vue-custom-block/no-parsing-error": string;
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": string;
107
- "spaced-comment": string;
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": string;
113
- "toml/array-bracket-spacing": string;
114
- "toml/array-element-newline": string;
115
- "toml/comma-style": string;
116
- "toml/indent": string;
117
- "toml/inline-table-curly-spacing": string;
118
- "toml/key-spacing": string;
119
- "toml/keys-order": string;
120
- "toml/no-space-dots": string;
121
- "toml/no-unreadable-number-separator": string;
122
- "toml/padding-line-between-pairs": string;
123
- "toml/padding-line-between-tables": string;
124
- "toml/precision-of-fractional-seconds": string;
125
- "toml/precision-of-integer": string;
126
- "toml/quoted-keys": string;
127
- "toml/spaced-comment": string;
128
- "toml/table-bracket-spacing": string;
129
- "toml/tables-order": string;
130
- "toml/vue-custom-block/no-parsing-error": string;
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.10.0";
2
+ export declare const version: "0.11.0";
package/lib/meta.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = exports.name = void 0;
4
4
  exports.name = "eslint-plugin-toml";
5
- exports.version = "0.10.0";
5
+ exports.version = "0.11.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-toml",
3
- "version": "0.10.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": "^1.0.0",
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.19.3",
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": "^4.6.1",
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.9.2",
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": "^9.0.0",
96
+ "espree": "^10.0.0",
97
97
  "events": "^3.3.0",
98
98
  "mocha": "^10.0.0",
99
99
  "nyc": "^15.1.0",