diff --git a/README.md b/README.md index c6d848e9b..c2a1c6753 100644 --- a/README.md +++ b/README.md @@ -276,6 +276,7 @@ These rules relate to style guidelines, and are therefore quite subjective: | Rule ID | Description | | |:--------|:------------|:---| +| [@ota-meshi/svelte/first-attribute-linebreak](https://ota-meshi.github.io/eslint-plugin-svelte/rules/first-attribute-linebreak.html) | enforce the location of first attribute | :wrench: | | [@ota-meshi/svelte/html-quotes](https://ota-meshi.github.io/eslint-plugin-svelte/rules/html-quotes.html) | enforce quotes style of HTML attributes | :wrench: | | [@ota-meshi/svelte/indent](https://ota-meshi.github.io/eslint-plugin-svelte/rules/indent.html) | enforce consistent indentation | :wrench: | | [@ota-meshi/svelte/max-attributes-per-line](https://ota-meshi.github.io/eslint-plugin-svelte/rules/max-attributes-per-line.html) | enforce the maximum number of attributes per line | :wrench: | diff --git a/docs/rules/README.md b/docs/rules/README.md index 6a2d2cb02..edd61c36b 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -44,6 +44,7 @@ These rules relate to style guidelines, and are therefore quite subjective: | Rule ID | Description | | |:--------|:------------|:---| +| [@ota-meshi/svelte/first-attribute-linebreak](./first-attribute-linebreak.md) | enforce the location of first attribute | :wrench: | | [@ota-meshi/svelte/html-quotes](./html-quotes.md) | enforce quotes style of HTML attributes | :wrench: | | [@ota-meshi/svelte/indent](./indent.md) | enforce consistent indentation | :wrench: | | [@ota-meshi/svelte/max-attributes-per-line](./max-attributes-per-line.md) | enforce the maximum number of attributes per line | :wrench: | diff --git a/docs/rules/first-attribute-linebreak.md b/docs/rules/first-attribute-linebreak.md new file mode 100644 index 000000000..3f6f033fc --- /dev/null +++ b/docs/rules/first-attribute-linebreak.md @@ -0,0 +1,79 @@ +--- +pageClass: "rule-details" +sidebarDepth: 0 +title: "@ota-meshi/svelte/first-attribute-linebreak" +description: "enforce the location of first attribute" +--- + +# @ota-meshi/svelte/first-attribute-linebreak + +> enforce the location of first attribute + +- :exclamation: **_This rule has not been released yet._** +- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule. + +## :book: Rule Details + +This rule aims to enforce a consistent location for the first attribute. + + + + + + +```svelte + + + + +