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
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

72 changes: 0 additions & 72 deletions .eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
types: [synchronize, opened, reopened]

env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

jobs:
build:
runs-on: ubuntu-26.04
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
types: [synchronize, opened, reopened]

env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

jobs:
packages:
runs-on: ubuntu-26.04
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,9 @@ deploy.env
.nx/workspace-data
.tmp
tmp

.claude/worktrees
.claude/settings.local.json
.nx/polygraph
.nx/self-healing
.nx/migrate-runs
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
/dist
/coverage
/.nx/cache
/.nx/workspace-data
/.nx/workspace-data
.nx/self-healing
7 changes: 0 additions & 7 deletions apps/platform/.eslintrc.json

This file was deleted.

10 changes: 10 additions & 0 deletions apps/platform/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import baseConfig from '../../eslint.config.mjs';

export default [
...baseConfig,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
];
7 changes: 0 additions & 7 deletions apps/service/.eslintrc.json

This file was deleted.

10 changes: 10 additions & 0 deletions apps/service/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import baseConfig from '../../eslint.config.mjs';

export default [
...baseConfig,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
];
2 changes: 1 addition & 1 deletion apps/service/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Config } from '@jest/types';

export default async (): Promise<Config.InitialOptions> => ({
module.exports = async (): Promise<Config.InitialOptions> => ({
displayName: 'service',
preset: '../../jest.preset.js',
coverageDirectory: '../../coverage/apps/service',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`consts snapshot 1`] = `
{
Expand Down
18 changes: 0 additions & 18 deletions apps/website/.eslintrc.json

This file was deleted.

38 changes: 38 additions & 0 deletions apps/website/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import baseConfig from '../../eslint.config.mjs';
import nx from '@nx/eslint-plugin';
import globals from 'globals';

export default [
...baseConfig,
...nx.configs['flat/react'],
{
languageOptions: {
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: { ...globals.browser },
},
},
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
ignoreRestSiblings: true,
argsIgnorePattern: '^_',
// typescript-eslint v8 changed the default to 'all'; keep the pre-upgrade behavior
caughtErrors: 'none',
},
],
// `no-empty-interface` was removed in typescript-eslint v8; `no-empty-object-type` is its successor
'@typescript-eslint/no-empty-object-type': 'off',
},
},
];
8 changes: 4 additions & 4 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"@types/react-dom": "^18.2.13",
"@types/recharts": "^1.8.25",
"@vitejs/plugin-basic-ssl": "^1.1.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"netlify-cli": "^21.6.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"netlify-cli": "^27.11.0",
"vite": "^8.3.2",
"vite-bundle-analyzer": "^0.17.0",
"vite-tsconfig-paths": "^4.3.2"
Expand Down
2 changes: 1 addition & 1 deletion apps/website/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
commonjsOptions: {
transformMixedEsModules: true,
},
rollupOptions: {
rolldownOptions: {
output: {
entryFileNames: `assets/Main-[name]-[hash].js`,
},
Expand Down
92 changes: 92 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
import nx from '@nx/eslint-plugin';
import jest from 'eslint-plugin-jest';
import eslintConfigPrettier from 'eslint-config-prettier';
import prettierRecommended from 'eslint-plugin-prettier/recommended';
import jsoncEslintParser from 'jsonc-eslint-parser';

export default [
prettierRecommended,
...nx.configs['flat/base'],
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {
'@nx/enforce-module-boundaries': [
'error',
{
enforceBuildableLibDependency: true,
allow: [],
depConstraints: [
{
sourceTag: '*',
onlyDependOnLibsWithTags: ['*'],
},
],
},
],
},
},
...nx.configs['flat/typescript'],
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parserOptions: {
project: './tsconfig.*?.json',
},
},
rules: {
...eslintConfigPrettier.rules,
'no-extra-semi': 'off',
},
},
...nx.configs['flat/javascript'],
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
ignoreRestSiblings: true,
argsIgnorePattern: '^_',
// typescript-eslint v8 changed the default to 'all'; keep the pre-upgrade behavior
caughtErrors: 'none',
},
],
// Dropped from the typescript-eslint v8 recommended set, keep enforcing it as before
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
{
files: ['**/*.js', '**/*.jsx'],
rules: {
'no-extra-semi': 'off',
// Newly enabled for JS files by the typescript-eslint v8 preset; was not enforced before the upgrade
'prefer-const': 'off',
},
},
{
files: ['**/*.json'],
// Override or add rules here
rules: {},
languageOptions: {
parser: jsoncEslintParser,
},
},
{
...jest.configs['flat/recommended'],
files: ['**/__tests__/**/*.spec.ts'],
rules: {
...jest.configs['flat/recommended'].rules,
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-var-requires': 'off',
'jest/no-disabled-tests': 'off',
},
},
{
// .eslintignore patterns were gitignore-style (matched at any depth), flat config needs explicit `**/`
ignores: ['**/.nx', '**/dist/', '**/__tests__/**/assets', '**/.vercel', 'apps/service/api/'],
},
];
36 changes: 0 additions & 36 deletions migrations.json

This file was deleted.

Loading
Loading