-
-
Notifications
You must be signed in to change notification settings - Fork 215
/
.eslintrc.cjs
39 lines (36 loc) · 1.25 KB
/
.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
32
33
34
35
36
37
38
39
/**
* 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('@your-org/eslint-config-bases/patch/modern-module-resolution');
const {
getDefaultIgnorePatterns,
} = require('@your-org/eslint-config-bases/helpers');
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.json',
},
ignorePatterns: [...getDefaultIgnorePatterns(), '/storybook-static'],
extends: [
'@your-org/eslint-config-bases/typescript',
'@your-org/eslint-config-bases/import-x',
'@your-org/eslint-config-bases/regexp',
'@your-org/eslint-config-bases/sonar',
'@your-org/eslint-config-bases/jest',
'@your-org/eslint-config-bases/rtl',
'@your-org/eslint-config-bases/storybook',
'@your-org/eslint-config-bases/react',
// Apply prettier and disable incompatible rules
'@your-org/eslint-config-bases/prettier-plugin',
],
rules: {
// optional overrides per project
},
overrides: [
// optional overrides per project file match
],
};