-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
executable file
·66 lines (61 loc) · 1.94 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
module.exports = {
extends: ['erb', '@rubykgen/eslint-config/node'],
plugins: ['@typescript-eslint'],
rules: {
// A temporary hack related to IDE not resolving correct package.json
'import/no-extraneous-dependencies': 'off',
'import/no-cycle': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': 'off',
'react/require-default-props': 'off',
'react/jsx-props-no-spreading': 'off',
'react/jsx-no-bind': 'off',
'react/prop-types': 'off',
'react/no-danger': 'off',
'jsx-a11y/heading-has-content': 'off',
'default-param-last': 'off',
'class-methods-use-this': 'off',
'max-classes-per-file': 'off',
'global-require': 'off',
camelcase: 'off',
'import/extensions': 'off',
'import/prefer-default-export': 'off',
'import/no-unresolved': 'off',
'import/no-import-module-exports': 'off',
'no-shadow': 'off',
'no-undef': 'off',
'no-nested-ternary': 'off',
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'no-underscore-dangle': 'off',
'no-return-assign': 'off',
'no-useless-constructor': 'off',
'no-empty-function': 'off',
'no-plusplus': 'off',
'no-console': 'off',
'no-new': 'off',
'no-callback-literal': 'off',
'@typescript-eslint/no-shadow': 'error',
'@typescript-eslint/no-unused-vars': 'error',
},
// parserOptions: {
// ecmaVersion: 2021,
// sourceType: 'module',
// project: './tsconfig.json',
// tsconfigRootDir: __dirname,
// createDefaultProgram: true,
// },
// settings: {
// 'import/resolver': {
// // See https://github.com/benmosher/eslint-plugin-import/issues/1396#issuecomment-575727774 for line below
// node: {},
// webpack: {
// config: require.resolve('./.erb/configs/webpack.config.eslint.ts'),
// },
// typescript: {},
// },
// 'import/parsers': {
// '@typescript-eslint/parser': ['.ts', '.tsx'],
// },
// },
}