mirror of
https://github.com/jwetzell/osc-js.git
synced 2026-08-22 07:19:00 +00:00
switch eslint to new style
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import globals from 'globals';
|
||||
import pluginJs from '@eslint/js';
|
||||
import tseslint from 'typescript-eslint';
|
||||
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended';
|
||||
|
||||
/** @type {import('eslint').Linter.Config[]} */
|
||||
export default [
|
||||
{ files: ['packages/**/*.ts']},
|
||||
{ ignores: ['**/*.test.js','eslint.config.mjs','examples/*'] },
|
||||
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
|
||||
pluginJs.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
eslintPluginPrettier,
|
||||
];
|
||||
Reference in New Issue
Block a user