diff --git a/.gitattributes b/.gitattributes index 1087379..d824aee 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,6 +8,7 @@ *.html text eol=lf *.scss text eol=lf *.ts text eol=lf +*.mjs text eol=lf *.ico binary diff --git a/.github/actions/ci/action.yml b/.github/actions/ci/action.yml index 49ca9e2..fda9e19 100644 --- a/.github/actions/ci/action.yml +++ b/.github/actions/ci/action.yml @@ -21,11 +21,10 @@ runs: shell: bash run: pnpm format-check - # TODO: Add ESLint - # - name: Run ESLint - # shell: bash - # run: pnpm lint-ts - # + - name: Run ESLint + shell: bash + run: pnpm lint-ts + # TODO: Add Stylelint # - name: Run Stylelint # shell: bash diff --git a/.lintstagedrc.json b/.lintstagedrc.json index b4a9c4f..9380bda 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,4 +1,5 @@ { "*.md": "markdownlint-cli2 --fix", - "*.{yml,yaml,json,html,scss,ts}": "prettier -w" + "*.{yml,yaml,json,html,scss}": "prettier -w", + "*.{mjs,ts}": ["prettier -w", "eslint --fix"] } diff --git a/.prettierignore b/.prettierignore index acc9ca6..7d52dda 100644 --- a/.prettierignore +++ b/.prettierignore @@ -8,6 +8,7 @@ !*.html !*.scss !*.ts +!*.mjs node_modules/ .husky/_/ diff --git a/.run/lint-ts.run.xml b/.run/lint-ts.run.xml new file mode 100644 index 0000000..c842aac --- /dev/null +++ b/.run/lint-ts.run.xml @@ -0,0 +1,12 @@ + + + + + +