-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.js
43 lines (42 loc) · 925 Bytes
/
.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
// https://www.npmjs.com/package/eslint-config-moon
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.eslint.json',
tsconfigRootDir: __dirname,
},
extends: [
'moon',
'moon/node',
// Uncomment when targeting browsers
// 'moon/browser',
// Uncomment if using React
// 'moon/react',
// Uncomment if using Solid
// 'moon/solid',
],
rules: {
// Doesn't understand the new TS 4.7 imports
'import/no-unresolved': 'off',
// We need to keep "index" around in imports for extensions
'import/no-useless-path-segments': 'off',
},
overrides: [
{
files: ['apps/**/*'],
rules: {
// App pages require default exports
'import/no-default-export': 'off',
},
},
{
files: ['*.config.js', '.eslintrc.js'],
rules: {
'sort-keys': 'off',
'import/no-commonjs': 'off',
'unicorn/prefer-module': 'off',
},
},
],
};