Skip to content

Commit

Permalink
chore: remove unused files, config and packges (speced#3400)
Browse files Browse the repository at this point in the history
* chore: remove all trace of jquery

* chore(eslintrc): use ignorePatterns instead of .eslintignore

* remove all trace of jshint

* remove unused karma-mocha dependency

* remove unnecessary script from package.json

* cleanup eslintrc

* missed jquery in package.json
  • Loading branch information
sidvishnoi authored Mar 23, 2021
1 parent 42e41ec commit 38deff3
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 235 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

10 changes: 1 addition & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"ignorePatterns": ["builds/**", "js/**"],
"env": {
"browser": true,
"es6": true,
"node": true,
"jquery": true,
"amd": true,
"worker": true
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
Expand Down Expand Up @@ -43,13 +42,6 @@
"spaced-comment": ["error", "always", { "block": { "balanced": true } }]
},
"globals": {
"flushIframes": true,
"hyperHTML": true,
"makeBasicConfig": true,
"makeDefaultBody": true,
"makeRSDoc": true,
"makeStandardOps": true,
"pickRandomsFromList": true,
"respecConfig": true
},
"plugins": ["import", "prettier"]
Expand Down
23 changes: 0 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,11 @@
"hyperhtml": "^2.34.0",
"idb": "^6.0.0",
"jasmine": "^3.7.0",
"jquery": "^3.6.0",
"karma": "^6.2.0",
"karma-chrome-launcher": "^3.1.0",
"karma-firefox-launcher": "^2.1.0",
"karma-jasmine": "^4.0.1",
"karma-jasmine-html-reporter": "^1.5.4",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-safari-launcher": "^1.0.0",
"loading-indicator": "^2.0.0",
Expand All @@ -65,7 +63,6 @@
"build:geonovum-debug": "npm run build:geonovum -- --debug",
"build:geonovum": "node ./tools/builder.js geonovum",
"build:w3c-debug": "npm run build:w3c -- --debug",
"build:w3c-with-jquery": "node ./tools/builder.js w3c-common",
"build:w3c": "node ./tools/builder.js w3c",
"build:dini-debug": "node run build:dini -- --debug",
"build:dini": "node ./tools/builder.js dini",
Expand All @@ -78,7 +75,7 @@
"start": "node ./tools/dev-server.js",
"test:build": "jasmine --random=false ./tests/test-build.js",
"test:headless": "node ./tests/headless.js",
"test:karma": "npm run karma"
"test:karma": "karma start --single-run"
},
"dependencies": {
"colors": "^1.4.0",
Expand Down
107 changes: 0 additions & 107 deletions profiles/w3c-common.js

This file was deleted.

1 change: 0 additions & 1 deletion src/core/biblio.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Configuration:
// - localBiblio: override or supplement the official biblio with your own.

/* jshint jquery: true */
import { biblioDB } from "./biblio-db.js";
import { createResourceHint } from "./utils.js";

Expand Down
1 change: 0 additions & 1 deletion src/core/ui.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @ts-check
// Module core/ui
// Handles the ReSpec UI
/* jshint laxcomma:true */
// XXX TODO
// - look at other UI things to add
// - list issues
Expand Down
1 change: 0 additions & 1 deletion src/dini/style.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @ts-check
/* jshint strict: true, browser:true, jquery: true */
// Module dini/style
// Inserts a link to the appropriate W3C style for the specification's maturity level.
// CONFIGURATION
Expand Down
10 changes: 0 additions & 10 deletions src/type-helper.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ interface Window {
(deps: string[], callback: (...modules: any[]) => void): void;
modules: { [dep: string]: any };
};
$: JQueryStatic;
jQuery: JQueryStatic;
axe?: {
run(context: Node, options: any): Promise<{ violations: AxeViolation[] }>;
};
Expand Down Expand Up @@ -96,14 +94,6 @@ declare namespace Intl {
}
}

interface JQuery {
renameElement(name: string): JQuery<any>;
getDfnTitles(): string[];
linkTargets(): import("./core/utils.js").LinkTarget[];
makeID(pfx?: string, txt?: string, noLC?: boolean): string;
allTextNodes(exclusions: string[]): Text[];
}

interface BiblioData {
aliasOf?: string;
id?: string;
Expand Down
1 change: 0 additions & 1 deletion src/w3c/style.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @ts-check
/* jshint strict: true, browser:true, jquery: true */
// Module w3c/style
// Inserts a link to the appropriate W3C style for the specification's maturity level.
// CONFIGURATION
Expand Down
4 changes: 1 addition & 3 deletions tests/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ env:
jasmine: true
node: false
extends:
- 'plugin:jasmine/recommended'
- "plugin:jasmine/recommended"
parserOptions:
sourceType: module
rules:
Expand All @@ -14,5 +14,3 @@ rules:
jasmine/prefer-jasmine-matcher: 2
plugins:
- jasmine
globals:
expectAsync: true
72 changes: 0 additions & 72 deletions tests/.jshintrc

This file was deleted.

0 comments on commit 38deff3

Please sign in to comment.