-
Notifications
You must be signed in to change notification settings - Fork 58
/
.eslintrc.js
35 lines (35 loc) · 981 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
ecmaVersion: 12,
ecmaFeatures: {
jsx: true,
},
},
env: { browser: true },
ignorePatterns: ['node_modules', 'dist', '.eslintrc.js'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'xo/browser',
'xo-react/space',
'prettier',
],
plugins: ['@typescript-eslint'],
rules: {
camelcase: 0,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/indent': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'lines-between-class-members': 0,
'capitalized-comments': 0,
'react/prop-types': 0,
'react/jsx-tag-spacing': 0,
'react/jsx-curly-newline': 0,
'react/jsx-closing-tag-location': 0,
'react/no-danger': 0,
'@typescript-eslint/explicit-member-accessibility': 0,
},
};