diff --git a/.eslintrc.json b/.eslintrc.json index 8e4800c..43c168e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,16 +1,14 @@ { - "env": { - "browser": true, - "es2021": true - }, - "extends": "eslint:recommended", - "overrides": [ - ], - "parserOptions": { - "ecmaVersion": "latest", - "sourceType": "module" - }, - "rules": { - }, - "ignorePatterns": ["build/**"] + "env": { + "browser": true, + "es2021": true + }, + "extends": "eslint:recommended", + "overrides": [], + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "rules": {}, + "ignorePatterns": ["build/**"] } diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..d163863 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +build/ \ No newline at end of file diff --git a/package.json b/package.json index c8dfa1f..921cf9e 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,13 @@ "scripts": { "build": "node build.mjs", "lint": "eslint --ext .js,.mjs .", - "lint:fix": "eslint --ext .js,.mjs . --fix" + "lint:fix": "eslint --ext .js,.mjs . --fix", + "pretty": "prettier --write ./**/*.{js,mjs,json}", + "stage": "git add -u" }, "pre-commit": [ + "pretty", + "stage", "lint" ], "dependencies": {