-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
79 lines (76 loc) · 2 KB
/
eslint.config.js
File metadata and controls
79 lines (76 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/**
* ESLint v9+ Configuration (Flat Config)
* AuraGlass Design System with Glass Discipline Rules
*/
const auraglassPlugin = require('./eslint-plugin-auraglass.js');
module.exports = [
// Main configuration for TypeScript/React files
{
files: ['src/**/*.{js,jsx,ts,tsx}'],
ignores: ['**/*.{test,spec}.{js,jsx,ts,tsx}', '**/__tests__/**', 'src/tests/**', 'src/**/*.stories.{js,jsx,ts,tsx}', 'src/hooks/useReducedMotion.tsx'],
languageOptions: {
parser: require('@typescript-eslint/parser'),
ecmaVersion: 2022,
sourceType: 'module',
parserOptions: {
ecmaFeatures: {
jsx: true
},
project: './tsconfig.json'
}
},
plugins: {
'auraglass': auraglassPlugin
},
rules: {
// AuraGlass Design System Rules - CRITICAL FOR UNIFIED GLASS
'auraglass/no-inline-glass': 'error',
'auraglass/require-glass-tokens': 'warn',
'auraglass/no-raw-tailwind': ['warn', {
allow: [
'glass-',
'sb-',
'storybook-',
'auraglass-',
'persona-picker',
'zspace-',
'workspace-',
'spatial-',
'dimensional-',
'glowing-card',
'liquid-glass',
'dialog-',
'nav-item',
'custom-preview',
'animation-debug',
'interaction-',
'gesture-',
'premium-',
'trend-',
'skip-links',
'container-responsive',
'consciousness-',
'generated-component',
'occlusion-layer'
]
}],
'auraglass/no-inline-style-attr': 'warn'
}
},
// Global ignores
{
ignores: [
'node_modules/**',
'dist/**',
'build/**',
'coverage/**',
'src/styles/_deprecated/**',
'src/styles/glass.generated.css',
'reports/**',
'**/*.{test,spec}.{js,jsx,ts,tsx}',
'**/__tests__/**',
'src/tests/**',
'src/**/*.stories.{js,jsx,ts,tsx}' // Add this line
]
}
];