-
Notifications
You must be signed in to change notification settings - Fork 119
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
chore: fix all remaining eslint errors #1010
Changes from all commits
19eb3a1
e4f360e
bcf8662
09a6fda
a546dcd
ab9a0e5
ae40e1d
f64306f
7ef94f2
5c433a9
1b741cc
605c8b9
08f5712
b6acd5b
6533a41
de253a9
6ee4bb8
93c3b86
2466e0f
0dbf815
db7d564
efcfda7
05d9146
775b026
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
**/node_modules/**/* | ||
**/lib/* | ||
packages/api-client/src/types/GraphQL.ts | ||
packages/api-client/server | ||
packages/composables/lib | ||
packages/api-client/lib | ||
packages/theme/static/sw.js | ||
.eslintrc.js |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ module.exports = { | |
parser: '@typescript-eslint/parser', | ||
project: [ | ||
resolve(__dirname, './tsconfig.json'), | ||
resolve(__dirname, './packages/api-client/tsconfig.json'), | ||
resolve(__dirname, './packages/composables/tsconfig.json'), | ||
resolve(__dirname, './packages/api-client/tsconfig.eslint.json'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a new .tsconfig file solely for eslint because typescript-eslint won't scan files unless a file is part of a typescript project. But some files are intentionally ignored by the regular tsconfig.json (when you don't want to include some types in the library dist published on NPM) |
||
resolve(__dirname, './packages/composables/tsconfig.eslint.json'), | ||
resolve(__dirname, './packages/theme/tsconfig.json'), | ||
resolve(__dirname, './packages/theme/tests/e2e/tsconfig.json'), | ||
], | ||
|
@@ -48,6 +48,12 @@ module.exports = { | |
"promise/catch-or-return": "off", // conflicts with Cypress.Chainable | ||
"promise/always-return": "off", | ||
} | ||
}, | ||
{ | ||
"files": ["internals/**/*"], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't want to figure out whether I can use regular imports in eslint because I'll be removing the "many small internal eslint packages" soon |
||
"rules": { | ||
"unicorn/prefer-module": "off", | ||
} | ||
} | ||
] | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
// eslint-disable-next-line unicorn/prefer-module | ||
module.exports = { extends: ['@commitlint/config-conventional'] }; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// eslint-disable-next-line unicorn/prefer-module | ||
module.exports = { | ||
presets: [ | ||
['@babel/preset-env', { | ||
targets: { | ||
node: 'current' | ||
} | ||
}] | ||
] | ||
node: 'current', | ||
}, | ||
}], | ||
], | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"exclude": [ | ||
"lib", | ||
"node_modules" | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(build output dirs)