mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-21 21:49:51 +01:00
feat(lint): Add unused-imports eslint plugin (#21750)
This commit is contained in:
parent
4d5a5c5695
commit
5c80885f8e
@ -50,6 +50,7 @@ module.exports = {
|
||||
'posthog',
|
||||
'simple-import-sort',
|
||||
'import',
|
||||
"unused-imports"
|
||||
],
|
||||
rules: {
|
||||
// PyCharm always adds curly braces, I guess vscode doesn't, PR reviewers often complain they are present on props that don't need them
|
||||
@ -73,6 +74,7 @@ module.exports = {
|
||||
html: true,
|
||||
},
|
||||
],
|
||||
"unused-imports/no-unused-imports": "error",
|
||||
'no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'error',
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 106 KiB |
@ -260,6 +260,7 @@
|
||||
"eslint-plugin-react": "^7.33.2",
|
||||
"eslint-plugin-simple-import-sort": "^10.0.0",
|
||||
"eslint-plugin-storybook": "^0.6.15",
|
||||
"eslint-plugin-unused-imports": "^3.1.0",
|
||||
"file-loader": "^6.1.0",
|
||||
"givens": "^1.3.6",
|
||||
"history": "^5.0.1",
|
||||
|
@ -593,6 +593,9 @@ devDependencies:
|
||||
eslint-plugin-storybook:
|
||||
specifier: ^0.6.15
|
||||
version: 0.6.15(eslint@8.52.0)(typescript@4.9.5)
|
||||
eslint-plugin-unused-imports:
|
||||
specifier: ^3.1.0
|
||||
version: 3.1.0(@typescript-eslint/eslint-plugin@7.1.1)(eslint@8.52.0)
|
||||
file-loader:
|
||||
specifier: ^6.1.0
|
||||
version: 6.2.0(webpack@5.88.2)
|
||||
@ -12100,6 +12103,26 @@ packages:
|
||||
- typescript
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-unused-imports@3.1.0(@typescript-eslint/eslint-plugin@7.1.1)(eslint@8.52.0):
|
||||
resolution: {integrity: sha512-9l1YFCzXKkw1qtAru1RWUtG2EVDZY0a0eChKXcL+EZ5jitG7qxdctu4RnvhOJHv4xfmUf7h+JJPINlVpGhZMrw==}
|
||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||
peerDependencies:
|
||||
'@typescript-eslint/eslint-plugin': 6 - 7
|
||||
eslint: '8'
|
||||
peerDependenciesMeta:
|
||||
'@typescript-eslint/eslint-plugin':
|
||||
optional: true
|
||||
dependencies:
|
||||
'@typescript-eslint/eslint-plugin': 7.1.1(@typescript-eslint/parser@7.1.1)(eslint@8.52.0)(typescript@4.9.5)
|
||||
eslint: 8.52.0
|
||||
eslint-rule-composer: 0.3.0
|
||||
dev: true
|
||||
|
||||
/eslint-rule-composer@0.3.0:
|
||||
resolution: {integrity: sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==}
|
||||
engines: {node: '>=4.0.0'}
|
||||
dev: true
|
||||
|
||||
/eslint-scope@5.1.1:
|
||||
resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==}
|
||||
engines: {node: '>=8.0.0'}
|
||||
|
Loading…
Reference in New Issue
Block a user