Releases: tjw-lint/eslint-config-tjw-base
Releases · tjw-lint/eslint-config-tjw-base
Add arrow-spacing rule
Requires ()=>{}
to be changed to () => {}
.
Updated deps.
Update README
Update the README.
ESLint 9 + Stylistic
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
tono-restricted-syntax.js
to work better with ESLint v9 - Update README instructions for ESLint 9 and ESM
- Updated
devDependencies
- Specified
peerDependencies
Updates
- 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
Initial release
- Rules created
- published to npm