Skip to content

Releases: tjw-lint/eslint-config-tjw-base

Add arrow-spacing rule

06 Nov 02:31
Compare
Choose a tag to compare

Requires ()=>{} to be changed to () => {}.

Updated deps.

Update README

07 Sep 23:17
Compare
Choose a tag to compare

Update the README.

ESLint 9 + Stylistic

07 Sep 22:58
Compare
Choose a tag to compare

ESLint 9 completely changed their config format and switched to ESM. This release updates the library to be compatible with ESLint 9+. If you are using CJS or ESLint 8, you will need to upgrade to use this release.

  • Library is now "type": "module"
  • Updated linting rules:
    • Now targets ES2025
    • ESLint 9 deprecated all stylistic rules, so we now use @Stylistic for these, where they continue to be maintained
    • No other linting rules were changed
  • Renamed no-restricted-syntax.json to no-restricted-syntax.js to work better with ESLint v9
  • Update README instructions for ESLint 9 and ESM
  • Updated devDependencies
  • Specified peerDependencies

Updates

10 Mar 01:33
38c4f02
Compare
Choose a tag to compare
  • Updated linting rules:
    • Now targets ES2022
    • Rules all have comments to explain their use
    • Parenthesis are now mandatory in Arrow function definitions
    • In objects keys now require a space between them and values
    • Console and Debugger linting errors were removed, they only applied to NODE_ENV of 'production' anyway
    • No empty lines at the top of the file.
    • One empty line at the bottom of a file for git (EOF)
    • No more than 2 consecutive empty lines anywhere else
    • When splitting up boolean checks the && goes at the end of the line
    • An functions and if blocks cannot start or end with an empty line
  • Added Code of Conduct
  • Created a no-restricted-syntax.json file for merging with other rules
  • Update README to include instructions regarding no-restricted-syntax.json
  • Updated devDependencies
  • Set up self-linting of this repo using it's own rules
  • Added a test file to use when verifying new rules

Initial Release

23 Sep 20:22
Compare
Choose a tag to compare

Initial release

  • Rules created
  • published to npm