Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 0 additions & 69 deletions .eslintrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,5 @@ CLAUDE.local.md
.env.local
.env.*.local
.envrc

.nx/migrate-runs
6 changes: 0 additions & 6 deletions apps/automated/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@
"clean": {
"executor": "@nativescript/nx:clean",
"options": {}
},
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/automated/**/*.ts", "apps/automated/src/**/*.html"]
}
}
},
"implicitDependencies": ["webpack5", "vite"]
Expand Down
6 changes: 0 additions & 6 deletions apps/toolbox/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@
"clean": {
"executor": "@nativescript/nx:clean",
"options": {}
},
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/toolbox/**/*.ts", "apps/toolbox/src/**/*.html"]
}
}
},
"implicitDependencies": ["webpack5", "vite"]
Expand Down
6 changes: 0 additions & 6 deletions apps/ui/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@
"clean": {
"executor": "@nativescript/nx:clean",
"options": {}
},
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/ui/**/*.ts", "apps/ui/src/**/*.html"]
}
}
},
"implicitDependencies": ["webpack5"]
Expand Down
65 changes: 65 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import nx from '@nx/eslint-plugin';

export default [
...nx.configs['flat/base'],
...nx.configs['flat/typescript'],
...nx.configs['flat/javascript'],
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {
'@nx/enforce-module-boundaries': [
'error',
{
enforceBuildableLibDependency: true,
allow: [],
depConstraints: [
{
sourceTag: '*',
onlyDependOnLibsWithTags: ['*'],
},
],
},
],
},
},
{
files: ['**/*.ts', '**/*.tsx'],
rules: {
'no-empty': 'off',
'no-useless-escape': 'off',
'no-inner-declarations': 'off',
'no-prototype-builtins': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-this-alias': 'warn',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
'@typescript-eslint/no-wrapper-object-types': 'off',
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
'@typescript-eslint/no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
'no-extra-semi': 'off',
},
},
{
files: ['**/*.js', '**/*.jsx'],
rules: {
'no-extra-semi': 'off',
},
},
{
files: ['**/references.d.ts'],
rules: {
'@typescript-eslint/triple-slash-reference': 'off',
},
},
{
// Not in packages/core: its build and the HMR core bundle ship every *.mjs.
ignores: ['packages/core/**/global-types.d.ts', 'packages/core/**/node_modules/**/*', 'packages/core/**/__tests__/**/*', 'packages/core/**/platforms/**/*', 'packages/core/**/css/lib/**/*', 'packages/core/**/vite.config.*.timestamp*', 'packages/core/**/vitest.config.*.timestamp*', 'packages/core/**/*.{js,jsx,mjs,cjs,mts,cts}', '!packages/core/**/*.spec.{js,jsx}'],
},
];
48 changes: 29 additions & 19 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": ["{workspaceRoot}/workspace.json", "{workspaceRoot}/tsconfig.json", "{workspaceRoot}/nx.json"],
"production": ["default", "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", "!{projectRoot}/tsconfig.spec.json", "!{projectRoot}/jest.config.[jt]s", "!{projectRoot}/src/test-setup.[jt]s"]
"production": ["default", "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", "!{projectRoot}/tsconfig.spec.json", "!{projectRoot}/jest.config.[jt]s", "!{projectRoot}/src/test-setup.[jt]s", "!{projectRoot}/eslint.config.mjs"]
},
"targetDefaults": {
"build": {
Expand All @@ -94,28 +94,11 @@
"e2e": {
"cache": true
},
"@nx/jest:jest": {
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"cache": true,
"options": {
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
},
"nx-release-publish": {
"dependsOn": ["build"],
"options": {
"packageRoot": "{workspaceRoot}/dist/packages/{projectName}"
}
},
"@nx/vitest:test": {
"cache": true,
"inputs": ["default", "^production"]
}
},
"useDaemonProcess": false,
Expand Down Expand Up @@ -146,5 +129,32 @@
"nxCloudId": "680a89d49c76d63ce41eb397",
"tui": {
"enabled": false
}
},
"affected": {
"legacy": true
},
"plugins": [
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "lint"
},
"include": ["eslint.config.mjs", "apps/automated/*", "apps/toolbox/*", "apps/ui/*", "packages/core/*", "packages/vite/*", "packages/webpack5/*", "tools/workspace-plugin/*"]
},
{
"plugin": "@nx/jest/plugin",
"options": {
"targetName": "test"
},
"include": ["tools/workspace-plugin/**/*"]
},
{
"plugin": "@nx/vitest",
"options": {
"testMode": "run",
"testTargetName": "test"
},
"include": ["packages/core/**/*", "packages/vite/**/*"]
}
]
}
Loading
Loading