-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
50 lines (50 loc) · 1.26 KB
/
.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
44
45
46
47
48
49
50
/* eslint-env node */
module.exports = {
env: { browser: true, node: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:react-hooks/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'next/core-web-vitals',
'prettier',
],
overrides: [
{
files: ['packages/compiler/__tests__/*.ts'],
plugins: ['jest'],
rules: {
'@typescript-eslint/unbound-method': 'off',
'jest/unbound-method': 'error',
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
project: 'packages/*/tsconfig.json',
},
plugins: ['@typescript-eslint'],
root: true,
rules: {
'no-console': ['error', { allow: ['warn', 'error'] }],
camelcase: 'error',
'@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '_' }],
'@typescript-eslint/explicit-function-return-type': ['error'],
'import/newline-after-import': 2,
'import/order': [
'error',
{
'newlines-between': 'always',
},
],
},
settings: {
next: {
rootDir: 'packages/examples/',
},
},
};