Skip to content

Commit 54c4cb6

Browse files
committed
Merge branch 'copilot/fix-6a7c9edd-41fe-4b80-a792-ea2d39c64464' into use_styled_react_import
2 parents 5e43f47 + dd1e33e commit 54c4cb6

25 files changed

+1261
-8475
lines changed

.eslintignore

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

.eslintrc.js

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

eslint.config.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
'use strict'
2+
3+
const globals = require('globals')
4+
5+
/**
6+
* @type {import('eslint').Linter.FlatConfig[]}
7+
*/
8+
module.exports = [
9+
{
10+
ignores: ['node_modules/**', '.git/**'],
11+
},
12+
{
13+
languageOptions: {
14+
ecmaVersion: 'latest',
15+
sourceType: 'commonjs',
16+
globals: {
17+
...globals.commonjs,
18+
...globals.node,
19+
},
20+
},
21+
rules: {
22+
// Basic rules for the repository
23+
'no-unused-vars': [
24+
'error',
25+
{
26+
varsIgnorePattern: '^_',
27+
},
28+
],
29+
'no-shadow': 'off',
30+
'no-undef': 'error',
31+
},
32+
},
33+
{
34+
files: ['**/*.test.js'],
35+
languageOptions: {
36+
globals: {
37+
...globals.jest,
38+
},
39+
},
40+
},
41+
{
42+
files: ['eslint.config.js'],
43+
rules: {
44+
'no-undef': 'off', // Allow require() in config file
45+
},
46+
},
47+
]

0 commit comments

Comments
 (0)