mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-06 02:30:46 -08:00
Update eslint config (#9457)
* Update eslint config * Switch off max classes restriction * Enforce tab indent, semicolon * Warn when there exists unused vars * Update change note * Update change note * Update change note
This commit is contained in:
parent
6cb333b65b
commit
4c27c09b4d
2 changed files with 16 additions and 4 deletions
|
|
@ -0,0 +1,12 @@
|
||||||
|
title: $:/changenotes/5.4.0/#9457
|
||||||
|
description: Update eslint configuration
|
||||||
|
release: 5.4.0
|
||||||
|
tags: $:/tags/ChangeNote
|
||||||
|
change-type: enhancement
|
||||||
|
change-category: developer
|
||||||
|
github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9457
|
||||||
|
github-contributors: Leilei332
|
||||||
|
|
||||||
|
* Enforce tab indentation, semicolon
|
||||||
|
* Switch off `max-classes-per-file`
|
||||||
|
* Show warning for unused variables
|
||||||
|
|
@ -100,7 +100,7 @@ js.configs.recommended,
|
||||||
"id-length": "off",
|
"id-length": "off",
|
||||||
"id-match": "error",
|
"id-match": "error",
|
||||||
"@stylistic/implicit-arrow-linebreak": "error",
|
"@stylistic/implicit-arrow-linebreak": "error",
|
||||||
"@stylistic/indent": "off",
|
"@stylistic/indent": ["error", "tab"],
|
||||||
"init-declarations": "off",
|
"init-declarations": "off",
|
||||||
"@stylistic/jsx-quotes": "error",
|
"@stylistic/jsx-quotes": "error",
|
||||||
"@stylistic/key-spacing": "off",
|
"@stylistic/key-spacing": "off",
|
||||||
|
|
@ -121,7 +121,7 @@ js.configs.recommended,
|
||||||
"@stylistic/lines-around-comment": "off",
|
"@stylistic/lines-around-comment": "off",
|
||||||
"@stylistic/lines-around-directive": "off",
|
"@stylistic/lines-around-directive": "off",
|
||||||
"@stylistic/lines-between-class-members": "error",
|
"@stylistic/lines-between-class-members": "error",
|
||||||
"max-classes-per-file": "error",
|
"max-classes-per-file": "off",
|
||||||
"max-depth": "off",
|
"max-depth": "off",
|
||||||
"@stylistic/max-len": "off",
|
"@stylistic/max-len": "off",
|
||||||
"max-lines": "off",
|
"max-lines": "off",
|
||||||
|
|
@ -266,7 +266,7 @@ js.configs.recommended,
|
||||||
"require-jsdoc": "off",
|
"require-jsdoc": "off",
|
||||||
"require-unicode-regexp": "off",
|
"require-unicode-regexp": "off",
|
||||||
"@stylistic/rest-spread-spacing": "error",
|
"@stylistic/rest-spread-spacing": "error",
|
||||||
"@stylistic/semi": "off",
|
"@stylistic/semi": ["error", "always"],
|
||||||
"@stylistic/semi-spacing": "off",
|
"@stylistic/semi-spacing": "off",
|
||||||
"@stylistic/semi-style": "off",
|
"@stylistic/semi-style": "off",
|
||||||
"sort-imports": "error",
|
"sort-imports": "error",
|
||||||
|
|
@ -293,7 +293,7 @@ js.configs.recommended,
|
||||||
yoda: "off",
|
yoda: "off",
|
||||||
// temporary rules
|
// temporary rules
|
||||||
"no-useless-escape": "off",
|
"no-useless-escape": "off",
|
||||||
"no-unused-vars": "off",
|
"no-unused-vars": "warn",
|
||||||
"no-empty": "off",
|
"no-empty": "off",
|
||||||
"@stylistic/no-extra-semi": "off",
|
"@stylistic/no-extra-semi": "off",
|
||||||
"no-redeclare": "off",
|
"no-redeclare": "off",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue