This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
forked from tokens-studio/figma-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
47 lines (47 loc) · 1.5 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
module.exports = {
extends: ['airbnb', 'airbnb-typescript', 'plugin:react-hooks/recommended'],
parserOptions: {
project: './tsconfig.json'
},
ignorePatterns: ['**/*.js'],
globals: {
figma: 'readable',
__html__: 'readable',
describe: 'readable',
it: 'readable',
expect: 'readable',
cy: 'readable',
jest: 'readable',
},
rules: {
"import/prefer-default-export": 0,
"import/extensions": 0,
"no-await-in-loop": 0,
"no-param-reassign": 0,
"class-methods-use-this": 0,
"no-restricted-globals": 0,
"max-len": 0,
"react/function-component-definition": 0,
"react/require-default-props": 0,
"react/jsx-props-no-spreading": 0,
"no-prototype-builtins": 0,
"no-async-promise-executor": 0,
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
"@typescript-eslint/ban-types": [2, {
"types": {
"object": {
"message": "The `Object` type actually means \"any non-nullish value\", so it is marginally better than `unknown`.\n- If you want a type meaning \"any object\", you probably want `Record<string, unknown>` instead.\n- If you want a type meaning \"any value\", you probably want `unknown` instead."
}
},
"extendDefaults": true
}],
"react/jsx-no-bind": [2, {
ignoreDOMComponents: false,
ignoreRefs: false,
allowArrowFunctions: false,
allowFunctions: false,
allowBind: false,
}],
"@typescript-eslint/no-shadow": 1
}
};