mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-28 18:45:51 -05:00
Add ESLint
This commit is contained in:
parent
97920ff7f6
commit
7c445d0bc9
4 changed files with 1045 additions and 8 deletions
|
@ -10,7 +10,12 @@ tasks:
|
|||
- setup: |
|
||||
cd gamja
|
||||
npm install --include=dev
|
||||
- build: |
|
||||
cd gamja
|
||||
npm run build
|
||||
- lint: |
|
||||
cd gamja
|
||||
npm run lint
|
||||
- deploy: |
|
||||
cd gamja/dist
|
||||
[ "$(git rev-parse HEAD)" = "$(git rev-parse origin/master)" ] || complete-build
|
||||
|
|
22
eslint.config.js
Normal file
22
eslint.config.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
import globals from "globals";
|
||||
import js from "@eslint/js";
|
||||
|
||||
export default [
|
||||
js.configs.recommended,
|
||||
{
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
"process": "readonly",
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"no-case-declarations": "off",
|
||||
"no-unused-vars": ["error", {
|
||||
args: "none",
|
||||
caughtErrorsIgnorePattern: "^_",
|
||||
destructuredArrayIgnorePattern: "^_",
|
||||
}],
|
||||
},
|
||||
},
|
||||
];
|
1020
package-lock.json
generated
1020
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -7,8 +7,11 @@
|
|||
"preact": "10.17.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.11.1",
|
||||
"@parcel/packager-raw-url": "^2.0.0",
|
||||
"@parcel/transformer-webmanifest": "^2.0.0",
|
||||
"eslint": "^9.11.1",
|
||||
"globals": "^15.9.0",
|
||||
"node-static": "^0.7.11",
|
||||
"parcel": "^2.0.0",
|
||||
"split": "^1.0.1",
|
||||
|
@ -16,7 +19,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"start": "node ./dev-server.js",
|
||||
"build": "parcel build"
|
||||
"build": "parcel build",
|
||||
"lint": "eslint"
|
||||
},
|
||||
"private": true,
|
||||
"targets": {
|
||||
|
|
Loading…
Reference in a new issue