Summary: Added infra for writing and using custom eslint rules and created a rule for disallowing cross-package file imports. Such imports are anti-pattern and they also break standalone plugin bundling. We still have a bunch of places where Flipper core references code directly from plugins. I've ignored these places for now and added task T71355623 to revisit them. Reviewed By: passy Differential Revision: D22998955 fbshipit-source-id: d04cff8fc115ba1300a7e6830306ec134046e927
43 lines
1.0 KiB
JSON
43 lines
1.0 KiB
JSON
{
|
|
"name": "eslint-plugin-flipper",
|
|
"version": "0.52.1",
|
|
"private": true,
|
|
"description": "Custom ESLint rules for Flipper",
|
|
"repository": "facebook/flipper",
|
|
"main": "lib/index.js",
|
|
"flipperBundlerEntry": "src",
|
|
"types": "lib/index.d.ts",
|
|
"license": "MIT",
|
|
"bugs": "https://github.com/facebook/flipper/issues",
|
|
"dependencies": {
|
|
"@typescript-eslint/experimental-utils": "^3.8.0",
|
|
"fs-extra": "^9.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "26",
|
|
"@typescript-eslint/parser": "^3.8.0",
|
|
"flipper-test-utils": "0.52.1",
|
|
"jest": "^26",
|
|
"metro-memory-fs": "^0.61.0",
|
|
"prettier": "^2.0.0",
|
|
"rimraf": "^3.0.2",
|
|
"ts-jest": "^26.0.0",
|
|
"ts-node": "^8",
|
|
"typescript": "^3.9.5"
|
|
},
|
|
"scripts": {
|
|
"reset": "rimraf lib *.tsbuildinfo",
|
|
"build": "tsc -b",
|
|
"prepack": "yarn reset && yarn build"
|
|
},
|
|
"files": [
|
|
"lib/**/*",
|
|
"src/**/*"
|
|
],
|
|
"homepage": "https://github.com/facebook/flipper",
|
|
"keywords": [
|
|
"Flipper"
|
|
],
|
|
"author": "Facebook, Inc"
|
|
}
|