Fix/tools scripts tsconfig and linting (#406)

* [Tools] Fix linting

* [Tools] Fix yargs tsc issue
This commit is contained in:
schroda
2023-08-15 22:20:24 +02:00
committed by GitHub
parent ebf6c99dee
commit 2f795b9d38
2 changed files with 9 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ module.exports = {
extends: ['airbnb', 'airbnb-typescript', 'prettier'],
plugins: ['@typescript-eslint', 'no-relative-import-paths', 'prettier', 'header'],
parserOptions: {
project: './tsconfig.json',
project: ['./tsconfig.json', './tools/scripts/tsconfig.json'],
},
overrides: [
{
@@ -30,8 +30,8 @@ module.exports = {
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
// just why
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-no-bind': 'off',
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
@@ -57,9 +57,10 @@ module.exports = {
},
},
{
files: ['tools/script/.*'],
files: ['tools/scripts/*'],
rules: {
'no-relative-import-paths/no-relative-import-paths': 'off'
'no-relative-import-paths/no-relative-import-paths': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
},
},
],

View File

@@ -3,6 +3,9 @@
"include": [
"./*"
],
"compilerOptions": {
"moduleResolution": "node"
},
"ts-node": {
// these options are overrides used only by ts-node
// same as the --compilerOptions flag and the TS_NODE_COMPILER_OPTIONS environment variable