mirror of
https://github.com/hanzoai/o11y-design-tokens.git
synced 2026-11-03 02:07:51 +00:00
* feat: generate design tokens from json and overall improvements * chore: add changelog and version bump
39 lines
900 B
JavaScript
39 lines
900 B
JavaScript
import js from '@eslint/js';
|
|
import tsPlugin from '@typescript-eslint/eslint-plugin';
|
|
import tsParser from '@typescript-eslint/parser';
|
|
import prettierPlugin from 'eslint-plugin-prettier';
|
|
import prettierConfig from 'eslint-config-prettier';
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
{
|
|
files: ['**/*.{js,jsx,ts,tsx}'],
|
|
plugins: {
|
|
'@typescript-eslint': tsPlugin,
|
|
prettier: prettierPlugin,
|
|
},
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
},
|
|
globals: {
|
|
// Add Node.js globals here
|
|
console: 'readonly',
|
|
process: 'readonly',
|
|
module: 'readonly',
|
|
require: 'readonly',
|
|
__dirname: 'readonly',
|
|
__filename: 'readonly',
|
|
},
|
|
},
|
|
rules: {
|
|
...tsPlugin.configs.recommended.rules,
|
|
...prettierPlugin.configs.recommended.rules,
|
|
'prettier/prettier': 'error',
|
|
},
|
|
},
|
|
prettierConfig,
|
|
];
|