This package has been deprecated

Author message:

This package is no longer being maintained. You should not use it.

@w33ble/eslint-config-stencil

1.0.2 • Public • Published

eslint-config-stencil

eslint config for stencil component projects.

GitHub license npm Project Status

Features

  • Uses eslint-airbnb-airbnb-base
  • Supports typescript
  • Lints JSX

Usage

Start by installing the package and its peer dependencies.

yarn add -D eslint-config-stecil
npx install-peerdeps --dev eslint-config-stecil

Then create an eslint file with at least the following:

{
  "extends": [
    "stencil"
  ],
  "parserOptions": {
    "project": "./tsconfig.json",
    "tsconfigRootDir": "."
  }
}

Lastly, add the following script to your package.json file:

"lint": "eslint src --ext .ts --ext .tsx --ignore-pattern 'src/**/*.d.ts'"

Now you can use yarn lint or npm run lint to lint your component code.

Configuration

This config makes use of eslint-plugin-idiomatic-jsx, which you can use to require or prevent attributes on specific components, as well as prevent components from being used. This requires that you add some rules to your eslintrc file. You can find more about configuring these features in the eslint-plugin-idiomatic-jsx docs.

Code formatting

This config does not include a formatter, so you'll need to add one yourself. Prettier is a fine choice.

License

MIT © w33ble

Readme

Keywords

none

Package Sidebar

Install

npm i @w33ble/eslint-config-stencil

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

8.49 kB

Total Files

9

Last publish

Collaborators

  • w33ble