diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67221a8..5b22030 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,17 +13,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Use Node.js 18.x + - name: Use Node.js 208.x uses: actions/setup-node@v3.6.0 with: - node-version: 18.x + node-version: 20.x - name: Cache Node.js modules uses: actions/cache@v3 with: path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS - key: ${{ runner.OS }}-node-18.x-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.OS }}-node-20.x-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.OS }}-node-18.x + ${{ runner.OS }}-node-20.x ${{ runner.OS }}- - name: Install dependencies run: yarn install --frozen-lockfile @@ -34,7 +34,7 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [20.x] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0167541..81dd62a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,17 +13,17 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Use Node.js 18.x + - name: Use Node.js 20.x uses: actions/setup-node@v3.6.0 with: - node-version: 18.x + node-version: 20.x - name: Cache Node.js modules uses: actions/cache@v3 with: path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS - key: ${{ runner.OS }}-node-18.x-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.OS }}-node-20.x-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.OS }}-node-18.x + ${{ runner.OS }}-node-20.x ${{ runner.OS }}- - name: Install dependencies run: yarn install --frozen-lockfile diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..61018bd --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,10 @@ +import globals from "globals"; +import pluginJs from "@eslint/js"; +import pluginReactConfig from "eslint-plugin-react/configs/recommended.js"; + + +export default [ + {languageOptions: { globals: globals.browser }}, + pluginJs.configs.recommended, + pluginReactConfig +]; \ No newline at end of file