-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
51 lines (51 loc) · 1.38 KB
/
.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
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
env: {
browser: true,
es2024: true,
},
extends: [
// 'eslint:all',
// 'plugin:react/all',
'next/core-web-vitals',
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
'plugin:prettier/recommended',
'plugin:react-hooks/recommended',
'plugin:functional/external-vanilla-recommended',
'plugin:functional/recommended',
'plugin:functional/stylistic',
'plugin:promise/recommended',
],
ignorePatterns: ['node_modules', 'dist', 'amplify'],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
project: './tsconfig.json',
sourceType: 'module',
},
plugins: ['promise', 'functional', 'unicorn', '@typescript-eslint', 'react', 'prettier'],
rules: {
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'never'],
'functional/functional-parameters': 'off',
'functional/no-expression-statements': 'off',
'functional/no-return-void': 'off',
'functional/immutable-data': ['error', { ignoreNonConstDeclarations: true }],
'functional/prefer-immutable-types': 'off',
},
}