0.1.3 • Published 3 days ago

eslint-config-abbot-nuxt3 v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 days ago

ESLint-Config-abbot-nuxt3

eslint-config-abbot-nuxt3

⚠️Before You Install This

This ESlint rules is for abbot nuxt3 and TS project.

Installation

npm i --save-dev eslint eslint-config-abbot-nuxt3
# or if you're using yarn
yarn add -D eslint eslint-config-abbot-nuxt3

Usage

In your eslintrc file you can extend like this

module.exports = {
  extends: ["abbot-nuxt3"],
};

The ESLint rules that I used here

 rules: {
    "import/default": ["off"],
    "no-irregular-whitespace": ["off"],
    "no-var": ["warn"],
    camelcase: ["off"],
    "prettier/prettier": [
      "error",
      {
        singleQuote: false,
      },
    ],
    "vue/block-lang": [
      "error",
      {
        script: {
          lang: "ts",
        },
      },
    ],
    "vue/block-order": [
      "error",
      {
        order: ["template", "script", "style"],
      },
    ],
    "vue/component-api-style": [
      "error",
      ["composition", "options"], // "script-setup", "composition", "composition-vue2", or "options"
    ],
    "vue/component-name-in-template-casing": [
      "error",
      "kebab-case",
      {
        registeredComponentsOnly: false,
        ignores: [],
      },
    ],
    "vue/component-options-name-casing": [
      "error",
      "PascalCase", // "PascalCase" | "kebab-case" | "camelCase"
    ],
    "vue/custom-event-name-casing": [
      "error",
      "kebab-case", // "PascalCase" | "kebab-case" | "camelCase"
      {
        ignores: [],
      },
    ],
    "vue/prop-name-casing": ["error", "camelCase"], // "camelCase" | "snake_case"
    "vue/attributes-order": ["warn"],
    "vue/padding-line-between-blocks": ["error", "always"],
    "vue/no-v-model-argument": ["off"],
  },
0.1.2

3 days ago

0.1.3

3 days ago

0.1.1

4 months ago

0.1.0

6 months ago

0.0.9

6 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago