Files
claude-code-usage-bubble/eslint.config.js
T
tiennm99 2adbeeb613 build: add the npm toolchain with ESLint, JSDoc and node --test
@tauri-apps/cli is a local devDependency. ESLint runs the recommended
and JSDoc rules, with browser globals for ui/ and node globals for tests
and scripts. npm test runs node --test over tests/js.
2026-10-21 11:45:20 +07:00

27 lines
539 B
JavaScript

import js from '@eslint/js';
import jsdoc from 'eslint-plugin-jsdoc';
import globals from 'globals';
export default [
{
ignores: ['target/', 'gen/', 'node_modules/'],
},
js.configs.recommended,
jsdoc.configs['flat/recommended-error'],
{
files: ['ui/**/*.js'],
languageOptions: {
globals: {
...globals.browser,
__TAURI__: 'readonly',
},
},
},
{
files: ['tests/**/*.js', 'scripts/**/*.js', 'eslint.config.js'],
languageOptions: {
globals: globals.node,
},
},
];