@aerian/eslint-config-preact

13.2.0 • Public • Published

@aerian/eslint-config-preact

This is a sharable ESLint config for Preact. If you're using TypeScript, add @aerian/eslint-config-typescript too.

If you're not using React, try @aerian/eslint-config instead. If you're using React, try @aerian/eslint-config-react

To install, run:

#npm
npm i -D eslint prettier @aerian/eslint-config-preact

#yarn
yarn add -D  eslint prettier @aerian/eslint-config-preact

To use it, create the following .eslintrc.json:

{
    "extends": ["@aerian/eslint-config-preact"]
}

..or if you're using TypeScript:

{
    "extends": [
        "@aerian/eslint-config-preact",
        "@aerian/eslint-config-typescript"
    ]
}

The base formatting uses Prettier, which parses and reformats your code. It runs this through ESLint, so you can run use eslint . --fix to apply Prettier formatting as well as ESLint rules.

Readme

Keywords

none

Package Sidebar

Install

npm i @aerian/eslint-config-preact

Weekly Downloads

4

Version

13.2.0

License

MIT

Unpacked Size

1.46 kB

Total Files

3

Last publish

Collaborators

  • ascorbic
  • s-unya
  • davinux
  • darren.ivey