Debian Codegraph @

.eslintrc.js

raw symbols SCIP
1 module.exports = {
2 env: {
3 browser: true,
4 es6: true,
5 commonjs: true,
6 node: true,
7 'jest/globals': true,
8 },
9 root: true,
10 extends: [
11 'eslint:recommended',
12 'plugin:@typescript-eslint/eslint-recommended',
13 'plugin:@typescript-eslint/recommended',
14 'plugin:prettier/recommended',
15 'plugin:react/recommended',
16 'plugin:jest/recommended',
17 ],
18 parser: '@typescript-eslint/parser',
19 parserOptions: {
20 project: 'tsconfig.eslint.json',
21 sourceType: 'module',
22 },
23 plugins: ['@typescript-eslint', 'jest'],
24 rules: {
25 '@typescript-eslint/naming-convention': [
26 'error',
27 {
28 selector: 'interface',
29 format: ['PascalCase'],
30 custom: {
31 regex: '^I[A-Z]',
32 match: true,
33 },
34 },
35 ],
36 '@typescript-eslint/no-unused-vars': ['warn', { args: 'none' }],
37 '@typescript-eslint/no-explicit-any': 'off',
38 '@typescript-eslint/no-namespace': 'off',
39 '@typescript-eslint/no-var-requires': 'off',
40 '@typescript-eslint/no-use-before-define': 'off',
41 '@typescript-eslint/no-empty-interface': 'off',
42 '@typescript-eslint/quotes': [
43 'error',
44 'single',
45 { avoidEscape: true, allowTemplateLiterals: false },
46 ],
47 'jest/no-done-callback': 'off',
48 curly: ['error', 'all'],
49 eqeqeq: 'error',
50 'prefer-arrow-callback': 'error',
51 },
52 settings: {
53 react: {
54 version: 'detect',
55 },
56 },
57 };