eslint-config-standard-browser

1.0.0 • Public • Published

eslint-config-standard-browser

ESLint Shareable Config for browser in JavaScript Standard Style

no-unused-vars

no-unused-vars has no effect when used with the node or commonjs environments or when ecmaFeatures.modules is true. See:

So I made the following changes.

  • delete config.parserOptions.sourceType
  • change env node to browser

At first, I want to extends eslint-config-standard and override the env. But failed because we can not override env now. See https://github.com/eslint/eslint/issues/2614

And also I config no-unused-vars to check only locally-declared variables. See http://eslint.org/docs/rules/no-unused-vars

{
  "rules": {
    "no-unused-vars": ["error", { "vars": "local", "args": "after-used" }]
  }
}

Package Sidebar

Install

npm i eslint-config-standard-browser

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • zyy7259