forked from apollographql/apollo-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
27 lines (27 loc) · 900 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import'],
extends: ['plugin:import/typescript'],
overrides: [
{
// Enable import/extensions on all TS files because our ESM builds require
// you to specify local imports as full paths with extensions. We don't
// need this on tests because Jest doesn't require it.
files: ['**/*.ts'],
excludedFiles: '**/__tests__/**/*.ts',
rules: {
// Disallow importing a node module without it being specified in package.json
'import/no-extraneous-dependencies': 'error',
'import/extensions': ['error', 'ignorePackages'],
'@typescript-eslint/consistent-type-imports': [
'error',
{
prefer: 'type-imports',
fixStyle: 'inline-type-imports',
},
],
},
},
],
};