1.0.9 • Published 7 months ago

@paleite/eslint-config v1.0.9

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
7 months ago

@paleite/eslint-config

This package includes @paleite's shareable ESLint configuration.

Features

  • Defines a set of base rules common across all projects
  • Automatically adds React rules for projects that use React
  • Automatically adds TypeScript rules for projects written in TypeScript
  • Automatically disables conflicting rules

Installation

$ yarn add -D @paleite/eslint-config

Configuration

.eslintrc:

{ "extends": ["@paleite"] }

NB: If you're using this config for a TypeScript project, make sure you also follow the TypeScript-instructions

For React projects

No additional steps necessary.

For TypeScript projects

You must define the absolute path to each tsconfig.json-file in the parserOptions.project property. Prefer using globs over specifying each folder explicitly, because specifying each one individually makes the linter perform a lot slower.

eslint.config.js:

module.exports = {
  extends: ["@paleite"],
  parserOptions: {
    project: ["./packages/*/tsconfig.json", "./tsconfig.eslint.json"],
    tsconfigRootDir: __dirname,
  },
};

For more information on how to use this, see @typescript-eslint's official documentation

1.0.10-canary.4

7 months ago

1.0.10-canary.5

7 months ago

1.0.10-canary.1

1 year ago

1.0.10-canary.2

1 year ago

1.0.10-canary.3

1 year ago

1.0.10-canary.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.1-canary.9

2 years ago

0.0.1-canary.8

2 years ago

0.0.1-canary.7

2 years ago

0.0.1-canary.6

2 years ago

0.0.1-canary.5

2 years ago

0.0.1-canary.4

2 years ago

0.0.1-canary.3

2 years ago

0.0.1-canary.2

2 years ago

0.0.1-canary.1

3 years ago