0.1.3 • Published 4 years ago

@droplit/eslint-config v0.1.3

Weekly downloads
20
License
ISC
Repository
-
Last release
4 years ago

About

ESLint settings for JavaScript, Typescript and Vue projects.

eslint-plugin-vue and @typescript-eslint/eslint-plugin are optional and not required. If either or both are installed, then Vue/Typescript rules will be applied accordingly.

Setup

Add @droplit/eslint-config to your dev dependencies:

{
    "devDependencies": {
        "@droplit/eslint-config": "^0.0.2",
    }
}

Add required peer dependencies:

npm install --save-dev eslint
# or
yarn add -D eslint

Add any or all optional peer dependencies:

npm install --save-dev @typescript-eslint/eslint-plugin eslint-plugin-vue typescript
# or
yarn add -D @typescript-eslint/eslint-plugin eslint-plugin-vue typescript

Usage

In you eslint config for typescript projects:

{
    parser: "@typescript-eslint/parser",
    parserOptions: {
        project: "./tsconfig.json",
        sourceType: "module",
    },
    extends: [
        "@droplit/eslint-config",
    ],
    rules: {
        // Override settings here
    }
}

In you eslint config for typescript/vue projects:

{
    parser: "vue-eslint-parser",
    parserOptions: {
        parser: "@typescript-eslint/parser",
        project: "./tsconfig.json",
        sourceType: "module",
        extraFileExtensions: [".vue"]
    },
    extends: [
        "@droplit/eslint-config",
    ],
    rules: {
        // Override settings here
    }
}

Development

Clone repo and use npm link to test changes to a local project.

Linting rules:

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago