1.0.18 • Published 8 months ago

@obamafoundation/eslint-plugin-of-svelte v1.0.18

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

eslint-plugin-of-svelte

ObamaFoundation ESLint Plugin

Installation

Make sure you've already installed ESLint in the project where you intend to use this linter.

npm i eslint --save-dev

Next, install @obamafoundation/eslint-plugin-of-svelte:

npm install @obamafoundation/eslint-plugin-of-svelte --save-dev

Usage

Add @obamafoundation/eslint-plugin-of-svelte to the plugins section of your .eslintrc configuration file:

{
    "plugins": [
        "@obamafoundation/of-svelte",
    ]
}

Then configure the rules you want to use under the rules section. You must use the "@obamafoundation/of-svelte" prefix for your rule.

{
    "rules": {
        "@obamafoundation/of-svelte/no-placeholder-values": "error",
    }
}

Rules

The writing of rules relies heavily on the AST specification outlined by ESLint. For details on the Svelte AST implementation, you can visit the svelte AST guide for svelte-eslint-parser.

NameDescription
no-placeholder-valuesDo not apply placeholder values to inputs.

Releasing to npm

Prior to merging with the main branch, first increment version in the PR branch:

npm version <version number>

Then push to create new Github tag:

git push --follow-tags

The workflow to push to npm will only run when merged to the main branch

1.0.18

8 months ago

1.0.17

8 months ago

1.0.16

8 months ago

1.0.15

8 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.0

8 months ago