<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> This repo uses Nx `20.2.0-beta.3` ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> This repo uses Nx `20.2.0-beta.7` ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
88 lines
2.2 KiB
JSON
88 lines
2.2 KiB
JSON
{
|
|
"root": true,
|
|
"parser": "@typescript-eslint/parser",
|
|
"env": {
|
|
"node": true
|
|
},
|
|
"ignorePatterns": ["**/*.ts"],
|
|
"plugins": ["@typescript-eslint", "@nx"],
|
|
"extends": ["plugin:storybook/recommended"],
|
|
"rules": {
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
"no-restricted-imports": ["error", "create-nx-workspace"],
|
|
"@typescript-eslint/no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": [
|
|
{
|
|
"group": ["nx/src/plugins/js*"],
|
|
"message": "Imports from 'nx/src/plugins/js' are not allowed. Use '@nx/js' instead"
|
|
},
|
|
{
|
|
"group": ["**/native-bindings", "**/native-bindings.js", ""],
|
|
"message": "Direct imports from native-bindings.js are not allowed. Import from index.js instead."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"storybook/no-uninstalled-addons": [
|
|
"error",
|
|
{
|
|
"ignore": ["@nx/react/plugins/storybook"],
|
|
"packageJsonLocation": "../../package.json"
|
|
}
|
|
]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["*.json"],
|
|
"parser": "jsonc-eslint-parser",
|
|
"rules": {}
|
|
},
|
|
{
|
|
"files": ["**/executors/**/schema.json", "**/generators/**/schema.json"],
|
|
"rules": {
|
|
"@nx/workspace/valid-schema-description": "error"
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
"rules": {
|
|
"@nx/enforce-module-boundaries": [
|
|
"error",
|
|
{
|
|
"enforceBuildableLibDependency": true,
|
|
"checkDynamicDependenciesExceptions": [".*"],
|
|
"allow": [],
|
|
"depConstraints": [
|
|
{
|
|
"sourceTag": "*",
|
|
"onlyDependOnLibsWithTags": ["*"]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"@nx/workspace/valid-command-object": "error"
|
|
}
|
|
},
|
|
{
|
|
"files": ["pnpm-lock.yaml"],
|
|
"parser": "./tools/eslint-rules/raw-file-parser.js",
|
|
"rules": {
|
|
"@nx/workspace/ensure-pnpm-lock-version": [
|
|
"error",
|
|
{
|
|
"version": "9.0"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.ts"],
|
|
"rules": {
|
|
"@angular-eslint/prefer-standalone": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|