{ "env": { "browser": true, "es6": true }, "globals": { "Atomics": "readonly", "SharedArrayBuffer": "readonly" }, "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaFeatures": { "jsx": true }, "ecmaVersion": 2018, "sourceType": "module" }, "plugins": ["react", "@typescript-eslint", "prettier"], "extends": [ "plugin:react/recommended", "airbnb", "plugin:prettier/recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:storybook/recommended" ], "rules": { "prettier/prettier": "warn", "no-shadow": "off", "no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"], "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-unused-vars": "off", "react/jsx-filename-extension": [ 2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] } ], "react/require-default-props": "off", "no-case-declarations": "off", "no-plusplus": "off", "react/prop-types": 0, "react/no-unused-prop-types": "off", "no-continue": "off", "react/jsx-props-no-spreading": "off", "no-param-reassign": "off", "import/extensions": [ "error", "ignorePackages", { "js": "never", "mjs": "never", "jsx": "never", "ts": "never", "tsx": "never" } ], "import/prefer-default-export": "off", "no-use-before-define": "off", "react/no-unescaped-entities": "off", "import/no-unresolved": "off", "@typescript-eslint/no-use-before-define": ["error"], "import/no-extraneous-dependencies": [ "error", { "devDependencies": ["src/stories/**", "src/shared/components/**/*.stories.tsx", "**/*.stories.tsx"] } ] }, "settings": { "import/resolver": { "node": { "paths": ["src"], "extensions": [".js", ".jsx", ".ts", ".tsx"] } } } }