@inc-dev/eslint-config-astro

1.1.1 • Public • Published

Inc-Dev Astro ESlint config

Installation instructions

Install packages:

yarn add --dev eslint @inc-dev/eslint-config-astro

Create .eslintrc.cjs:

module.exports = {
  extends: ['@inc-dev/eslint-config-astro'],
  parserOptions: {
    project: require.resolve('./tsconfig.json')
  }
}

VSCode fix

Create file .vscode/settings.json:

{
  "eslint.enable": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "html",
    "vue",
    "markdown",
    "astro"
  ]
}

This will enable VSCode ESlint for astro files (is not enabled by default)

Readme

Keywords

none

Package Sidebar

Install

npm i @inc-dev/eslint-config-astro

Weekly Downloads

1

Version

1.1.1

License

none

Unpacked Size

1.29 kB

Total Files

3

Last publish

Collaborators

  • shabashab