forked from nkowaokwu/igbo_api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
68 lines (68 loc) · 2.01 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
64
65
66
67
68
module.exports = {
env: {
es2021: true,
node: true,
jest: true,
},
ignorePatterns: ['**/functions/*.js'],
// Prettier plugin should be the last to always override preceding plugins
extends: ['next', 'airbnb', 'plugin:cypress/recommended', 'prettier'],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['eslint-plugin-jsx-a11y', 'cypress'],
rules: {
'function-call-argument-newline': ['off'],
'function-paren-newline': ['off'],
'import/prefer-default-export': ['off'],
'import/extensions': ['off'],
'newline-per-chained-call': ['off'],
'no-console': ['off'],
'no-nested-ternary': ['off'],
'no-promise-executor-return': ['off'],
'no-underscore-dangle': ['off'],
'react/jsx-filename-extension': ['off'],
'react/function-component-definition': ['off'],
'react/jsx-props-no-spreading': ['off'],
'react/no-danger': ['off'],
'@next/next/no-html-link-for-pages': ['off'],
'@next/next/no-img-element': ['off'],
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
extends: [
'next',
'airbnb',
'airbnb-typescript',
'plugin:cypress/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
project: ['./tsconfig.json'],
},
plugins: ['@typescript-eslint', 'eslint-plugin-jsx-a11y', 'cypress'],
rules: {
'import/prefer-default-export': ['off'],
'import/extensions': ['warn'],
'max-len': ['error', { code: 120 }],
'no-nested-ternary': ['off'],
'@typescript-eslint/no-unused-vars': [
'warn',
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-empty-function': ['warn'],
'prefer-const': 'error',
},
},
],
};