Skip to content

Commit

Permalink
chore: remove unused files, dependencies & exports
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Feb 27, 2024
1 parent 5baac95 commit 055091c
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 238 deletions.
3 changes: 2 additions & 1 deletion bin/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ ${getErrorMessage(error)}`;
}

// Otherwise, call the CLI.
const exitCode = await require("../lib/cli").execute(
const cli = require("../lib/cli");
const exitCode = await cli.execute(
process.argv,
process.argv.includes("--stdin") ? await readStdin() : null,
true
Expand Down
5 changes: 0 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,15 @@
"autoprefixer": "^10.4.13",
"cross-env": "^7.0.3",
"cssnano": "^5.1.14",
"dom-parser": "^0.1.6",
"eleventy-plugin-nesting-toc": "^1.3.0",
"eleventy-plugin-page-assets": "^0.3.0",
"eleventy-plugin-reading-time": "^0.0.1",
"github-slugger": "^1.5.0",
"hyperlink": "^5.0.4",
"imagemin": "^8.0.1",
"imagemin-cli": "^7.0.0",
"js-yaml": "^3.14.1",
"luxon": "^2.4.0",
"markdown-it": "^12.2.0",
"markdown-it-anchor": "^8.1.2",
"markdown-it-container": "^3.0.0",
"netlify-cli": "^10.3.1",
"npm-run-all2": "^5.0.0",
"postcss-cli": "^10.0.0",
"postcss-html": "^1.5.0",
Expand Down
34 changes: 0 additions & 34 deletions lib/cli-engine/xml-escape.js

This file was deleted.

3 changes: 1 addition & 2 deletions lib/config/flat-config-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,5 @@ const flatConfigSchema = {

module.exports = {
flatConfigSchema,
assertIsRuleSeverity,
assertIsRuleOptions
assertIsRuleSeverity
};
1 change: 0 additions & 1 deletion lib/eslint/eslint-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,6 @@ function getCacheFile(cacheFile, cwd) {
//-----------------------------------------------------------------------------

module.exports = {
isGlobPattern,
findFiles,

isNonEmptyString,
Expand Down
4 changes: 1 addition & 3 deletions lib/linter/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
"use strict";

const { Linter } = require("./linter");
const { interpolate } = require("./interpolate");
const SourceCodeFixer = require("./source-code-fixer");

module.exports = {
Linter,

// For testers.
SourceCodeFixer,
interpolate
SourceCodeFixer
};
2 changes: 0 additions & 2 deletions lib/linter/linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ const { LATEST_ECMA_VERSION } = require("../../conf/ecma-version");
// Typedefs
//------------------------------------------------------------------------------

/** @typedef {InstanceType<import("../cli-engine/config-array").ConfigArray>} ConfigArray */
/** @typedef {InstanceType<import("../cli-engine/config-array").ExtractedConfig>} ExtractedConfig */
/** @typedef {import("../shared/types").ConfigData} ConfigData */
/** @typedef {import("../shared/types").Environment} Environment */
/** @typedef {import("../shared/types").GlobalConf} GlobalConf */
Expand Down
2 changes: 0 additions & 2 deletions lib/rules/utils/lazy-loading-rule-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

const debug = require("debug")("eslint:rules");

/** @typedef {import("./types").Rule} Rule */

/**
* The `Map` object that loads each rule when it's accessed.
* @example
Expand Down
58 changes: 0 additions & 58 deletions lib/shared/deprecation-warnings.js

This file was deleted.

9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"node tools/fetch-docs-links.js",
"git add docs/src/_data/further_reading_links.json"
],
"docs/**/*.svg": "npx svgo -r --multipass"
"docs/**/*.svg": "npx -y svgo -r --multipass"
},
"files": [
"LICENSE",
Expand Down Expand Up @@ -102,6 +102,7 @@
"devDependencies": {
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"@types/estree": "^1.0.5",
"@types/node": "^20.11.5",
"@wdio/browser-runner": "^8.14.6",
"@wdio/cli": "^8.14.6",
Expand All @@ -117,12 +118,8 @@
"ejs": "^3.0.2",
"eslint": "file:.",
"eslint-config-eslint": "file:packages/eslint-config-eslint",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-eslint-plugin": "^5.2.1",
"eslint-plugin-internal-rules": "file:tools/internal-rules",
"eslint-plugin-jsdoc": "^46.9.0",
"eslint-plugin-n": "^16.6.0",
"eslint-plugin-unicorn": "^49.0.0",
"eslint-release": "^3.2.2",
"eslump": "^3.0.0",
"esprima": "^4.0.1",
Expand All @@ -141,7 +138,6 @@
"markdownlint": "^0.33.0",
"markdownlint-cli": "^0.39.0",
"marked": "^4.0.8",
"memfs": "^3.0.1",
"metascraper": "^5.25.7",
"metascraper-description": "^5.25.7",
"metascraper-image": "^5.29.3",
Expand All @@ -162,7 +158,6 @@
"sinon": "^11.0.0",
"typescript": "^5.3.3",
"vite-plugin-commonjs": "^0.10.0",
"webdriverio": "^8.14.6",
"webpack": "^5.23.0",
"webpack-cli": "^4.5.0",
"yorkie": "^2.0.0"
Expand Down
1 change: 0 additions & 1 deletion packages/js/src/configs/eslint-recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

/* eslint sort-keys: ["error", "asc"] -- Long, so make more readable */

/** @type {import("../lib/shared/types").ConfigData} */
module.exports = Object.freeze({
rules: Object.freeze({
"constructor-super": "error",
Expand Down
69 changes: 0 additions & 69 deletions tests/_utils/in-memory-fs.js

This file was deleted.

5 changes: 0 additions & 5 deletions tests/_utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
// Requirements
//-----------------------------------------------------------------------------

const {
defineInMemoryFs
} = require("./in-memory-fs");

const { createTeardown, addFile } = require("fs-teardown");

//-----------------------------------------------------------------------------
Expand Down Expand Up @@ -58,6 +54,5 @@ function createCustomTeardown({ cwd, files }) {

module.exports = {
unIndent,
defineInMemoryFs,
createCustomTeardown
};
48 changes: 0 additions & 48 deletions tools/internal-testers/test-parser.js

This file was deleted.

0 comments on commit 055091c

Please sign in to comment.