From 1fe1057163dc8b00344651d2c5e966c6900431e6 Mon Sep 17 00:00:00 2001 From: zerosoul Date: Mon, 6 Jun 2022 17:17:10 +0800 Subject: [PATCH] chore: editor config indent_size --- .editorconfig | 2 +- .eslintrc.json | 70 +++++++++++++++++++++++++------------------------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.editorconfig b/.editorconfig index 074c9ec0..93dd0d28 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,7 +12,7 @@ trim_trailing_whitespace = true # Unix-style newlines with a newline ending every file [*] indent_style = space -indent_size = 1 +indent_size = 2 end_of_line = lf charset = utf-8 insert_final_newline = true diff --git a/.eslintrc.json b/.eslintrc.json index b2547c98..1a1200ff 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,38 +1,38 @@ { - "extends": ["eslint:recommended", "plugin:react/recommended", "prettier"], - "plugins": ["react-hooks"], - "rules": { - "react/jsx-uses-react": "off", - "react/react-in-jsx-scope": "off", - "semi": 2, - "no-console": "off", - "react/prop-types": 0, - "react/no-unescaped-entities": "off", - "no-unused-vars": ["error", { "ignoreRestSiblings": true }], - "react-hooks/rules-of-hooks": "error", - "react-hooks/exhaustive-deps": "warn", - "max-lines": ["warn", { "max": 500 }], - "react/display-name": 0 - }, - "parserOptions": { - "ecmaVersion": 2021, - "sourceType": "module", - "ecmaFeatures": { - "jsx": true + "extends": ["eslint:recommended", "plugin:react/recommended", "prettier"], + "plugins": ["react-hooks"], + "rules": { + "react/jsx-uses-react": "off", + "react/react-in-jsx-scope": "off", + "semi": 2, + "no-console": "off", + "react/prop-types": 0, + "react/no-unescaped-entities": "off", + "no-unused-vars": ["error", { "ignoreRestSiblings": true }], + "react-hooks/rules-of-hooks": "error", + "react-hooks/exhaustive-deps": "warn", + "max-lines": ["warn", { "max": 500 }], + "react/display-name": 0 + }, + "parserOptions": { + "ecmaVersion": 2021, + "sourceType": "module", + "ecmaFeatures": { + "jsx": true + } + }, + "globals": { + "UE": true + }, + "env": { + "browser": true, + "node": true, + "es6": true, + "serviceworker": true + }, + "settings": { + "react": { + "version": "17" + } } - }, - "globals": { - "UE": true - }, - "env": { - "browser": true, - "node": true, - "es6": true, - "serviceworker": true - }, - "settings": { - "react": { - "version": "17" - } - } }