-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy patheslint.config.js
More file actions
46 lines (45 loc) · 770 Bytes
/
eslint.config.js
File metadata and controls
46 lines (45 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import baseConfig from '@aduth/eslint-config';
import globals from 'globals';
export default [
{
ignores: [
'**/node_modules/**',
'**/build/**',
'**/dist/**',
'**/sprintf-*.js',
],
},
...baseConfig,
{
files: ['packages/**/*.js', 'eslint.config.js', 'rollup.config.js'],
languageOptions: {
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
ecmaFeatures: {
modules: true,
},
},
},
rules: {
camelcase: 'off',
'no-var': 'off',
'prefer-spread': 'off',
},
},
{
languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},
},
},
{
files: ['**/__tests__/**/*.{js,ts,tsx}', '**/benchmark/*.{js,ts,tsx}'],
rules: {
'no-console': 'off',
camelcase: 'off',
},
},
];