forked from belgattitude/nextjs-monorepo-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
47 lines (44 loc) · 1.3 KB
/
.eslintrc.js
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
47
/**
* 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,
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.json',
},
ignorePatterns: [
...getDefaultIgnorePatterns(),
'public/build',
'api/index.js',
'api/index.js.map',
'.cache',
],
extends: [
'@your-org/eslint-config-bases/typescript',
'@your-org/eslint-config-bases/sonar',
'@your-org/eslint-config-bases/regexp',
'@your-org/eslint-config-bases/jest',
'@your-org/eslint-config-bases/react',
'@your-org/eslint-config-bases/tailwind',
'@your-org/eslint-config-bases/rtl',
'@your-org/eslint-config-bases/graphql-schema',
// Specific rules for remix
'@remix-run/eslint-config',
// Apply prettier and disable incompatible rules
'@your-org/eslint-config-bases/prettier',
],
env: {
browser: true,
es6: true,
node: true,
},
rules: {},
overrides: [],
};