aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-10-25 22:27:28 +0200
committerGitHub <[email protected]>2023-10-25 20:27:28 +0000
commit129c86fb64e60c828fe6423b739f65576bd6e335 (patch)
tree0ba152e7e0a1c63aae52c1082892cbe32220808b
parent74f6bbd193decda92359c21548c81e68f4550729 (diff)
downloadfaker-129c86fb64e60c828fe6423b739f65576bd6e335.tar.xz
faker-129c86fb64e60c828fe6423b739f65576bd6e335.zip
infra(eslint): config cleanup (#2468)
-rw-r--r--.eslintrc.js14
1 files changed, 3 insertions, 11 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index eb82b380..bf9afd39 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -15,26 +15,21 @@ module.exports = defineConfig({
reportUnusedDisableDirectives: true,
extends: [
'eslint:recommended',
- 'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:prettier/recommended',
+ 'plugin:deprecation/recommended',
'plugin:jsdoc/recommended-typescript-error',
'plugin:unicorn/recommended',
],
- parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.json'],
- sourceType: 'module',
warnOnUnsupportedTypeScriptVersion: false,
},
- plugins: ['@typescript-eslint', 'prettier', 'deprecation', 'jsdoc'],
rules: {
eqeqeq: ['error', 'always', { null: 'ignore' }],
'no-else-return': 'error',
- 'prefer-template': 'error',
'no-restricted-globals': ['error', 'Intl'],
-
- 'deprecation/deprecation': 'error',
+ 'prefer-template': 'error',
'unicorn/no-nested-ternary': 'off', // incompatible with prettier
'unicorn/no-null': 'off', // incompatible with TypeScript
@@ -97,11 +92,9 @@ module.exports = defineConfig({
'error',
{ ignoreParameters: true },
],
- '@typescript-eslint/no-unsafe-argument': 'error',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
- '@typescript-eslint/no-unsafe-return': 'error',
'@typescript-eslint/padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: 'block-like', next: '*' },
@@ -113,8 +106,7 @@ module.exports = defineConfig({
],
'@typescript-eslint/unbound-method': 'off',
- 'jsdoc/no-types': 'error',
- 'jsdoc/require-jsdoc': 'off',
+ 'jsdoc/require-jsdoc': 'off', // Enabled only for src/**/*.ts
'jsdoc/require-returns': 'off',
'jsdoc/sort-tags': [
'error',