-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
63 lines (63 loc) · 2.17 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
51
52
53
54
55
56
57
58
59
60
61
62
63
module.exports = {
env: {
es2020: true,
node: true,
},
extends: [
'plugin:@next/next/recommended',
'eslint:recommended',
'prettier',
'plugin:prettier/recommended', // should always be at the end
],
ignorePatterns: [
'**/docs/*.ts',
'**/__generated__/**/*.ts',
'packages/governance-sdk/**',
'**/dist/**',
'**/node_modules/**',
'**/.next/**',
],
overrides: [
{
// As mentioned in the comments, you should extend TypeScript plugins here,
// instead of extending them outside the `overrides`.
// If you don't want to extend any rules, you don't need an `extends` attribute.
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:typescript-sort-keys/recommended',
'prettier',
'plugin:prettier/recommended',
],
files: ['*.ts', '*.tsx'], // Your TypeScript files extension
parserOptions: { project: ['./tsconfig.json'] },
plugins: ['typescript-sort-keys'],
rules: {
'@next/next/no-html-link-for-pages': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
curly: ['error', 'multi-line'],
eqeqeq: ['error', 'always', { null: 'ignore' }],
'simple-import-sort/exports': 'error',
'simple-import-sort/imports': 'error',
'sort-keys': ['error', 'asc', { caseSensitive: true, natural: true }],
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: { tsconfigRootDir: __dirname },
plugins: ['@typescript-eslint', 'prettier', 'simple-import-sort'],
root: true,
rules: {
curly: ['error', 'multi-line'],
eqeqeq: ['error', 'always', { null: 'ignore' }],
'simple-import-sort/exports': 'error',
'simple-import-sort/imports': 'error',
'sort-keys': ['error', 'asc', { caseSensitive: true, natural: true }],
},
}