obsohtml 1.9.7 → 1.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/eslint.config.js +16 -0
- package/package.json +9 -2
- /package/{LICENSE → LICENSE.txt} +0 -0
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/obsohtml) [](https://github.com/j9t/obsohtml/actions) [](https://socket.dev/npm/package/obsohtml)
|
|
4
4
|
|
|
5
|
-
ObsoHTML is a Node.js script designed to scan HTML, PHP, Nunjucks, Twig, JavaScript, and TypeScript files for obsolete
|
|
5
|
+
ObsoHTML is a Node.js script designed to scan HTML, PHP, Nunjucks, Twig, JavaScript, and TypeScript files for obsolete and proprietary HTML elements and attributes. It helps you identify and update deprecated HTML code to be sure to use web standards.
|
|
6
6
|
|
|
7
|
-
ObsoHTML has inherent limitations and may not find all obsolete
|
|
7
|
+
ObsoHTML has inherent limitations and may not find all obsolete elements and attributes. If you run into a problem, please [file an issue](https://github.com/j9t/obsohtml/issues).
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -78,7 +78,7 @@ node bin/obsohtml.js -f ../path/to/folder
|
|
|
78
78
|
|
|
79
79
|
## Output
|
|
80
80
|
|
|
81
|
-
The script will output messages to the console indicating any obsolete
|
|
81
|
+
The script will output messages to the console indicating any obsolete elements or attributes found in the scanned files, along with the file paths where they were detected.
|
|
82
82
|
|
|
83
83
|
The script exits with code `1` if any obsolete HTML is found, and `0` if none is found, making it suitable for use in CI pipelines.
|
|
84
84
|
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import globals from 'globals';
|
|
3
|
+
|
|
4
|
+
export default [
|
|
5
|
+
{
|
|
6
|
+
ignores: ['node_modules/**']
|
|
7
|
+
},
|
|
8
|
+
js.configs.recommended,
|
|
9
|
+
{
|
|
10
|
+
languageOptions: {
|
|
11
|
+
ecmaVersion: 'latest',
|
|
12
|
+
sourceType: 'module',
|
|
13
|
+
globals: globals.node,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
];
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"commander": "^14.0.0"
|
|
8
8
|
},
|
|
9
|
-
"description": "
|
|
9
|
+
"description": "HTML checker for obsolete and proprietary elements and attributes",
|
|
10
10
|
"funding": "https://github.com/j9t/obsohtml?sponsor=1",
|
|
11
11
|
"homepage": "https://github.com/j9t/obsohtml",
|
|
12
12
|
"keywords": [
|
|
@@ -21,10 +21,17 @@
|
|
|
21
21
|
"type": "git",
|
|
22
22
|
"url": "git+https://github.com/j9t/obsohtml.git"
|
|
23
23
|
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@eslint/js": "^10.0.0",
|
|
26
|
+
"eslint": "^10.0.0",
|
|
27
|
+
"globals": "^17.0.0"
|
|
28
|
+
},
|
|
24
29
|
"scripts": {
|
|
30
|
+
"lint": "eslint .",
|
|
31
|
+
"lint:fix": "eslint . --fix",
|
|
25
32
|
"start": "node ./bin/obsohtml.js",
|
|
26
33
|
"test": "node --test bin/obsohtml.test.js"
|
|
27
34
|
},
|
|
28
35
|
"type": "module",
|
|
29
|
-
"version": "1.9.
|
|
36
|
+
"version": "1.9.9"
|
|
30
37
|
}
|
/package/{LICENSE → LICENSE.txt}
RENAMED
|
File without changes
|