All notable changes to the eslint-config-default project.
Copyright 2015-2018 Sudaraka Wijesinghe sudaraka@sudaraka.org
This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it and/or modify it under the terms of the BSD 2-clause License. See the LICENSE file for more details.
- All published rules as of
eslint-plugin-react
7.6.1
- Update ESLint dependency to 4.17.0 (no rules changes).
- Disabled
multiline-comment-style
, all available options conflict with my coding style.
- Disabled
no-inline-comments
, want to use inline comments to hint argument names, types, etc.
- All published rules as of ESLint 4.12.0
- All published rules as of
eslint-plugin-react
7.5.1jsx-curly-brace-presence
off by default to allow use of braces only when necessary.
- Set
ESLint
as a peer dependency.
- All published rules as of ESLint 4.6.0
- Graceful handling of remote data errors.
- Turn off rule package version tag processing by default. (version tag processing can be enabled by command line parameter)
- Allow modification of event properties (i.e.
e.target.disabled = true
) - Allow magic numbers 0, 1 and 2.
0, 1 allowed for length/emptiness test (i.e.
1 > length
or0 < length
)2 allowed for decimal point representation (i.e.
value.toFixed(2)
) - Adjust for
unpkg.com
URL change. (?json
=>?meta
) - Removed some clutter using argument spread.
- Prevent errors from being swallowed at
Promise.catch
handlers in mid-process.
- Set default behavior for following rules to
error
:array-callback-return
consistent-return
no-empty-function
no-magic-numbers
(withignoreArrayIndexes: true
)no-param-reassign
(withprops: true
)camelcase
no-inline-comments
padded-blocks
(never)init-declarations
(always)
.eslintrc
andnpm
script command to self-lint file in this package.
- Switch to use
line-aligned
for JSX closing brackets. - Turn off all deprecated rules as of ESLint 4.5.0
- Split default rule set into multiple modules.
- Lint error in .js files.
- All published rules as of
eslint-plugin-react
7.2.0
- All published rules as of ESLint 4.2.0
- All published rules as of
eslint-plugin-react
7.1.0
- All published rules as of ESLint 4.0.0
- All published rules as of
eslint-plugin-react
7.0.1 - checkrules.js: lookup multiple release tags in same package.
- Deprecated rules from
react
plugin.
- Adjust
no-multi-spaces
rule to allow multiple (conventionally 2) spaced before EOL comment.
- All published rules as of ESLint 3.17.0
- checkrules.js: introduce optional rule name prefixes to handle internal rule name vs filename incompatibilities in plugins.
- All published rules as of
eslint-plugin-react
6.10.0
- checkrules.js: Rename "prefix" field in source dataset to "namespace".
- checkrules.js: Adjust for ESLint v3.16 package structure.
prefixes
field ofRULE_SOURCES
always have to be an Array.
- Extended configuration file for Preact based projects.
- All published rules as of ESLint 3.15.0
- All published rules as of ESLint 3.14.0
- Source to check released rules of
eslint-react-plugin
via unpkg.com.
- Get package information from
npm
repository. - Set
ESLint
as direct dependency.
- Sources for unreleased rules on github.
- Support to process rules from multiple locations in
checkrules.js
. - Optional/Custom function to process rules data retrieved from the remote source.
- Support rule prefixes.
- Source to check rules of
eslint-react-plugin
. - Available rules of
eslint-plugin-react
on 2017-01-20.
- Use
chalk
for colorful display of the result.
- All published rules as of ESLint 3.13.0
- Turned off
capitalized-comments
rule.
- All published rules as of ESLint 3.12.0
- All published rules as of
eslint-plugin-react
6.4.1
- All published rules as of ESLint 3.8.0
- Allow _ to indicate unused argument.
- Do not apply
max-len
rule to strings and template literals.
- Make
max-len
for code 100 to allow some flexibility. 80 should be the limit by discipline/practice.
- Invalid value in max-line rule ('error' => 2)
- All published rules as of ESLint 3.5.0
- Rename npmcdn.com to unpkg.com (via https://github.com/npmcdn-to-unpkg-bot PR, Thanks).
- Removed some duplicated entries in default rules.
- All published rules as of ESLint 3.3.0
- All published rules as of
eslint-plugin-react
6.0.0
- Allow underscore as unused variable for throw aways.
- checkrules.js: show different shape icons for released and beta rules.
- checkrules.js: show github link for beta rules.
- checkrules.js: get latest
ESLint
version fromnpm
repository instead of frompackage.json
. - checkrules.js: Remove unwanted line breaks from output.
- All published rules as of ESLint 3.1.0
- Adjusted strict mode setting for ES5 configuration.
- checkrules.js: show pre-release rule changes from github master branch.
- Allow template literals in
quotes
rule.
eslint
2.13.0 and later require relative extend to include file extension.
- Default rules no longer inherit from
eslint:recommended
.
- All published rules as of ESLint 2.12.0
- Make
no-warning-comments
rule show a warning instead of an error.
- Removed parts of the
default.js
description that are incorrect. - Adjusted quotes and white-spaces to match with default rules.
- Added missing second argument to
no-extra-parens
rule.
- All published rules as of ESLint 2.11.0
- Require space after
try
keyword. - Make rule settings use text instead of integer.
- checkrules.js: lookup new rules based on the current peer dependency setting via npmcdn.com
- All published rules as of ESLint 2.10.2
- Added
eslint
as a peer dependency to this package. - checkrules.js: lookup
ESLint
Github repository for new/removed rules.
- Changed
package.json
author URL to HTTPS. - Disabled
react/jsx-no-bind
, like to use it and keep child components stateless. - Disabled
react/prop-types
, it's annoying to use with Redux enabled components. - Require spaces inside array brackets.
- React configuration depends on
eslint-plugin-react
plugin. - Included all rules from React plugin v4.0 to React configuration.
- Missing rule
no-unused-vars
to the default configuration. - Extended configuration file for React JS based projects.
- ES2015 environment enabled by default.
- Do not require ending semicolons.
- Updated rules and configuration for ESLint v2 compatibility.
- Make linebreaks to be in before operators (changed my mind).
- Relaxed the requirement of parenthesis around function arguments.
- Turned off id-length rule as it became impractical to maintain exceptions.
- Converted .js files to 2 space indentation.
- Disabled no-mixed-requires rule in favour of one-var
- Update copyright year to include 2016.
- Disabled padded-block rule as both options given by it makes the code ugly.
- Allow more nested callbacks, need them when using
mocha
testing scripts. - Switched to using 2 space indentation for JS code.
- Allow _ as short identifier, used to indicate unused variable.
- Allow x and y as short identifiers, used when specifying coordinates.
- Make space after/before object curly braces mandatory.
- Extended configuration file for ES5 projects that target web browsers.
- Fixed a typo in package.json author information caused by bad .npmrc setting.
- Package name changed to
@sudaraka/eslint-config-default
- Abandoning package name
@sudaraka/eslint-config
to enable better extensibility.
- Allow number id identifier names
- Default ESLint configuration with (almost) all rules enabled
- Scoped npm package to be used by eslint
extends
configuration - README, LICENSE and CHANGELOG