{"id":24988711,"url":"https://github.com/maptalks/eslint-config-maptalks","last_synced_at":"2025-03-29T11:19:24.905Z","repository":{"id":57228629,"uuid":"54260209","full_name":"maptalks/eslint-config-maptalks","owner":"maptalks","description":"An ESLint config for MapTalks javascript projects","archived":false,"fork":false,"pushed_at":"2019-03-03T05:04:46.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-05T16:42:31.694Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maptalks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-19T10:28:51.000Z","updated_at":"2019-03-03T05:04:48.000Z","dependencies_parsed_at":"2022-09-14T14:20:37.051Z","dependency_job_id":null,"html_url":"https://github.com/maptalks/eslint-config-maptalks","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maptalks%2Feslint-config-maptalks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maptalks%2Feslint-config-maptalks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maptalks%2Feslint-config-maptalks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maptalks%2Feslint-config-maptalks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maptalks","download_url":"https://codeload.github.com/maptalks/eslint-config-maptalks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174651,"owners_count":20735425,"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":"2025-02-04T12:05:08.142Z","updated_at":"2025-03-29T11:19:24.869Z","avatar_url":"https://github.com/maptalks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-maptalks\nAn ESLint config for MapTalks javascript projects\n\n## Install\n```bash\nnpm install eslint eslint-config-maptalks --save-dev\n```\nThen add a following .eslintrc file in the repo root:\n```javascript\n{\n  \"extends\": \"maptalks\"\n}\n```\n## Usage\n\n### CLI\n\n```bash\nnpm install eslint eslint-config-maptalks -g\neslint src/**/*.js\n```\nSimple errors like indentation or quotes can be fixed automatically by \n```bash\neslint src/**/*.js --fix\n```\n\n### With gulp-eslint\n```javascript\nvar eslint = require('gulp-eslint');\ngulp.task('lint', function() {\n  gulp.src('src/**/*.js')\n      //the parameter of eslint is optional\n      //used to override the default rules\n      .pipe(eslint({\n          extends: 'maptalks',\n          globals: {\n              'Z':true\n          }\n      }))\n      .pipe(eslint.format())\n      .pipe(eslint.failAfterError())\n});\n```\n\n### In package.json\n```javascript\n\"scripts\": {\n  \"lint\": \"eslint src/**/*.js\",\n  \"pretest\": \"npm run lint\"\n}\n```\nRun in terminal and enjoy thousands of errors:\n```bash\nnpm run lint\n```\n## Config\nCan be extended by .eslintrc file\n```javascript\n{\n  extends: 'maptalks',\n  globals: {\n      'Z':true\n  }\n}\n```\n\n## Credits\nbased on [mourner](https://github.com/mourner)'s [eslint-config-mourner](https://github.com/mourner/eslint-config-mourner)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaptalks%2Feslint-config-maptalks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaptalks%2Feslint-config-maptalks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaptalks%2Feslint-config-maptalks/lists"}