-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
43 lines (42 loc) · 1.51 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
/* eslint-disable no-undef */
module.exports = {
extends: 'plugin:@darkobits/ts',
rules: {
'@typescript-eslint/no-misused-promises': 'off',
// 'import/no-unresolved': ['error', {
// ignore: ['^common']
// }],
// 'import/order': ['error', {
// pathGroups: [{
// pattern: '^common',
// group: 'internal'
// }]
// }],
// When using React.FunctionComponent<ComponentProps>, this rule claims that
// ComponentProps is actually the default argument for that type, and tries
// to remove it. This is incorrect and creates errors elsewhere.
'@typescript-eslint/no-unnecessary-type-arguments': 'off',
// Rationale: This project logs to the browser's console for various
// debugging purposes.
'no-console': 'off',
// Rationale: This project uses prop-spreading.
'react/jsx-props-no-spreading': 'off',
// TODO: Update in eslint-plugin.
'react/display-name': 'off',
// Rationale: This project logs to the console for various debugging
// purposes.
// Gets confused by Ramda.
'unicorn/no-array-method-this-argument': 'off',
'unicorn/prefer-spread': 'off',
'unicorn/no-null': 'off',
'unicorn/prevent-abbreviations': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/interactive-supports-focus': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
// TODO: Fix this.
'import/no-unresolved': 'off',
'import/order': 'off',
'max-len': 'off'
},
ignorePatterns: ['sst-env.d.ts']
};