2.2.1 • Published 1 year ago

@befluentclass/linter v2.2.1

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
1 year ago

@befluent/linter

This library contains configurations for linters.

ESLint

Used rules with descriptions and possible use cases are listed we will create page(Russian).

Rules are grouped by their purpose, there are four grops currently:

  1. Generic JavaScript rules;
  2. Rules for linting React and JSX code;
  3. Rules for linting TypeScript syntax;
  4. Rules used in couple with TypeScript compiler that use type information provided by TypeScript.

There are two presets available currently:

  1. Default preset that combines all four linting rules groups listed before;
  2. Only JS preset supposed to be used in JavaScript-only projects.

You can use these presets directly by extending them in your local ESLint configuration files (the "node_modules" path part is required):

module.exports = {
  extends: ['./node_modules/@befluent/linter'],
}

Also if you work with TypeScript, it's required to specify the path to your project configuration for type information based ESLint rules to work:

module.exports = {
  parserOptions: {
    tsconfigRootDir: __dirname,
    project: './tsconfig.json',
  },
}