Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: eslint broken in vscode #2920

Merged
merged 2 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
node_modules
dist

# Eslint config file itself
.eslintrc.cjs

# Config files
rollup.config.js
babel.config.js

# Config pkg
packages/config
7 changes: 4 additions & 3 deletions apps/backoffice-v2/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ module.exports = {
callees: ['ctw'],
},
},
parserOptions: {
project: './tsconfig.eslint.json',
},
rules: {
'tailwindcss/no-custom-classname': 'off',
'tailwindcss/classnames-order': 'off',
},
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.eslint.json',
},
};
3 changes: 2 additions & 1 deletion apps/kyb-app/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
module.exports = {
extends: ['@ballerine/eslint-config-react'],
parserOptions: {
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname,
project: 'tsconfig.eslint.json',
},
};
3 changes: 2 additions & 1 deletion apps/workflows-dashboard/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
module.exports = {
extends: ['@ballerine/eslint-config-react'],
parserOptions: {
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname,
project: 'tsconfig.eslint.json',
},
};
3 changes: 2 additions & 1 deletion packages/blocks/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
},
extends: ['@ballerine/eslint-config'],
parserOptions: {
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname,
project: 'tsconfig.eslint.json',
},
};
3 changes: 2 additions & 1 deletion packages/common/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
module.exports = {
extends: ['@ballerine/eslint-config'],
parserOptions: {
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname,
project: 'tsconfig.eslint.json',
},
};
3 changes: 2 additions & 1 deletion packages/ui/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
'tailwindcss/classnames-order': 'off',
},
parserOptions: {
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname,
project: 'tsconfig.eslint.json',
},
};
7 changes: 4 additions & 3 deletions packages/workflow-core/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ['@ballerine/eslint-config'],
parserOptions: {
project: './tsconfig.eslint.json',
},
rules: {
'no-console': 'error',
},
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.eslint.json',
},
};
6 changes: 3 additions & 3 deletions sdks/web-ui-sdk/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ module.exports = {

parserOptions: {
...parserOptions,
// These types of configs should be relative to the package's root

tsconfigRootDir: __dirname,
project: ['./tsconfig.eslint.json'],
project: 'tsconfig.eslint.json',
},

settings: {
...settings,

'svelte3/typescript': require('typescript'),
},
};
5 changes: 3 additions & 2 deletions sdks/workflow-browser-sdk/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ['@ballerine/eslint-config'],
env: {
browser: true,
},
parserOptions: {
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname,
project: 'tsconfig.eslint.json',
},
extends: ['@ballerine/eslint-config'],
};
Loading