Skip to content

Commit

Permalink
fix: fix engines to "^12.22.0 || ^14.17.0 || >=16.0.0" (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjuan authored Oct 19, 2023
1 parent 0fb394d commit d078d7e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 205 deletions.
200 changes: 3 additions & 197 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"typescript": "^4.4.4"
},
"engines": {
"node": ">=8.10.0"
"node": "^12.22.0 || ^14.17.0 || >=16.0.0",
"npm": ">=7"
},
"husky": {
"hooks": {
Expand Down
4 changes: 2 additions & 2 deletions .eslintrc.js → packages/eslint-plugin/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
extends: ["eslint:recommended"],
plugins: ["jest", "node"],
parserOptions: {
ecmaVersion: 2020,
ecmaVersion: 9,
},
env: {
node: true,
Expand All @@ -15,7 +15,7 @@ module.exports = {
},
overrides: [
{
files: ["packages/*/tests/**/*.test.js"],
files: ["*.test.js"],
env: {
"jest/globals": true,
},
Expand Down
6 changes: 4 additions & 2 deletions packages/eslint-plugin/lib/rules/no-restricted-attr-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ module.exports = {
node.attributes.forEach((attr) => {
if (
!attr.key ||
typeof attr.value?.value !== "string" ||
!attr.key?.value
!attr.key.value ||
!attr.value ||
typeof attr.value.value !== "string"
) {
return;
}

const matched = checkers.find((checker) =>
checker.test(attr.key.value, attr.value.value)
);
Expand Down
5 changes: 3 additions & 2 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@
},
"scripts": {
"test": "jest --coverage",
"check:ts": "tsc"
"check:ts": "tsc",
"lint": "eslint . --ext .js"
},
"bugs": {
"url": "https://github.com/yeonjuan/html-eslint/issues"
},
"engines": {
"node": ">=8.10.0"
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
},
"keywords": [
"eslint",
Expand Down
1 change: 0 additions & 1 deletion packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"dev": "next dev",
"build": "next build && next export && touch ./out/.nojekyll && echo 'yeonjuan.github.io' > ./out/CNAME",
"start": "next start",
"lint": "next lint",
"ts": "tsc --noEmit"
},
"dependencies": {
Expand Down

0 comments on commit d078d7e

Please sign in to comment.