mirror of https://github.com/nodejs/corepack.git
26 lines
479 B
JavaScript
26 lines
479 B
JavaScript
import yarnpkg from '@yarnpkg/eslint-config';
|
|
|
|
// eslint-disable-next-line arca/no-default-export
|
|
export default [
|
|
{
|
|
ignores: [
|
|
`.yarn`,
|
|
`dist`,
|
|
`shims`,
|
|
`.pnp.*`,
|
|
],
|
|
},
|
|
...yarnpkg,
|
|
{
|
|
rules: {
|
|
'no-restricted-globals': [`error`, {
|
|
name: `fetch`,
|
|
message: `Use fetch from sources/httpUtils.ts`,
|
|
}],
|
|
'@typescript-eslint/no-unused-vars': [`error`, {
|
|
caughtErrors: `none`,
|
|
}],
|
|
},
|
|
},
|
|
];
|