diff --git a/nx.json b/nx.json index d9f1ee29197a..577c9d8675c5 100644 --- a/nx.json +++ b/nx.json @@ -9,5 +9,32 @@ "accessToken": "ZmNlNjA0YzAtNTM1NS00MDIwLWFlMWItNWYxYzNiMjQ4N2VkfHJlYWQtb25seQ==" } } + }, + "targetDefaults": { + "lint": { + "inputs": [ + "default", + "{workspaceRoot}/.eslintrc.js" + ] + } + }, + "namedInputs": { + "sharedGlobals": [ + "{workspaceRoot}/package.json" + ], + "default": [ + "{projectRoot}/**/*", + "sharedGlobals" + ], + "production": [ + "default", + "!{projectRoot}/**/*.spec.ts", + "!{projectRoot}/**/*.md", + "!{projectRoot}/tsconfig.spec.json", + "!{projectRoot}/.eslintrc.json", + "!{projectRoot}/.mocharc.{js,json}", + "!{projectRoot/cypress.config.{ts,js}", + "!{projectRoot/**/*.cy.ts" + ] } }