Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-toml

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-toml - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

lib/rules/comma-style.d.ts

1

lib/configs/standard.d.ts

@@ -7,2 +7,3 @@ declare const _default: {

"toml/array-element-newline": string;
"toml/comma-style": string;
"toml/indent": string;

@@ -9,0 +10,0 @@ "toml/inline-table-curly-spacing": string;

@@ -14,2 +14,3 @@ "use strict";

"toml/array-element-newline": "error",
"toml/comma-style": "error",
"toml/indent": "error",

@@ -16,0 +17,0 @@ "toml/inline-table-curly-spacing": "error",

@@ -30,2 +30,3 @@ import type { RuleModule } from "./types";

"toml/array-element-newline": string;
"toml/comma-style": string;
"toml/indent": string;

@@ -32,0 +33,0 @@ "toml/inline-table-curly-spacing": string;

2

lib/utils/index.js

@@ -17,3 +17,3 @@ "use strict";

var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);

@@ -20,0 +20,0 @@ return result;

@@ -10,2 +10,3 @@ "use strict";

const array_element_newline_1 = __importDefault(require("../rules/array-element-newline"));
const comma_style_1 = __importDefault(require("../rules/comma-style"));
const indent_1 = __importDefault(require("../rules/indent"));

@@ -32,2 +33,3 @@ const inline_table_curly_spacing_1 = __importDefault(require("../rules/inline-table-curly-spacing"));

array_element_newline_1.default,
comma_style_1.default,
indent_1.default,

@@ -34,0 +36,0 @@ inline_table_curly_spacing_1.default,

{
"name": "eslint-plugin-toml",
"version": "0.0.3",
"version": "0.0.4",
"description": "This ESLint plugin provides linting rules for TOML.",

@@ -37,3 +37,5 @@ "main": "lib/index.js",

"eslint-plugin",
"toml"
"toml",
"lint",
"formatter"
],

@@ -55,3 +57,3 @@ "author": "Yosuke Ota",

"devDependencies": {
"@ota-meshi/eslint-plugin": "^0.0.10",
"@ota-meshi/eslint-plugin": "^0.0.11",
"@types/debug": "^4.1.5",

@@ -61,5 +63,5 @@ "@types/eslint": "^7.2.0",

"@types/eslint-visitor-keys": "^1.0.0",
"@types/estree": "^0.0.45",
"@types/estree": "^0.0.46",
"@types/lodash": "^4.14.158",
"@types/mocha": "^7.0.2",
"@types/mocha": "^8.0.0",
"@types/node": "^14.0.13",

@@ -72,3 +74,3 @@ "@types/semver": "^7.3.1",

"eslint": "^7.3.0",
"eslint-config-prettier": "^6.13.0",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-eslint-comments": "^3.2.0",

@@ -85,3 +87,3 @@ "eslint-plugin-eslint-plugin": "^2.3.0",

"espree": "^7.1.0",
"mocha": "^7.0.0",
"mocha": "^8.0.0",
"nyc": "^15.1.0",

@@ -94,4 +96,4 @@ "prettier": "^2.2.1",

"stylelint-plugin-stylus": "^0.9.0",
"ts-node": "^8.10.2",
"typescript": "^3.9.5",
"ts-node": "^9.0.0",
"typescript": "^4.0.0",
"vue-eslint-editor": "^1.1.0",

@@ -98,0 +100,0 @@ "vue-eslint-parser": "^7.3.0",

@@ -14,3 +14,3 @@ # Introduction

## Features
## :name_badge: Features

@@ -31,7 +31,7 @@ This ESLint plugin provides linting rules for [TOML].

## Documentation
## :book: Documentation
See [documents](https://ota-meshi.github.io/eslint-plugin-toml/).
## Installation
## :cd: Installation

@@ -49,3 +49,3 @@ ```bash

## Usage
## :book: Usage

@@ -81,2 +81,16 @@ <!--USAGE_SECTION_START-->

Note that these configurations do not enable ESLint's core rules.
For example, the following style rules can also be used in TOML.
```json5
{
"rules": {
"comma-spacing": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": "error",
"no-trailing-spaces": "error"
}
}
```
See [the rule list](https://ota-meshi.github.io/eslint-plugin-toml/rules/) to get the `rules` that this plugin provides.

@@ -95,3 +109,3 @@

## Editor Integrations
## :computer: Editor Integrations

@@ -119,3 +133,3 @@ ### Visual Studio Code

## Rules
## :white_check_mark: Rules

@@ -155,2 +169,3 @@ <!--RULES_SECTION_START-->

| [toml/array-element-newline](https://ota-meshi.github.io/eslint-plugin-toml/rules/array-element-newline.html) | enforce line breaks between array elements | :wrench: | | :star: |
| [toml/comma-style](https://ota-meshi.github.io/eslint-plugin-toml/rules/comma-style.html) | enforce consistent comma style in array | :wrench: | | :star: |
| [toml/inline-table-curly-spacing](https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-spacing.html) | enforce consistent spacing inside braces | :wrench: | | :star: |

@@ -165,3 +180,3 @@ | [toml/spaced-comment](https://ota-meshi.github.io/eslint-plugin-toml/rules/spaced-comment.html) | enforce consistent spacing after the `#` in a comment | :wrench: | | :star: |

## Contributing
## :beers: Contributing

@@ -191,3 +206,3 @@ Welcome contributing!

## License
## :lock: License

@@ -194,0 +209,0 @@ See the [LICENSE](LICENSE) file for license rights and limitations (MIT).

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc