-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy path.eslintrc.js
53 lines (53 loc) · 1.65 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
module.exports = {
root: true,
extends: ['@pixi/eslint-config', 'plugin:react/recommended', 'plugin:react/jsx-runtime'],
plugins: ['react-hooks'],
parserOptions: {
project: ['tsconfig.eslint.json'],
tsconfigRootDir: __dirname,
},
globals: {
React: true,
JSX: true,
},
settings: {
jsdoc: {
mode: 'typescript',
tagNamePreference: {
method: 'method',
function: 'function',
extends: 'extends',
typeParam: 'typeParam',
api: 'api',
},
},
react: {
version: 'detect',
},
},
ignorePatterns: ['build', 'node_modules'],
overrides: [
{
files: ['src/data/examples/**/*.js'],
rules: {
'no-mixed-operators': 'off',
},
},
],
rules: {
'no-empty-function': 0,
'no-prototype-builtins': 0,
'no-mixed-operators': 0,
'no-console': 0,
'global-require': 0,
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'spaced-comment': [1, 'always', { markers: ['/'] }],
'@typescript-eslint/triple-slash-reference': [1, { path: 'always' }],
'@typescript-eslint/consistent-type-imports': [1, { disallowTypeAnnotations: false }],
'@typescript-eslint/no-parameter-properties': 1,
'@typescript-eslint/type-annotation-spacing': 1,
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
'@typescript-eslint/no-non-null-assertion': 0,
},
};