Skip to content

Commit

Permalink
fixup! Fix(design-tokens): Fix eslint configuration #DS-1503
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj committed Oct 8, 2024
1 parent f8ee137 commit 4bada64
Showing 1 changed file with 2 additions and 36 deletions.
38 changes: 2 additions & 36 deletions packages/design-tokens/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -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',
},
};

0 comments on commit 4bada64

Please sign in to comment.