/
.eslintrc.js
120 lines (117 loc) · 3.57 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/* eslint-disable */
module.exports = {
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
// "parser": "babel-eslint",
extends: [
'airbnb-base',
'airbnb-typescript/base',
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of imports
project: './tsconfig.json',
},
"env": {
"browser": true,
"node": true
},
globals: {
__webpack_public_path__: 'writeable',
openjscad: 'readonly',
jsyaml: 'readonly',
Plotly: 'readonly',
YT: 'readonly',
},
rules: {
'@typescript-eslint/space-before-function-paren': 0,
'prefer-arrow-callback': 0,
'no-multiple-empty-lines': 0,
'func-names': 0,
'object-shorthand': 0,
'prefer-destructuring': 0,
'no-plusplus': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/brace-style': 0,
'max-len': 0,
'vars-on-top': 0,
'prefer-template': 0,
'operator-linebreak': 0,
'@typescript-eslint/quotes': 0,
'padded-blocks': 0,
'no-console': 0,
'no-multi-spaces': 0,
'quote-props': 0,
'import/no-import-module-exports': 0,
'@typescript-eslint/object-curly-spacing': 0,
'no-multi-assign': 0,
'global-require': 0,
'import/first': 0,
'no-param-reassign': 0,
'no-underscore-dangle': 0,
'@typescript-eslint/comma-dangle': 0,
'@typescript-eslint/indent': 0,
'function-paren-newline': 0,
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
// 'no-undef': 0,
// 'prefer-arrow-callback': 0,
// 'no-restricted-syntax': 0,
// 'no-useless-escape': 0,
// 'prefer-template': 0,
// 'no-multi-spaces': 0,
// 'global-require': 0,
// 'no-param-reassign': 0,
// 'no-continue': 0,
// 'no-else-return': 0,
// 'no-plusplus': 0,
// 'vars-on-top': 0,
// 'quote-props': 0,
// 'object-shorthand': 0,
// 'func-names': 0,
// 'no-underscore-dangle': 0,
// 'import/extensions': 0,
// 'import/newline-after-import': 0,
// 'import/first': 0,
// 'import/no-extraneous-dependencies': 0,
// 'import/no-unresolved': 0,
// 'no-unused-vars': [0, { 'argsIgnorePattern': '^_' }],
// "comma-dangle": 0,
// "brace-style": [2, "stroustrup"],
// "no-console": 0,
// "no-nested-ternary": 0,
// "operator-linebreak": 0,
// "space-before-function-paren": 0,
// "prefer-destructuring": 0,
// "function-paren-newline": 0,
// "no-extend-native": 0,
// "no-multi-assign": 0,
// "no-inner-declarations": 0,
// "no-prototype-builtins": 0,
// "padded-blocks": 0,
// "indent": [2, 2, {"SwitchCase": 1}],
// "spaced-comment": 1,
// "max-len": 0,
// "quotes": ["error", "single", { "allowTemplateLiterals": true }],
// "import/prefer-default-export": "off",
// "arrow-parens": ["error", "as-needed"],
// "complexity": ["warn", { "max": 20 }],
},
overrides: [
// typescript
{
files: ["*.ts", "*.tsx"],
plugins: ['@typescript-eslint'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/no-explicit-any': 0,
// '@typescript-eslint/member-delimiter-style': 0,
// '@typescript-eslint/interface-name-prefix': 0,
// '@typescript-eslint/no-use-before-define': 0,
},
},
],
ignorePatterns: ['src/external/*.js'],
};