0.6.0 • Published 8 months ago

@solid/eslint-config-base v0.6.0

Weekly downloads
11
License
MIT
Repository
github
Last release
8 months ago

Solid ESLint base configuration

npm

Solid defaults for eslinting.

Install

  1. Install package and its peer-dependencies
    npm install --save-dev @solid/eslint-config-base
    npx install-peerdeps -D @solid/eslint-config-base
  2. Extend @solid/eslint-config-base from .eslintrc.js
    printf 'module.exports = {\n  extends: [ "@solid/eslint-config-base" ]\n};\n' > .eslintrc.js

Linting TypeScript

Requirements

TypeScript configuration files need to match the ./**/tsconfig.*json glob pattern adopted by Solid's ESLint base configuration.

All TypeScript files must be included in a tsconfig.

A common error

A common error is missing a tsconfig for tests.

Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: <TEST_FILE>
The file must be included in at least one of the projects provided.

To fix it, extend tsconfig.json from a tsconfig.test.json that includes the test folder.

printf '{\n  "extends": "./tsconfig.json",\n  "include": [ "test" ]\n}\n' > tsconfig.test.json
0.6.0

8 months ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago