eslinter ignore tests
This commit is contained in:
parent
a163917428
commit
03b16a432c
@ -1,17 +1,18 @@
|
|||||||
import js from '@eslint/js';
|
// @ts-check
|
||||||
import globals from 'globals';
|
|
||||||
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
||||||
|
|
||||||
export default defineConfig([
|
import eslint from '@eslint/js';
|
||||||
globalIgnores(['test/**/*', 'node_modules/**/*']),
|
import tseslint from 'typescript-eslint';
|
||||||
|
|
||||||
|
export default tseslint.config(
|
||||||
|
eslint.configs.recommended,
|
||||||
|
tseslint.configs.recommended,
|
||||||
{
|
{
|
||||||
files: ['**/*.{js,mjs,cjs}'],
|
ignores: [
|
||||||
plugins: { js },
|
'dist/**',
|
||||||
extends: ['js/recommended'],
|
'test/**',
|
||||||
|
'node_modules/**',
|
||||||
|
'webpack.dev.js',
|
||||||
|
'webpack.prod.js',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{ files: ['**/*.js'], languageOptions: { sourceType: 'commonjs' } },
|
);
|
||||||
{
|
|
||||||
files: ['**/*.{js,mjs,cjs}'],
|
|
||||||
languageOptions: { globals: globals.browser },
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user