Skip to content

Commit a786e47

Browse files
Create eslint.config.mjs
1 parent 65b9982 commit a786e47

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// @ts-check
2+
3+
import config from '@exercism/eslint-config-javascript';
4+
import maintainersConfig from '@exercism/eslint-config-javascript/maintainers.mjs';
5+
6+
import globals from 'globals';
7+
8+
export default [
9+
...config,
10+
...maintainersConfig,
11+
{
12+
files: maintainersConfig[1].files,
13+
rules: {
14+
'jest/expect-expect': ['warn', { assertFunctionNames: ['expect*'] }],
15+
},
16+
},
17+
{
18+
files: ['scripts/**/*.mjs'],
19+
languageOptions: {
20+
globals: {
21+
...globals.node,
22+
},
23+
},
24+
},
25+
// <<inject-rules-here>>
26+
{
27+
ignores: [
28+
// # Protected or generated
29+
'/.appends/**/*',
30+
'/.github/**/*',
31+
'/.vscode/**/*',
32+
33+
// # Binaries
34+
'/bin/*',
35+
36+
// # Configuration
37+
'/config',
38+
'/babel.config.js',
39+
40+
// # Typings
41+
'/exercises/**/global.d.ts',
42+
'/exercises/**/env.d.ts',
43+
],
44+
},
45+
];

0 commit comments

Comments
 (0)