Skip to content

Commit b5db863

Browse files
authored
Upgrade ESLint to v10 (#633)
airbnb-base and plugin-import weren't even being used, and we don't really need them for this repo's scope anyway, so they were removed
1 parent ab7d84d commit b5db863

File tree

6 files changed

+411
-1467
lines changed

6 files changed

+411
-1467
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Linter
2+
on:
3+
pull_request:
4+
paths:
5+
- '**.js'
6+
- '!archive/**'
7+
8+
jobs:
9+
lint:
10+
name: Run ESLint
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
- run: npm install
16+
- run: npm run lint

eslint.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const js = require("@eslint/js");
2+
const globals = require("globals");
3+
const { defineConfig, globalIgnores } = require("eslint/config");
4+
5+
module.exports = defineConfig([
6+
globalIgnores(["archive/"]),
7+
{
8+
files: ["generators/**/*.js", "**/*.spec.js", "**/*-solution.js", "*.js"],
9+
plugins: { js },
10+
extends: ["js/recommended"],
11+
languageOptions: { globals: { ...globals.node, ...globals.jest } },
12+
},
13+
]);

0 commit comments

Comments
 (0)