Skip to content

Commit 774eae1

Browse files
committed
Homogeneous configuration
1 parent 371d5fb commit 774eae1

File tree

4 files changed

+20
-120
lines changed

4 files changed

+20
-120
lines changed

toolbar-button/.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ node_modules
22
dist
33
coverage
44
**/*.d.ts
5-
tests

toolbar-button/.eslintrc.js

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,24 @@ module.exports = {
33
'eslint:recommended',
44
'plugin:@typescript-eslint/eslint-recommended',
55
'plugin:@typescript-eslint/recommended',
6-
'plugin:prettier/recommended'
6+
'plugin:jsdoc/recommended',
7+
'plugin:prettier/recommended',
8+
'plugin:react/recommended'
79
],
810
parser: '@typescript-eslint/parser',
911
parserOptions: {
1012
project: 'tsconfig.json',
1113
sourceType: 'module'
1214
},
13-
plugins: ['@typescript-eslint'],
15+
plugins: ['@typescript-eslint', 'jsdoc'],
1416
rules: {
15-
'@typescript-eslint/naming-convention': [
17+
'@typescript-eslint/interface-name-prefix': [
1618
'error',
17-
{
18-
selector: 'interface',
19-
format: ['PascalCase'],
20-
custom: {
21-
regex: '^I[A-Z]',
22-
match: true
23-
}
24-
}
19+
{ prefixWithI: 'always' }
2520
],
2621
'@typescript-eslint/no-unused-vars': ['warn', { args: 'none' }],
2722
'@typescript-eslint/no-explicit-any': 'off',
23+
'@typescript-eslint/camelcase': 'warn',
2824
'@typescript-eslint/no-namespace': 'off',
2925
'@typescript-eslint/no-use-before-define': 'off',
3026
'@typescript-eslint/quotes': [
@@ -34,6 +30,18 @@ module.exports = {
3430
],
3531
curly: ['error', 'all'],
3632
eqeqeq: 'error',
33+
'jsdoc/require-param-type': 'off',
34+
'jsdoc/require-property-type': 'off',
35+
'jsdoc/require-returns-type': 'off',
36+
'jsdoc/no-types': 'warn',
3737
'prefer-arrow-callback': 'error'
38+
},
39+
settings: {
40+
jsdoc: {
41+
mode: 'typescript'
42+
},
43+
react: {
44+
version: 'detect'
45+
}
3846
}
3947
};

toolbar-button/.gitignore

Lines changed: 0 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -4,110 +4,3 @@ node_modules/
44
*.egg-info/
55
.ipynb_checkpoints
66
*.tsbuildinfo
7-
clear_cell_outputs/labextension
8-
9-
# Created by https://www.gitignore.io/api/python
10-
# Edit at https://www.gitignore.io/?templates=python
11-
12-
### Python ###
13-
# Byte-compiled / optimized / DLL files
14-
__pycache__/
15-
*.py[cod]
16-
*$py.class
17-
18-
# C extensions
19-
*.so
20-
21-
# Distribution / packaging
22-
.Python
23-
build/
24-
develop-eggs/
25-
dist/
26-
downloads/
27-
eggs/
28-
.eggs/
29-
lib/
30-
lib64/
31-
parts/
32-
sdist/
33-
var/
34-
wheels/
35-
pip-wheel-metadata/
36-
share/python-wheels/
37-
.installed.cfg
38-
*.egg
39-
MANIFEST
40-
41-
# PyInstaller
42-
# Usually these files are written by a python script from a template
43-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
44-
*.manifest
45-
*.spec
46-
47-
# Installer logs
48-
pip-log.txt
49-
pip-delete-this-directory.txt
50-
51-
# Unit test / coverage reports
52-
htmlcov/
53-
.tox/
54-
.nox/
55-
.coverage
56-
.coverage.*
57-
.cache
58-
nosetests.xml
59-
coverage.xml
60-
*.cover
61-
.hypothesis/
62-
.pytest_cache/
63-
64-
# Translations
65-
*.mo
66-
*.pot
67-
68-
# Scrapy stuff:
69-
.scrapy
70-
71-
# Sphinx documentation
72-
docs/_build/
73-
74-
# PyBuilder
75-
target/
76-
77-
# pyenv
78-
.python-version
79-
80-
# celery beat schedule file
81-
celerybeat-schedule
82-
83-
# SageMath parsed files
84-
*.sage.py
85-
86-
# Spyder project settings
87-
.spyderproject
88-
.spyproject
89-
90-
# Rope project settings
91-
.ropeproject
92-
93-
# Mr Developer
94-
.mr.developer.cfg
95-
.project
96-
.pydevproject
97-
98-
# mkdocs documentation
99-
/site
100-
../venv/
101-
102-
# mypy
103-
.mypy_cache/
104-
.dmypy.json
105-
dmypy.json
106-
107-
# Pyre type checker
108-
.pyre/
109-
110-
# End of https://www.gitignore.io/api/python
111-
112-
# OSX files
113-
.DS_Store

toolbar-button/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"outDir": "lib",
1717
"rootDir": "src",
1818
"strict": true,
19-
"strictNullChecks": true,
19+
"strictNullChecks": false,
2020
"target": "es2017",
2121
"types": []
2222
},

0 commit comments

Comments
 (0)