-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.cjs
38 lines (36 loc) · 989 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
28
29
30
31
32
33
34
35
36
37
38
const { resolve } = require('node:path')
const project = resolve(process.cwd(), 'tsconfig.json')
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
env: {
jest: false,
},
ignorePatterns: [".eslintrc.cjs"],
extends: [
require.resolve('@vercel/style-guide/eslint/node'),
require.resolve('@vercel/style-guide/eslint/typescript'),
'plugin:prettier/recommended'
],
parserOptions: {
project,
},
settings: {
'import/resolver': {
typescript: {
project
},
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx']
}
}
},
rules: {
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/no-shadow': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/require-await': 'off',
'import/no-extraneous-dependencies': 'off'
}
};