mirror of
https://github.com/hanzoai/uuid.git
synced 2026-09-24 17:04:02 +00:00
39 lines
958 B
JavaScript
39 lines
958 B
JavaScript
import js from '@eslint/js';
|
|
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
import globals from 'globals';
|
|
import neostandard from 'neostandard';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
const neostandardConfig = neostandard({ semi: true, noStyle: true });
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
...neostandardConfig,
|
|
eslintPluginPrettierRecommended,
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.commonjs,
|
|
...globals.jest,
|
|
...globals.node,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
rules: {
|
|
'@typescript-eslint/no-redeclare': 'error',
|
|
'@typescript-eslint/no-require-imports': 'off',
|
|
'no-redeclare': 'off',
|
|
'no-var': ['error'],
|
|
curly: ['error', 'all'],
|
|
},
|
|
},
|
|
{
|
|
ignores: ['eslint.config.cjs', '**/dist/', 'node_modules/'],
|
|
},
|
|
];
|