-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.mjs
More file actions
32 lines (30 loc) · 1.02 KB
/
eslint.config.mjs
File metadata and controls
32 lines (30 loc) · 1.02 KB
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
import { includeIgnoreFile } from '@eslint/compat';
import oclif from 'eslint-config-oclif';
import prettier from 'eslint-config-prettier';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const gitignorePath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '.gitignore');
/**
* Base ESLint config for the monorepo.
* Each package should have its own eslint.config.mjs that spreads this config
* and adds package-specific overrides.
*/
export default [
includeIgnoreFile(gitignorePath),
{ ignores: ['examples/**'] },
...oclif,
prettier,
{
rules: {
// Allow PascalCase factory/mixin calls (e.g. WithSyncConfigFilePath(Base)) without `new`.
'new-cap': ['error', { capIsNew: false, newIsCap: true }],
camelcase: 'off',
eqeqeq: ['error', 'always', { null: 'ignore' }],
'n/no-unsupported-features/node-builtins': 'off',
'no-await-in-loop': 'off',
'no-eq-null': 'off',
'no-multi-assign': 'off',
'unicorn/filename-case': 'off'
}
}
];