Skip to content
Open
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
7 changes: 0 additions & 7 deletions .eslintrc.js

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
.idea/
node_modules
.turbo
*.log
Expand All @@ -17,3 +18,4 @@ storybook-static/
/packages/**/*.cjs.map
/packages/**/*.d.ts
/packages/**/*.d.cts
!eslint.config.js
3 changes: 0 additions & 3 deletions apps/stories/.eslintrc.js

This file was deleted.

29 changes: 29 additions & 0 deletions apps/stories/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import rootConfig from '../../eslint.config.js';
import reactConfig from '../../config/eslint/react.config.js';
import storybook from 'eslint-plugin-storybook';

export default [
{
ignores: ['.storybook/**', 'storybook-static/**'],
},

...rootConfig,
...reactConfig,
...storybook.configs['flat/recommended'],

{
files: ['**/*.ts', '**/*.tsx'],
rules: {
'@typescript-eslint/no-empty-object-type': 'warn',
'@typescript-eslint/no-wrapper-object-types': 'warn',
},
},

{
files: ['**/*.tsx'],
rules: {
'react/display-name': 'warn',
'react-hooks/rules-of-hooks': 'off', // Intentional - stories use hooks in render functions
},
},
];
6 changes: 2 additions & 4 deletions apps/stories/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "storybook build",
"preview-storybook": "serve storybook-static",
"clean": "rm -rf .turbo && rm -rf node_modules",
"lint": "eslint ./stories/*.stories.tsx --max-warnings 0"
"lint": "eslint ./stories --max-warnings 0"
},
"dependencies": {
"@dnd-kit/abstract": "*",
Expand All @@ -24,15 +24,13 @@
"react-window": "1.8.9"
},
"devDependencies": {
"@dnd-kit/eslint-config": "*",
"@measured/auto-frame-component": "^0.1.7",
"@storybook/addon-docs": "^9.0.15",
"@storybook/addon-links": "^9.0.15",
"@storybook/react-vite": "^9.0.15",
"@vitejs/plugin-react": "^4.2.1",
"@vueless/storybook-dark-mode": "^9.0.6",
"eslint": "^8.56.0",
"eslint-plugin-storybook": "9.0.15",
"eslint-plugin-storybook": "^0.11.3",
"serve": "^14.2.4",
"storybook": "^9.0.15",
"typescript": "^5.7.3",
Expand Down
778 changes: 100 additions & 678 deletions bun.lock

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions config/eslint/react.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import react from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';

export default [
{
files: ['**/*.tsx'],
plugins: {
react,
'react-hooks': reactHooks,
},
languageOptions: {
parserOptions: {
ecmaFeatures: {jsx: true},
},
},
settings: {
react: {version: 'detect'},
},
rules: {
...react.configs.recommended.rules,
...reactHooks.configs.recommended.rules,
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
},
},
];
47 changes: 47 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettier from 'eslint-config-prettier';

export default tseslint.config(
// Global ignores
{
ignores: [
'**/dist/**',
'**/*.cjs',
'**/*.d.ts',
'**/*.d.cts',
'**/*.js.map',
'**/*.cjs.map',
'**/tsup.config.ts',
'.changeset/**',
'apps/docs/**',
],
},

// Base config for all JavaScript/TypeScript files
js.configs.recommended,
...tseslint.configs.recommended,

// TypeScript settings
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
'prefer-const': 'warn',
'@typescript-eslint/no-unused-vars': [
'warn',
{argsIgnorePattern: '^_', varsIgnorePattern: '^_'},
],
'@typescript-eslint/consistent-type-imports': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
},
},

// Prettier must be last
prettier
);
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"private": true,
"type": "module",
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev --concurrency 15",
"test": "turbo run test",
"lint": "turbo run lint",
"lint": "eslint --flag v10_config_lookup_from_file .",
"lint:fix": "eslint --fix --flag v10_config_lookup_from_file .",
"clean": "turbo run clean && rm -rf node_modules",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"changeset": "changeset",
Expand All @@ -16,8 +18,13 @@
"devDependencies": {
"@changesets/changelog-github": "^0.5.1",
"@changesets/cli": "^2.29.2",
"@eslint/js": "^9.17.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^10.0.1",
"globals": "^15.14.0",
"prettier": "^3.1.1",
"turbo": "^2.5.2"
"turbo": "^2.5.2",
"typescript-eslint": "^8.18.1"
},
"packageManager": "bun@1.1.12",
"workspaces": [
Expand Down
4 changes: 0 additions & 4 deletions packages/abstract/.eslintrc.js

This file was deleted.

18 changes: 18 additions & 0 deletions packages/abstract/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import rootConfig from '../../eslint.config.js';

export default [
// Ignore build outputs
{
ignores: ['*.js'],
},

...rootConfig,

{
files: ['**/*.ts'],
rules: {
'@typescript-eslint/no-wrapper-object-types': 'warn',
'@typescript-eslint/no-empty-object-type': 'warn',
},
},
];
2 changes: 0 additions & 2 deletions packages/abstract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@dnd-kit/eslint-config": "*",
"eslint": "^8.38.0",
"tsup": "8.3.0",
"typescript": "^5.5.2"
},
Expand Down
2 changes: 0 additions & 2 deletions packages/collision/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
"devDependencies": {
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.4",
"eslint": "^8.38.0",
"@dnd-kit/eslint-config": "*",
"tsup": "8.3.0",
"typescript": "^5.5.2"
},
Expand Down
21 changes: 21 additions & 0 deletions packages/dom/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import rootConfig from '../../eslint.config.js';

export default [
// Ignore build outputs
{
ignores: ['*.js', 'plugins/*.js'],
},

...rootConfig,

{
files: ['**/*.ts'],
rules: {
'no-case-declarations': 'warn',
'no-var': 'warn',
'@typescript-eslint/no-this-alias': 'warn',
'@typescript-eslint/no-wrapper-object-types': 'warn',
'@typescript-eslint/no-empty-object-type': 'warn',
},
},
];
2 changes: 0 additions & 2 deletions packages/dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@dnd-kit/eslint-config": "*",
"eslint": "^8.38.0",
"tsup": "8.3.0",
"typescript": "^5.5.2"
},
Expand Down
3 changes: 0 additions & 3 deletions packages/eslint-config/README.md

This file was deleted.

17 changes: 0 additions & 17 deletions packages/eslint-config/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/geometry/.eslintrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions packages/geometry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@dnd-kit/eslint-config": "*",
"eslint": "^8.38.0",
"tsup": "8.3.0",
"typescript": "^5.5.2"
},
Expand Down
2 changes: 0 additions & 2 deletions packages/helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@dnd-kit/eslint-config": "*",
"eslint": "^8.38.0",
"tsup": "8.3.0",
"typescript": "^5.5.2"
},
Expand Down
19 changes: 19 additions & 0 deletions packages/react/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import rootConfig from '../../eslint.config.js';
import reactConfig from '../../config/eslint/react.config.js';

export default [
// Ignore build outputs
{
ignores: ['*.js'],
},

...rootConfig,
...reactConfig,

{
files: ['**/*.ts'],
rules: {
'@typescript-eslint/no-unused-expressions': 'warn',
},
},
];
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
"devDependencies": {
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"eslint": "^8.38.0",
"@dnd-kit/eslint-config": "*",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.1.0",
"react": "^19.0.0",
"tsup": "8.3.0",
"typescript": "^5.5.2"
Expand Down
3 changes: 0 additions & 3 deletions packages/state/.eslintrc.js

This file was deleted.

12 changes: 12 additions & 0 deletions packages/state/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import rootConfig from '../../eslint.config.js';

export default [
...rootConfig,

{
files: ['**/*.ts'],
rules: {
'@typescript-eslint/ban-ts-comment': 'warn',
},
},
];
2 changes: 0 additions & 2 deletions packages/state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@dnd-kit/eslint-config": "*",
"bun-types": "^1.2.15",
"eslint": "^8.38.0",
"tsup": "8.3.0",
"typescript": "^5.5.2"
},
Expand Down
Loading