chore: simplify eslint configuration (#44347)

* chore: extend import/recommended

* chore: use recommended lint rules

* refactor: apply lint rules

* chore: drop used config
This commit is contained in:
Oliver Eyton-Williams
2021-12-02 01:01:12 +01:00
committed by GitHub
parent 4a4aa1f2f9
commit efba2e777d
16 changed files with 46 additions and 217 deletions

View File

@ -31,7 +31,6 @@ function createChallengeNode(challenge, reporter) {
type: challenge.challengeType === 7 ? 'CertificateNode' : 'ChallengeNode'
};
/* eslint-disable prefer-object-spread/prefer-object-spread */
return JSON.parse(
JSON.stringify(
Object.assign(

View File

@ -29,7 +29,7 @@ exports.sourceNodes = function sourceChallengesSourceNodes(
}
const { createNode } = actions;
const watcher = chokidar.watch(curriculumPath, {
ignored: /(^|[\/\\])\../,
ignored: /(^|[/\\])\../,
ignoreInitial: true,
persistent: true,
usePolling: true,