-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Fix(design-tokens): Fix eslint configuration #DS-1503
- Loading branch information
Showing
1 changed file
with
2 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
}; |