Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/jotai/.eslintrc.json

👻 Primitive and flexible state management for React
Go to Latest
File
{ "env": { "browser": true, "shared-node-browser": true, "node": true, "es6": true }, "extends": [ "prettier", "plugin:prettier/recommended", "plugin:react-hooks/recommended", "plugin:import/errors", "plugin:import/warnings" ], "plugins": [ "@typescript-eslint", "react", "prettier", "react-hooks", "import", "jest" ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, "sourceType": "module", "ecmaFeatures": { "jsx": true } }, "rules": { "curly": ["warn", "multi-line", "consistent"], "no-console": "off", "import/no-unresolved": ["error", { "commonjs": true, "amd": true }], "import/export": "error", "@typescript-eslint/no-duplicate-imports": ["error"], "@typescript-eslint/explicit-module-boundary-types": "off", "@typescript-eslint/no-unused-vars": [ "warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" } ], "@typescript-eslint/no-use-before-define": "off", "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-explicit-any": "off", "jest/consistent-test-it": [ "error", { "fn": "it", "withinDescribe": "it" } ], "import/order": [ "error", { "alphabetize": { "order": "asc", "caseInsensitive": true }, "groups": [ "builtin", "external", "internal", "parent", "sibling", "index", "object" ], "newlines-between": "never", "pathGroups": [ { "pattern": "react", "group": "builtin", "position": "before" } ], "pathGroupsExcludedImportTypes": ["builtin"] } ], "react/jsx-uses-react": "off", "react/react-in-jsx-scope": "off", "sort-imports": [ "error", { "ignoreDeclarationSort": true } ] }, "settings": { "react": { "version": "detect" }, "import/extensions": [".js", ".jsx", ".ts", ".tsx"], "import/parsers": { "@typescript-eslint/parser": [".js", ".jsx", ".ts", ".tsx"] }, "import/resolver": { "node": { "extensions": [".js", ".jsx", ".ts", ".tsx", ".json"], "paths": ["src"] }, "alias": { "extensions": [".js", ".jsx", ".ts", ".tsx", ".json"], "map": [ ["^jotai$", "./src/index.ts"], ["jotai", "./src"] ] } } }, "overrides": [ { "files": ["src"], "parserOptions": { "project": "./tsconfig.json" } } ]}