{"id":18886805,"url":"https://github.com/albertfdp/standard-react-loader","last_synced_at":"2026-02-23T19:30:18.045Z","repository":{"id":57369382,"uuid":"56349526","full_name":"albertfdp/standard-react-loader","owner":"albertfdp","description":"Lint webpack builds with feross/standard-react","archived":false,"fork":false,"pushed_at":"2016-04-15T21:13:11.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T05:17:06.267Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/albertfdp.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-04-15T21:01:07.000Z","updated_at":"2016-04-15T21:06:41.000Z","dependencies_parsed_at":"2022-08-26T04:43:42.461Z","dependency_job_id":null,"html_url":"https://github.com/albertfdp/standard-react-loader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Fstandard-react-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Fstandard-react-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Fstandard-react-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Fstandard-react-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albertfdp","download_url":"https://codeload.github.com/albertfdp/standard-react-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859566,"owners_count":19708861,"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-11-08T07:30:56.894Z","updated_at":"2026-02-23T19:30:17.974Z","avatar_url":"https://github.com/albertfdp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# standard-react-loader\n\nwebpack loader for linting your code with [feross/standard-react](https://github.com/feross/standard-react)\n\nThis loader is built on the existing [timoxley/standard-loader](https://github.com/timoxley/standard-loader) but uses standard-react so that you can get warnings for your React specific rules.\n\n## Installation\n\n```\nnpm install --save-dev standard-react-loader\n```\n\n## Usage\n\n```js\n// webpack.config.js\nconst webpack = require('webpack')\n\nconst config = {\n  // ...\n  module: {\n    preLoaders: [\n      {\n        // set up standard-loader as a preloader\n        test: /\\.jsx?$/,\n        loader: 'standard-react',\n        exclude: /(node_modules|bower_components)/\n      }\n    ],\n    loaders: [\n      // ...\n    ]\n  },\n  standard: {\n    // config options to be passed through to standard e.g.\n    parser: 'babel-eslint'\n  }\n}\n\nmodule.exports = config\n```\n\n### Example Input\n\n```js\n//code not conforming to standard style\n\nmodule.exports = function(a,b) {\n    console.log( a, b);\n}\n\n```\n\n### Example Output\n```\n\u003e webpack\nHash: 757e85681387cfef939a\nVersion: webpack 1.9.11\nTime: 1152ms\n   Asset     Size  Chunks             Chunk Names\nbuild.js  2.01 kB       0  [emitted]  bundle\n    + 1 hidden modules\n\nWARNING in ./index.js\nstandard: Use JavaScript Standard Style (https://github.com/feross/standard)\n\n\u003ctext\u003e:1:0: Expected space or tab after // in comment.\n\u003ctext\u003e:3:25: Missing space before function parentheses.\n\u003ctext\u003e:3:27: A space is required after ','.\n\u003ctext\u003e:4:2: Expected indentation of 2 characters.\n\u003ctext\u003e:4:15: There should be no spaces inside this paren.\n\u003ctext\u003e:4:23: Extra semicolon.\n\u003ctext\u003e:7:0: Multiple blank lines not allowed.\n```\n\n## Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertfdp%2Fstandard-react-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertfdp%2Fstandard-react-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertfdp%2Fstandard-react-loader/lists"}