Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 038e7cf

Browse files
authored
Merge pull request #128 from SeedCompany/restricted-imports-rule
Restricted imports rule
2 parents a019b0b + 13d3f8c commit 038e7cf

File tree

9 files changed

+2303
-29
lines changed

9 files changed

+2303
-29
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
"eslint-plugin-prettier": "^4.0.0",
4444
"eslint-plugin-react": "^7.29.4",
4545
"eslint-plugin-react-hooks": "^4.3.0",
46-
"prettier": "^2.6.0"
46+
"ignore": "^5.2.0",
47+
"prettier": "^2.6.0",
48+
"type-fest": "^2.0.0"
4749
},
4850
"peerDependencies": {
4951
"eslint": "^8.0.0",
@@ -64,10 +66,12 @@
6466
"@commitlint/config-conventional": "^16.2.1",
6567
"@commitlint/prompt-cli": "^16.2.1",
6668
"@seedcompany/eslint-plugin": "*",
69+
"@types/common-tags": "^1.8.1",
6770
"@types/eslint": "^8.4.1",
6871
"@types/jest": "^27.4.1",
6972
"@types/node": "^17.0.21",
7073
"@typescript-eslint/types": "^5.15.0",
74+
"common-tags": "^1.8.2",
7175
"husky": "^4.3.8",
7276
"jest": "^27.5.1",
7377
"jest-circus": "^27.5.1",
@@ -78,7 +82,6 @@
7882
"semantic-release": "^19.0.2",
7983
"ts-jest": "^27.1.3",
8084
"ts-node": "^10.7.0",
81-
"type-fest": "^2.12.0",
8285
"typescript": "^4.6.2"
8386
},
8487
"resolutions": {

src/rules/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import { noRestrictedImports } from './no-restricted-imports';
12
import { noUnusedVars } from './no-unused-vars';
23

34
// eslint-disable-next-line import/no-default-export
45
export default {
6+
'no-restricted-imports': noRestrictedImports,
57
'no-unused-vars': noUnusedVars,
68
};

0 commit comments

Comments
 (0)