From 653f126113800a62a32f2e32e5d07aab7b7470d1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 17:31:35 +0300 Subject: [PATCH] refactor(eslint): sort alphabetically (#131) Co-authored-by: Almanov Nikita <131481562+nikkeyl@users.noreply.github.com> --- eslint.config.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 28344a2..24c4a97 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,9 +1,9 @@ -import globals from 'globals'; +import { resolve } from 'node:path'; import { defineFlatConfig } from 'eslint-define-config'; import { FlatCompat } from '@eslint/eslintrc'; -import { resolve } from 'node:path'; +import globals from 'globals'; import typescriptParser from '@typescript-eslint/parser'; import unicorn from 'eslint-plugin-unicorn'; @@ -21,13 +21,13 @@ export default defineFlatConfig([ unicorn.configs['flat/recommended'], { languageOptions: { + globals: { + ...globals.node, + }, parser: typescriptParser, parserOptions: { project: 'tsconfig.json', }, - globals: { - ...globals.node, - }, }, settings: { 'import/resolver': { @@ -43,7 +43,7 @@ export default defineFlatConfig([ 'import/no-commonjs': 'error', 'import/no-namespace': 'error', 'import/no-unassigned-import': 'error', - 'unicorn/no-null': 'warn', + 'unicorn/no-null': 'off', 'unicorn/no-unused-properties': 'error', 'unicorn/string-content': 'error', },