-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (36 loc) · 942 Bytes
/
.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
module.exports = {
extends: [
'@mate-academy/eslint-config-react-typescript',
// 'stylelint-config-standard', // CSS
],
rules: {
'no-console': 'error',
'max-len': ['error', {
ignoreTemplateLiterals: true,
ignoreComments: true,
}],
'jsx-a11y/label-has-associated-control': ['error', {
assert: 'either',
}],
// 'semi': ["error", "always"],
// React
'react/prop-types': 0,
'react/self-closing-comp': 0,
'react/display-name': 0,
// JavaScript
semi: 0,
'no-proto': 0,
'no-unused-vars': 0,
// TypeScript
'@typescript-eslint/no-unused-vars': ['error'],
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/semi': ['error'],
},
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
// 'stylelint', // CSS
],
};