-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
31 lines (28 loc) · 899 Bytes
/
.eslintrc.cjs
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
/**
* Specific eslint rules for this app/package, extends the base rules
* @see https://github.com/belgattitude/nextjs-monorepo-example/blob/main/docs/about-linters.md
*/
// Workaround for https://github.com/eslint/eslint/issues/3458 (re-export of @rushstack/eslint-patch)
require('@armit/eslint-config-bases/patch/modern-module-resolution');
const {
getDefaultIgnorePatterns,
} = require('@armit/eslint-config-bases/helpers');
module.exports = {
root: true,
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.json',
},
ignorePatterns: [...getDefaultIgnorePatterns(), 'test'],
extends: [
'@armit/eslint-config-bases/typescript',
// Apply prettier and disable incompatible rules
'@armit/eslint-config-bases/prettier',
],
rules: {
// optional overrides per project
},
overrides: [
// optional overrides per project file match
],
};