{"name":"eslint-config-universe","version":"0.0.1-canary-20240328-24ecc5e","keywords":["eslint-config","expo","react-native"],"author":{"name":"Expo"},"license":"MIT","_id":"eslint-config-universe@0.0.1-canary-20240328-24ecc5e","homepage":"https://github.com/expo/expo/tree/main/packages/eslint-config-universe","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"23e8a7b7dd6a137004e7c2cc3ad6a13a80362396","tarball":"http://registry-npm.ywwl.com/eslint-config-universe/download/eslint-config-universe-0.0.1-canary-20240328-24ecc5e.tgz","fileCount":14,"integrity":"sha512-f0ws2gGmTbRHWlEqpaTHHjkJFsM3F3/CFB++U7jBeTPkBbKjlCJgkR6bLRFfkFit3qqyQ41Phhpmv4DABtCMsg==","signatures":[{"sig":"MEUCIQD9nR/uBXu+OhYrz8IptGEOH5enQCUq1L9eWM7Z0+l1CwIgXFWy1UgQMpNZ6e+RmL5ZP12TtVTcHcY56gxa5xZ2VYo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20240,"size":6628,"noattachment":false,"key":"/eslint-config-universe/-/eslint-config-universe-0.0.1-canary-20240328-24ecc5e.tgz"},"jest":{"testMatch":["**/__tests__/*-test.js"]},"main":"default.js","gitHead":"24ecc5e1b36bf606ad1babdc759694d9216e0842","scripts":{"lint":"eslint .","test":"jest"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git+https://github.com/expo/expo.git","type":"git","directory":"packages/eslint-config-universe"},"_npmVersion":"10.2.4","description":"Shared ESLint configs for universal Expo projects, Node, and web","directories":{},"_nodeVersion":"18.19.1","dependencies":{"eslint-plugin-node":"^11.1.0","eslint-plugin-react":"^7.32.2","eslint-plugin-import":"^2.27.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^5.0.0","@typescript-eslint/parser":"^6.0.0","eslint-plugin-react-hooks":"^4.6.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"eslintIgnore":["/__tests__/fixtures/*"],"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^29.2.1","eslint":"^8.56.0","prettier":"^3.1.1","@expo/spawn-async":"^1.7.2"},"peerDependencies":{"eslint":">=8.10","prettier":">=3"},"peerDependenciesMeta":{"prettier":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/eslint-config-universe_0.0.1-canary-20240328-24ecc5e_1711657576690_0.67899282678812","host":"s3://npm-registry-packages"},"readme":"# eslint-config-universe\nShared ESLint configs for Node, Web, and universal Expo projects.\n\n## Installation\n\n```sh\nyarn add --dev eslint-config-universe\n```\n\nYou will also need to install `eslint` and `prettier`:\n\n```sh\nyarn add --dev eslint@8 prettier\n```\n\n## Usage\n\nImport this config into your own ESLint configuration using the `extends` option. ESLint checks both `package.json` and `.eslintrc.*` files for its configuration:\n\n### package.json\n```js\n{\n  \"eslintConfig\": {\n    // Choose from universe/native, universe/node, universe/web\n    \"extends\": \"universe\"\n  }\n}\n```\n\n### .eslintrc.js\n```js\nmodule.exports = {\n  extends: 'universe',\n};\n```\n\n## Customizing Prettier\n\nIf you would like to customize the Prettier settings, create a file named `.prettierrc` in your project directory. An example of Prettier configuration file:\n\n```json\n{\n  \"printWidth\": 100,\n  \"tabWidth\": 2,\n  \"singleQuote\": true,\n  \"bracketSameLine\": true\n}\n```\n\nRead more about [configuring `prettier`](https://prettier.io/docs/en/configuration.html) and [all of the available options](https://prettier.io/docs/en/options.html).\n\n## Support for Different Platforms\n\nThere are several configs for different platforms. They are:\n* `universe`: the basic config for JavaScript projects for which there isn't a more specific config,\n* `universe/native`: the config for React Native projects, including Expo projects, with support for React and JSX,\n* `universe/web`: the config for code that runs in web browsers, with support for React and JSX,\n* `universe/node`: the config for code that runs in Node.\n\nFor an Expo project, your configuration might look like this:\n\n```js\n\"eslintConfig\": {\n  \"extends\": \"universe/native\"\n}\n```\n\nYou also can extend multiple configs, which is useful for projects that span several platforms:\n\n```js\n\"eslintConfig\": {\n  \"extends\": [\"universe/node\", \"universe/web\"]\n}\n```\n\n## Optional Additional TypeScript Typed Linting\n\nUniverse also provides optional additional config for `typescript-eslint` rules that make use of the parsed type information. Note that this may increase the time it takes to run lint for large projects. More information can be found at [TypeScript ESLint website](https://typescript-eslint.io/docs/linting/type-linting).\n\nTo enable the additional config, the following changes to your config are required:\n\n### .eslintrc.js\n\n```diff\nmodule.exports = {\n  extends: [\n    'universe',\n+   'universe/shared/typescript-analysis',\n  ],\n+ overrides: [\n+   {\n+     files: [\n+       '*.ts',\n+       '*.tsx',\n+       '*.d.ts'\n+     ],\n+     parserOptions: {\n+       project: './tsconfig.json'\n+     },\n+   },\n+ ],\n};\n```\n\nMore information on `parserOptions.project` option can be found in the [`typescript-eslint` repository](https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/parser#parseroptionsproject).\n\n## Philosophy\n\nThis config is designed to mark severe problems (ex: syntax errors) as errors and stylistic issues as warnings. This lets your team apply policies like, \"make sure a commit has no errors but ignore warnings if the commit didn't introduce them.\"\n\nIt's also designed to be a more lenient config for teams who are stronger at decision-making and have a culture of osmotically learning coding guidelines and benefit more from flexibility than rigid rules.\n","publish_time":1711657576840,"maintainers":[{"email":"radoslaw.krzemien@swmansion.com","name":"radoslawkrzemien"},{"email":"piotrek.szeremeta@swmansion.com","name":"pkham"},{"email":"szymon.dziedzic@swmansion.com","name":"szdziedzic"},{"email":"npm@tsapeta.com","name":"tsapeta"},{"email":"ide+npm@jameside.com","name":"ide"},{"email":"kosmatylukasz@gmail.com","name":"lukmccall"},{"email":"brent+expobotnpm@expo.io","name":"expo-bot"},{"email":"hughesno1@gmail.com","name":"alanhughes"},{"email":"hellokadi@gmail.com","name":"kadikraman"},{"email":"mikucki@gmail.com","name":"aleqsio"},{"email":"mwlawlor@gmail.com","name":"marklawlor"},{"email":"donadeldev@gmail.com","name":"gabrieldonadel"},{"email":"gosimek@gmail.com","name":"simek"},{"email":"keith@expo.io","name":"keith-kurak"},{"email":"chris@christopherwalter.com","name":"christopherwalter"},{"email":"datwheat@gmail.com","name":"fiber-god"},{"email":"brentvatne@gmail.com","name":"brentvatne"},{"email":"baconbrix@gmail.com","name":"evanbacon"},{"email":"quinlanjung@gmail.com","name":"quinlanj"},{"email":"support@expo.io","name":"expoadmin"},{"email":"exponent.team@gmail.com","name":"exponent"},{"email":"wschurman@gmail.com","name":"wschurman"},{"email":"me@bycedric.com","name":"bycedric"},{"email":"sampjon@gmail.com","name":"jonsamp"},{"email":"mhampton@hey.com","name":"princefleaswallow"},{"email":"ckchien@gmail.com","name":"kudochien"}],"_cnpm_publish_time":1711657576840,"dist-tags":{"canary":"16.1.3-canary-20261125142455-2d2e10238ebf6b263aa3f7162563f7598642acc1","canary-sdk-55":"15.0.4-canary-20260429-a5e59cf","canary-sdk-56":"15.2.1-canary-20260701-9100865","latest":"16.1.2","next":"16.1.2","sdk-50":"12.0.0","sdk-51":"12.1.0","sdk-52":"14.0.0"}}