Skip to content

Commit 1a7d556

Browse files
committed
Clean up some files
1 parent e53ce8f commit 1a7d556

File tree

5 files changed

+47
-82
lines changed

5 files changed

+47
-82
lines changed

.eslintrc.js

+44-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
1-
const eslintBase = require('./eslint-base');
2-
3-
// eslintBase.parserOptions.project = 'tsconfig-base.json';
4-
5-
module.exports = eslintBase;
1+
module.exports = {
2+
extends: [
3+
'eslint:recommended',
4+
'plugin:@typescript-eslint/eslint-recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:prettier/recommended',
7+
'plugin:react/recommended'
8+
],
9+
parser: '@typescript-eslint/parser',
10+
parserOptions: {
11+
project: 'tsconfig.json'
12+
},
13+
plugins: ['@typescript-eslint'],
14+
rules: {
15+
'@typescript-eslint/naming-convention': [
16+
'error',
17+
{
18+
selector: 'interface',
19+
format: ['PascalCase'],
20+
custom: {
21+
regex: '^I[A-Z]',
22+
match: true
23+
}
24+
}
25+
],
26+
'@typescript-eslint/no-explicit-any': 'off',
27+
'@typescript-eslint/no-namespace': 'off',
28+
'@typescript-eslint/no-unused-vars': ['warn', { args: 'none' }],
29+
'@typescript-eslint/no-use-before-define': 'off',
30+
'@typescript-eslint/quotes': [
31+
'error',
32+
'single',
33+
{ avoidEscape: true, allowTemplateLiterals: false }
34+
],
35+
curly: ['error', 'all'],
36+
eqeqeq: 'error',
37+
'prefer-arrow-callback': 'error'
38+
},
39+
settings: {
40+
react: {
41+
version: 'detect'
42+
}
43+
}
44+
};

docker-compose.yml

-28
This file was deleted.

eslint-base.js

-44
This file was deleted.

packages/common/src/components/CondaPkgPanel.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,13 @@ export class CondaPkgPanel extends React.Component<
248248
});
249249
};
250250

251-
handleSearch(event: any): void {
251+
handleSearch(event: React.FormEvent): void {
252252
if (this.state.isApplyingChanges) {
253253
return;
254254
}
255255

256256
this.setState({
257-
searchTerm: event.target.value
257+
searchTerm: (event.target as HTMLInputElement).value
258258
});
259259
}
260260

setup.cfg

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ show_missing = 1
1515
select = B950
1616

1717
[tool:pytest]
18-
addopts = --rootdir=mamba_gator --strict-markers -m "not e2e"
19-
markers =
20-
e2e: marks end to end tests
18+
addopts = --rootdir=mamba_gator --strict-markers

0 commit comments

Comments
 (0)