Fix/tools scripts tsconfig and linting (#406)
* [Tools] Fix linting * [Tools] Fix yargs tsc issue
This commit is contained in:
11
.eslintrc.js
11
.eslintrc.js
@@ -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 }],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user