/
.eslintrc.cjs
53 lines (52 loc) · 1.47 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
const path = require('path');
/**
* @type {import('eslint').ESLint.ConfigData}
*/
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:@next/next/recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime'
],
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['tsconfig.eslint.json', './apps/*/tsconfig.json', './packages/*/tsconfig.json'],
sourceType: 'module'
},
env: {
es6: true
},
plugins: ['@typescript-eslint'],
ignorePatterns: [
// Don't lint this file
'.eslintrc.cjs',
// Codegen output files
'/packages/paradeigma-graphql/src/resolvers-types.ts',
'/packages/paradeigma-graphql/src/sdk.ts'
],
reportUnusedDisableDirectives: true,
rules: {
eqeqeq: 'error',
'@next/next/no-html-link-for-pages': [
'error',
[
path.join(__dirname, 'apps/paradeigma-apollo-app/pages/'),
path.join(__dirname, 'apps/paradeigma-web-app/pages/')
]
],
'react/prop-types': 'off'
},
settings: {
next: {
rootDir: ['./apps/paradeigma-apollo-app/', './apps/paradeigma-web-app/']
},
react: {
version: 'detect'
}
}
};