Skip to content

Commit e2012b9

Browse files
committed
feat: Upgrade to ESLint 9
This commit upgrades us to the latest ESLint 9. It adds better linting for TypeScript, in particular. It removes eslint-plugin-airbnb and replaces it with the ‘recommended’ configs for eslint, typescript-eslint, react, and react-hooks. It also adds the eslint stylistic config, and modifies it to match our existing code style. Subsequent commits will fix all the styling issues found in this commit; the repository wasn’t linting very consistently before this, so somehow a bunch of stuff slipped through.
1 parent 5234fc5 commit e2012b9

16 files changed

+2125
-2560
lines changed

.eslintignore

-5
This file was deleted.

.eslintrc.js

-26
This file was deleted.

.npmignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
__mocks__
2-
.eslintignore
3-
./.eslintrc.js
2+
./eslint.config.js
43
.github
54
.gitignore
65
*.test.js

eslint.config.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// @ts-check
2+
3+
const tseslint = require('typescript-eslint');
4+
const eslintConfig = require('./tools/eslint/base.eslint.config.js');
5+
6+
module.exports = tseslint.config(
7+
{
8+
extends: eslintConfig,
9+
},
10+
{
11+
ignores: [
12+
'tools/*',
13+
'test-project/*',
14+
'config/*',
15+
'docs/*',
16+
],
17+
},
18+
);

0 commit comments

Comments
 (0)