mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore: remove unused intro code (#65855)
This commit is contained in:
committed by
GitHub
parent
3a3b5e9395
commit
52e9bd83db
@@ -1,4 +0,0 @@
|
||||
/* eslint-disable filenames-simple/naming-convention */
|
||||
import { createLintStagedConfig } from '@freecodecamp/eslint-config/lintstaged';
|
||||
|
||||
export default createLintStagedConfig(import.meta.dirname);
|
||||
@@ -1,13 +0,0 @@
|
||||
import { configTypeChecked } from '@freecodecamp/eslint-config/base';
|
||||
import globals from 'globals';
|
||||
|
||||
export default [
|
||||
...configTypeChecked,
|
||||
{
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.node // TODO: migrate to ESM and remove globals
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
@@ -1,21 +0,0 @@
|
||||
exports.onCreateNode = function remarkNodeIdentityOnCreateNode(
|
||||
{ node, reporter, actions },
|
||||
{ predicate, identity }
|
||||
) {
|
||||
if (typeof predicate !== 'function') {
|
||||
reporter.panic(
|
||||
'Please supply a predicate function to `gatsby-remark-node-identity`'
|
||||
);
|
||||
}
|
||||
if (typeof identity !== 'string' || identity.length === 0) {
|
||||
reporter.panic(
|
||||
'`gatsby-remark-node-identity` requires an identify string to add to nodes ' +
|
||||
'that match the predicate'
|
||||
);
|
||||
}
|
||||
const { createNodeField } = actions;
|
||||
if (predicate(node)) {
|
||||
createNodeField({ node, name: 'nodeIdentity', value: identity });
|
||||
}
|
||||
return node;
|
||||
};
|
||||
@@ -1,31 +0,0 @@
|
||||
{
|
||||
"name": "@freecodecamp/gatsby-remark-node-identity",
|
||||
"version": "0.0.1",
|
||||
"description": "The freeCodeCamp.org open-source codebase and curriculum",
|
||||
"license": "BSD-3-Clause",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": ">=24",
|
||||
"pnpm": ">=10"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint --max-warnings 0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/freeCodeCamp/freeCodeCamp/issues"
|
||||
},
|
||||
"homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme",
|
||||
"author": "freeCodeCamp <team@freecodecamp.org>",
|
||||
"main": "gatsby-node.js",
|
||||
"peerDependencies": {
|
||||
"gatsby": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@freecodecamp/eslint-config": "workspace:*",
|
||||
"eslint": "^9.39.1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user