Skip to content

Commit

Permalink
ci: add types to js eslint config wd-270 (#295)
Browse files Browse the repository at this point in the history
* feat: replace cjs with js in 11ty wd-182

* ci: add types to js eslint config wd-270
  • Loading branch information
what1s1ove authored Dec 31, 2023
1 parent c620f82 commit 9228127
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
10 changes: 10 additions & 0 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"npm": "10.x.x"
},
"scripts": {
"_prettier": "prettier \"**/*.{json,md,yml,njk,css,js,cjs,d.ts}\"",
"postinstall": "simple-git-hooks",
"start": "concurrently -k -p \"{name}: {time}\" -n \"CLIENT,SERVER\" -c \"green,blue\" \"npm:start:client\" \"npm:start:server\"",
"start:client": "NODE_ENV=development npx @11ty/eleventy --serve --quiet",
Expand All @@ -17,7 +18,7 @@
"ci:lint:commit": "npx @commitlint/cli --edit",
"ci:lint:fs": "ls-lint",
"ci:lint:editor": "editorconfig-checker",
"ci:lint:format": "npm run ci:format -- --check",
"ci:lint:format": "npm run _prettier -- --check",
"ci:lint:trash": "knip --config knip.config.js",
"ci:lint:markup": "w3c-html-validator \"build\"",
"ci:lint:html": "npx @linthtml/linthtml \"source/**/*.njk\"",
Expand All @@ -26,7 +27,7 @@
"ci:lint:js": "eslint \"**/*.js\"",
"ci:lint:type": "tsc --noEmit",
"ci:lint": "concurrently \"npm:ci:lint:*(!commit)\"",
"ci:format": "prettier --write \"**/*.{json,md,yml,njk,css,js,cjs,d.ts}\""
"ci:format": "npm run _prettier -- --write"
},
"dependencies": {
"form-payload": "0.0.8"
Expand All @@ -41,6 +42,7 @@
"@linthtml/linthtml": "0.9.5",
"@ls-lint/ls-lint": "2.2.2",
"@types/eslint": "8.44.7",
"@types/eslint__js": "8.42.3",
"@types/html-minifier-terser": "7.0.2",
"@types/lint-staged": "13.2.2",
"@typescript-eslint/eslint-plugin": "6.14.0",
Expand Down
10 changes: 0 additions & 10 deletions source/scripts/packages.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,6 @@ declare module 'eslint-plugin-jsdoc' {
}
}

declare module '@eslint/js' {
import { type Linter } from 'eslint'

const configs: Record<'recommended', Required<Linter.FlatConfig>>

export default {
configs,
}
}

declare module '@typescript-eslint/eslint-plugin' {
import { type Linter } from 'eslint'

Expand Down

0 comments on commit 9228127

Please sign in to comment.