3.2.1 • Published 2 years ago

@prazdevs/eslint-config-typescript v3.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

TypeScript

Get this config by extending @prazdevs/eslint-config-typescript.

Only looking for JavaScript linting? Check out @prazdevs/eslint-config-javascript.

Prerequisites


This config needs the following dependencies installed:

'eslint': '>=7.30.0',

Plugins


This config uses the following plugins:

'@typescript-eslint/eslint-plugin',

Extends


This config extends the following configs:

'@prazdevs/eslint-config-javascript',
'plugin:@typescript-eslint/recommended',

Rules


This config adds/modifies the following rules:

// eslint rules
'brace-style': 'off',
'comma-dangle': 'off',
'comma-spacing': 'off',
'func-call-spacing': 'off',
'indent': 'off',
'no-redeclare': 'off',
'no-unused-vars': 'off',
'object-curly-spacing': 'off',
'quotes': 'off',
'semi': 'off',
'space-before-function-paren': 'off',

// extension rules
'@typescript-eslint/brace-style': [
  'error',
  '1tbs',
  { allowSingleLine: true },
],
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
'@typescript-eslint/comma-spacing': [
  'error',
  { before: false, after: true },
],
'@typescript-eslint/func-call-spacing': ['error', 'never'],
'@typescript-eslint/indent': [
  'error',
  2,
  { SwitchCase: 1, VariableDeclarator: 'first', outerIIFEBody: 1 },
],
'@typescript-eslint/no-redeclare': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/object-curly-spacing': ['error', 'always'],
'@typescript-eslint/quotes': ['error', 'single'],
'@typescript-eslint/semi': ['error', 'never'],
'@typescript-eslint/space-before-function-paren': ['error', 'always'],

// typescript
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'warn',
'@typescript-eslint/member-delimiter-style': [
  'error',
  { multiline: { delimiter: 'none' } },
],
'@typescript-eslint/no-empty-function': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-non-null-assertion': 'warn',
'@typescript-eslint/type-annotation-spacing': ['error', {}],
3.2.1

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.2.0

3 years ago

2.1.5

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

1.2.0

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago