Skip to content

Commit

Permalink
v2.3.0 (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki authored Oct 12, 2024
1 parent c9fc51e commit a6343ea
Show file tree
Hide file tree
Showing 17 changed files with 1,468 additions and 1,383 deletions.
18 changes: 0 additions & 18 deletions .eslintrc.cjs

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
36 changes: 36 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// @ts-check
import eslint from "@eslint/js";
import neverthrow from "@ninoseki/eslint-plugin-neverthrow";
import vueTsEslintConfig from "@vue/eslint-config-typescript";
import * as regexpPlugin from "eslint-plugin-regexp";
import pluginVue from "eslint-plugin-vue";
import tseslint from "typescript-eslint";
import vueParser from "vue-eslint-parser";

// eslint-disable-next-line no-undef
const mode = process.env.NODE_ENV === "production" ? "error" : "warn";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs["flat/essential"],
...vueTsEslintConfig(),
regexpPlugin.configs["flat/recommended"],
{
plugins: { neverthrow },
rules: {
"neverthrow/must-use-result": "error",
"no-console": mode,
"no-debugger": mode,
},
languageOptions: {
parser: vueParser,
parserOptions: {
parser: tseslint.parser,
sourceType: "module",
project: "./tsconfig.json",
extraFileExtensions: [".vue"],
},
},
},
);
Loading

0 comments on commit a6343ea

Please sign in to comment.