Skip to content

Commit

Permalink
Merge branch 'next' into infra/unicorn/prefer-array-some
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Oct 26, 2023
2 parents e169fbc + 129c86f commit 91e76d6
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -96,11 +91,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: '*' },
Expand All @@ -112,8 +105,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',
Expand Down

0 comments on commit 91e76d6

Please sign in to comment.