-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
3,280 additions
and
3,479 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
lint-staged | ||
|
||
# unfortunately I have no idea how to use multiple tsconfigs with lint-staged | ||
# and tsc-files modules seems have no solution for that | ||
tsc --noEmit | ||
npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
#!/bin/sh | ||
|
||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
# lint project | ||
yarn run lint | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import tsParser from '@typescript-eslint/parser'; | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import js from '@eslint/js'; | ||
import { FlatCompat } from '@eslint/eslintrc'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}); | ||
|
||
export default [ | ||
{ | ||
ignores: ['eleventy/**/*.js', 'jest/**/*.js', 'src/_data/**/*.js'], | ||
}, | ||
...compat.extends('plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'), | ||
{ | ||
languageOptions: { | ||
parser: tsParser, | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
|
||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
}, | ||
|
||
rules: { | ||
'prettier/prettier': [ | ||
2, | ||
{ | ||
trailingComma: 'es5', | ||
singleQuote: true, | ||
printWidth: 100, | ||
}, | ||
], | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_', | ||
caughtErrorsIgnorePattern: '^_', | ||
}, | ||
], | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/ban-ts-comment': 0, | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,46 +17,46 @@ | |
"serve": "npm-run-all clean --parallel serve:*", | ||
"debug": "DEBUG=* eleventy", | ||
"php:server": "php -S localhost:8000 -t '_site/'", | ||
"postinstall": "husky install" | ||
"prepare": "husky" | ||
}, | ||
"author": "Jiri Bazant ([email protected])", | ||
"license": "MIT", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@11ty/eleventy": "^1.0.0", | ||
"@11ty/eleventy": "^3.0.0", | ||
"@11ty/eleventy-navigation": "^0.3.2", | ||
"@11ty/eleventy-plugin-rss": "^1.1.2", | ||
"@types/jest": "^27.4.1", | ||
"@types/jest": "^29.5.14", | ||
"@types/service-worker-mock": "^2.0.1", | ||
"@types/stats.js": "^0.17.0", | ||
"@types/three": "^0.139.0", | ||
"@typescript-eslint/eslint-plugin": "^5.17.0", | ||
"@typescript-eslint/parser": "^5.17.0", | ||
"@typescript-eslint/eslint-plugin": "^8.16.0", | ||
"@typescript-eslint/parser": "^8.16.0", | ||
"eleventy-plugin-lazyimages": "^2.1.2", | ||
"eslint": "^8.12.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"husky": "^7.0.4", | ||
"jest": "^27.5.1", | ||
"lint-staged": "^12.3.7", | ||
"luxon": "^2.3.1", | ||
"markdown-it": "^12.3.2", | ||
"nock": "^13.2.4", | ||
"eslint": "^9.15.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"husky": "^9.1.7", | ||
"jest": "^29.7.0", | ||
"lint-staged": "^15.2.10", | ||
"luxon": "^3.5.0", | ||
"markdown-it": "^14.1.0", | ||
"nock": "^13.5.6", | ||
"node-fetch": "^2.0.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.6.1", | ||
"sass": "^1.49.10", | ||
"prettier": "^3.4.1", | ||
"sass": "^1.81.0", | ||
"service-worker-mock": "^2.0.5", | ||
"stats.js": "^0.17.0", | ||
"terser-webpack-plugin": "^5.3.1", | ||
"three": "^0.139.2", | ||
"ts-jest": "^27.1.4", | ||
"ts-loader": "^9.2.8", | ||
"ts-jest": "^29.2.5", | ||
"ts-loader": "^9.5.1", | ||
"ts-shader-loader": "^1.0.6", | ||
"typescript": "^4.6.3", | ||
"webpack": "^5.70.0", | ||
"webpack-cli": "^4.9.2", | ||
"webpack-dev-server": "^4.7.4" | ||
"typescript": "^5.7.2", | ||
"webpack": "^5.96.1", | ||
"webpack-cli": "^5.1.4", | ||
"webpack-dev-server": "^5.1.0" | ||
}, | ||
"lint-staged": { | ||
"*.(js|ts)": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"jsTimestamp": 220331, | ||
"cssTimestamp": 220331 | ||
"jsTimestamp": 241129, | ||
"cssTimestamp": 241129 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.