-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
40 lines (39 loc) · 1012 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
module.exports = {
env: {
browser: true,
},
plugins: ['@typescript-eslint'],
extends: [
'plugin:@next/next/recommended',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:node/recommended',
'plugin:prettier/recommended',
],
settings: {
next: {
rootDir: './app/',
},
'import/resolver': {
node: {
paths: ['app'],
},
},
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
rules: {
'require-await': 'error',
'node/no-unsupported-features/es-syntax': 'off',
'node/no-unpublished-import': 'off',
'node/no-missing-import': 'off',
'node/no-unresolved': 'off',
'prettier/prettier': ['error', { endOfLine: 'auto' }],
},
};