From f418231b6b2f5e030a0d2dcc390c314602b1f740 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 6 Apr 2024 09:22:10 -0700 Subject: Move modern to the top --- .eslintrc.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .eslintrc.json (limited to '.eslintrc.json') diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 00000000..6a60e087 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,37 @@ +{ + "extends": "airbnb", + "parserOptions": { + "ecmaVersion": 2020 + }, + "overrides": [{ + "files": ["*.jsx", "*.js"] + }], + "plugins": [ + "react" + ], + "ignorePatterns": ["build/", "switcher.js", "theme.js"], + "rules": { + "max-len": [0], + "no-shadow": [0], + "no-return-assign": [0], + "no-param-reassign": [0], + "no-prototype-builtins": [0], + "object-curly-newline": [1, { + "ObjectExpression": { "minProperties": 8, "multiline": true, "consistent": true }, + "ObjectPattern": { "minProperties": 8, "multiline": true, "consistent": true }, + "ImportDeclaration": { "minProperties": 4, "multiline": true, "consistent": true }, + "ExportDeclaration": { "minProperties": 4, "multiline": true, "consistent": true } + }], + "import/no-unresolved": [1, { + "ignore": ["\\.svg", "virtual:"] + }], + "react/function-component-definition": [1, { + "namedComponents": "arrow-function", + "unnamedComponents": "arrow-function" + }], + "react/jsx-props-no-spreading": [0], + "jsx-a11y/anchor-is-valid": [0], + "jsx-a11y/label-has-associated-control": [0], + "react/prop-types": [0] + } +} -- cgit v1.2.3