-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
106 lines (105 loc) · 2.97 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*
* Firestarter.io
*
* Copyright (C) 2020 Blue Ohana, Inc.
* All rights reserved.
* The information in this software is subject to change without notice and
* should not be construed as a commitment by Blue Ohana, Inc.
*
*/
module.exports = {
env: {
browser: true,
es6: true,
jest: true,
},
extends: [
"airbnb",
"prettier/react",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
overrides: [
{
files: ["*.ts", "*.tsx"],
parserOptions: {
project: ["./tsconfig.json"],
},
},
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: "module",
},
plugins: ["react", "react-hooks", "prettier", "@typescript-eslint"],
rules: {
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/aria-role": [0],
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/no-static-element-interactions": [0],
"jsx-a11y/label-has-associated-control": [0],
"import/no-unresolved": "off",
"react/button-has-type": [0],
"no-underscore-dangle": "off",
"react/jsx-filename-extension": [
1,
{ extensions: [".js", ".jsx", ".tsx", ".ts"] },
],
"import/order": [1],
"react/destructuring-assignment": [0],
// 'react/prefer-stateless-function': [1, { ignorePureComponents: true }],
// 'react/prop-types': [0],
"import/extensions": "off",
"@typescript-eslint/no-var-requires": [0],
"@typescript-eslint/ban-ts-comment": [0],
// 'prettier/prettier': ['error'],
// 'react/require-default-props': [0],
// 'react/no-unused-prop-types': [0],
// 'react/no-array-index-key': [0],
"react/jsx-props-no-spreading": "off",
"react/require-default-props": [0],
// 'react/default-props-match-prop-types': [0],
"react/no-array-index-key": [0],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"no-shadow": [0],
"@typescript-eslint/ban-types": "off",
camelcase: [0],
// '@typescript-eslint/no-non-null-assertion': 'off',
"import/prefer-default-export": [0],
// 'import/no-extraneous-dependencies': [
// 'error',
// {
// devDependencies: ['**/*.test.ts', '**/*.test.tsx', '**/setupTests.ts'],
// },
// ],
// '@typescript-eslint/no-empty-function': [0],
"no-plusplus": [0],
"no-console": [0],
"lines-between-class-members": [0],
// 'no-underscore-dangle': [0],
// },
// settings: {
// react: {
// createClass: 'createReactClass',
// pragma: 'React',
// version: 'detect',
// flowVersion: 'detect',
// },
// propWrapperFunctions: [
// 'forbidExtraProps',
// { property: 'freeze', object: 'Object' },
// { property: 'myFavoriteWrapper' },
// ],
},
};