-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
38 lines (37 loc) · 933 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
const ERROR = 'error';
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:jsx-a11y/recommended', 'prettier'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
modules: true,
},
},
plugins: ['jsx-a11y'],
rules: {
'default-case': ERROR,
'default-case-last': ERROR,
'dot-notation': [
ERROR,
{
allowKeywords: false,
},
],
'no-confusing-arrow': ERROR,
'no-duplicate-imports': ERROR,
'no-empty-function': ERROR,
'no-negated-condition': ERROR,
'no-self-compare': ERROR,
'no-template-curly-in-string': ERROR,
'jsx-a11y/no-autofocus': 0,
},
env: {
jest: true,
node: true,
browser: true,
es6: true,
},
ignorePatterns: ['node_modules', 'plop-templates', 'packages/design-tokens', 'packages/css'],
};