From 4bada641815e08a04fd3a3c2d324d69acdc635c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C4=8Curda?= Date: Tue, 8 Oct 2024 13:25:05 +0200 Subject: [PATCH] fixup! Fix(design-tokens): Fix eslint configuration #DS-1503 --- packages/design-tokens/.eslintrc.cjs | 38 ++-------------------------- 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/packages/design-tokens/.eslintrc.cjs b/packages/design-tokens/.eslintrc.cjs index eda1c89421..983c0137d9 100644 --- a/packages/design-tokens/.eslintrc.cjs +++ b/packages/design-tokens/.eslintrc.cjs @@ -1,46 +1,12 @@ module.exports = { - extends: [ - '../../.eslintrc', - 'plugin:@typescript-eslint/recommended', - 'prettier', - 'plugin:prettier/recommended', - '@lmc-eu/eslint-config-jest', - ], - - parser: '@typescript-eslint/parser', // the TypeScript parser we installed earlier + extends: ['../../.eslintrc', '@lmc-eu/eslint-config-typescript', '@lmc-eu/eslint-config-jest'], parserOptions: { ecmaVersion: 'latest', project: './tsconfig.eslint.json', }, - settings: { - 'import/resolver': { - node: { - extensions: ['.js', '.ts'], - }, - }, - }, - - plugins: ['promise', '@typescript-eslint', 'prettier'], rules: { - // disable for `scripts` and `config` - '@typescript-eslint/no-var-requires': 'off', - // allow ++ in for loops - 'no-plusplus': ['error', { allowForLoopAfterthoughts: true }], - // disabled due to typescript - 'no-shadow': 'off', - '@typescript-eslint/no-shadow': ['error', { allow: ['resolve', 'reject', 'done', 'next', 'error'] }], - // disabled due to typescript - 'no-use-before-define': 'off', - '@typescript-eslint/no-use-before-define': 'warn', - // We are using typescript, disable jsdoc rules - 'jsdoc/require-jsdoc': 'off', - 'jsdoc/require-returns': 'off', - 'jsdoc/require-param-type': 'off', - // allow reassign in properties - 'no-param-reassign': ['warn', { props: false }], - // support monorepos - 'import/no-extraneous-dependencies': ['error', { packageDir: ['./', '../../'] }], + 'prettier/prettier': 'off', }, };