1.3.1 • Published 12 months ago

eslint-plugin-koenvanmeijeren-rules-for-qwik v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

eslint-plugin-rules-for-qwik

ESLint plugin with rules for programming in Qwik.

Installation

Install the plugin with npm:

npm install --save-dev koenvanmeijeren-eslint-plugin-rules-for-qwik

Usage

In your .eslintrc file, add the rules to your plugins:

{
  "plugins": [
    "koenvanmeijeren-rules-for-qwik"
  ],
  "rules": {
    "koenvanmeijeren-rules-for-qwik/no-direct-scss-imports": "error",
    "koenvanmeijeren-rules-for-qwik/require-generic-props": "error"
    "koenvanmeijeren-rules-for-qwik/require-document-head": ["error", {
      "excludedFiles": ["**/exclude-this-file.ts", "**/exclude-this-directory/**"]
    }]
  }
}

Release new version

To release a new version, run the following commands:

npm login
npm run release

Rules

no-direct-scss-imports

This rule checks for direct imports of SCSS files and suggests using importing the SCSS in global files instead.

require-document-head

This rule requires the document head for all routes.

Added to comply with WCAG standards.

require-generic-props

This rule requires generic props for all components.

Added to fix a weird error in Qwik component library.

License

This project is licensed under the MIT License.

1.3.1

12 months ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.1.3

1 year ago

1.2.1

1 year ago

1.1.2

1 year ago

1.0.0

2 years ago