{"id":23101152,"url":"https://github.com/codemask-labs/eslint-config-codemask","last_synced_at":"2025-04-03T21:18:09.029Z","repository":{"id":239138852,"uuid":"550873158","full_name":"codemask-labs/eslint-config-codemask","owner":"codemask-labs","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-01T09:34:06.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-01T09:34:38.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codemask-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-13T13:17:42.000Z","updated_at":"2025-04-01T09:34:10.000Z","dependencies_parsed_at":"2024-05-10T09:29:31.393Z","dependency_job_id":"e05abe18-a7c9-4da4-819b-c9d477ae38b3","html_url":"https://github.com/codemask-labs/eslint-config-codemask","commit_stats":null,"previous_names":["codemask-labs/eslint-config-codemask"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemask-labs%2Feslint-config-codemask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemask-labs%2Feslint-config-codemask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemask-labs%2Feslint-config-codemask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemask-labs%2Feslint-config-codemask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemask-labs","download_url":"https://codeload.github.com/codemask-labs/eslint-config-codemask/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247078866,"owners_count":20879953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-16T23:50:25.060Z","updated_at":"2025-04-03T21:18:09.022Z","avatar_url":"https://github.com/codemask-labs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESLint Config\n\nPackage aims to quickly setup your eslint and prettier configs based on Codemask guidelines.\n\n| Pkg version | Eslint version |\n| ----------- | -------------- |\n| 2.x         | \\\u003e 9.0         |\n| 1.x         | \u003c 9.0          |\n\n## What it does?\n\nIt simply extends ESLint and Prettier with rules used at Codemask. Check the `eslint.config.mjs` file to see what is included. If you are using prettier you can copy config file as well.\n\n## Installing\n\n1. Add `eslint` and `eslint-config-codemask` to your project:\n\n```\nyarn add --dev eslint eslint-config-codemask\n```\n\n2. Create (or update) a `eslint.config.mjs` file with the following content:\n\n```js\nimport { codemaskConfig, codemaskImportConfig, codemaskStylisticConfig } from 'eslint-config-codemask'\n\nexport default [\n    ...codemaskConfig,\n    ...codemaskImportConfig,\n    ...codemaskStylisticConfig\n]\n```\n\n#### codemaskConfig\nGeneral code standard rules\n\n#### codemaskImportConfig\n\nImport order rules\n\n#### codemaskStylisticConfig\n\nStylistic rules\n\nSkip if are using any formatter (prettier, dprint, etc.)\n\n---\n\n### Adding React Native plugin (optional)\n\n1. Add `eslint-plguin-react-native` to your project\n\n```\nyarn add eslint-plugin-react-native --dev\n```\n\n2. Include `react-native` plugin, and `react-native` rules:\n\n```js\nimport reactNative from 'eslint-plugin-react-native'\nimport { fixupPluginRules } from '@eslint/compat'\n\nexport default [\n    ...codemaskConfig,\n    {\n        plugins: {\n            'react-native': fixupPluginRules(reactNative),\n        },\n        rules: {\n            'react-native/no-raw-text': [\n                'error',\n                {\n                    skip: ['Typography'],\n                },\n            ],\n            'react-native/no-inline-styles': 'warn',\n        },\n    },\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemask-labs%2Feslint-config-codemask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemask-labs%2Feslint-config-codemask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemask-labs%2Feslint-config-codemask/lists"}