Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Housekeeping #306

Merged
merged 6 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .eslintrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
env:
VALIDATE_ALL_CODEBASE: true
VALIDATE_CSS: false
VALIDATE_JAVASCRIPT_ES: false
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_JSON: false
VALIDATE_TYPESCRIPT_ES: false
VALIDATE_TYPESCRIPT_STANDARD: false
FILTER_REGEX_EXCLUDE: .*(\.min\.|sw\.js|workbox).*
DEFAULT_BRANCH: master
Expand Down
22 changes: 22 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// @ts-check

import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{
ignores: ['**/*.min.js', 'sw.js', 'workbox*.js'],
},

{
languageOptions: {
globals: {
navigator: 'readonly',
window: 'readonly',
},
},
},

eslint.configs.recommended,
...tseslint.configs.recommended,
)
4 changes: 2 additions & 2 deletions ime/index.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/index.min.js.map

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,25 @@
},
"license": "MIT",
"author": "Theo Beers",
"type": "module",
"main": "index.html",
"scripts": {
"check": "tsc",
"compile-ime": "esbuild ts/index-ime.ts --bundle --minify --sourcemap --outfile=ime/index.min.js",
"compile-main": "esbuild ts/index-main.ts --bundle --minify --sourcemap --outfile=js/index.min.js",
"format": "prettier --write .",
"lint": "eslint --fix --ignore-path .prettierignore . && stylelint --fix css/styles-*.css",
"lint": "eslint --fix . && stylelint --fix css/styles-*.css",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"esbuild": "^0.23.0",
"eslint": "^8.57.0",
"prettier": "3.3.2",
"stylelint": "^16.6.1",
"@eslint/js": "^9.9.1",
"@types/eslint__js": "^8.42.3",
"esbuild": "^0.23.1",
"eslint": "^9.9.1",
"prettier": "3.3.3",
"stylelint": "^16.8.2",
"stylelint-config-standard": "^36.0.1",
"typescript": "^5.5.3"
"typescript": "^5.5.4",
"typescript-eslint": "^8.3.0"
}
}
Loading