mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-07 06:30:03 +00:00
Add keyword-spacing rule to .eslintrc.yml to reflect the project code style. (#6431)
- Update .eslintignore to ignore "third party" code. - Add a "lint" script to package.json so `npm run lint` runs eslint on the repo.
This commit is contained in:
parent
1a0c831216
commit
edb5dc3fdc
@ -1,15 +1,8 @@
|
|||||||
# Known minified files
|
# Ignore "third party" code whose style we will not change.
|
||||||
/boot/sjcl.js
|
/boot/sjcl.js
|
||||||
|
/core/modules/utils/base64-utf8/base64-utf8.module.js
|
||||||
/core/modules/utils/base64-utf8/base64-utf8.module.min.js
|
/core/modules/utils/base64-utf8/base64-utf8.module.min.js
|
||||||
/core/modules/utils/diff-match-patch/diff_match_patch.js
|
/core/modules/utils/diff-match-patch/diff_match_patch.js
|
||||||
/plugins/tiddlywiki/async/files/async.min.v1.5.0.js
|
/core/modules/utils/diff-match-patch/diff_match_patch_uncompressed.js
|
||||||
/plugins/tiddlywiki/codemirror-autocomplete/files/addon/hint/anyword-hint.js
|
/core/modules/utils/dom/csscolorparser.js
|
||||||
/plugins/tiddlywiki/codemirror-autocomplete/files/addon/hint/css-hint.js
|
/plugins/tiddlywiki/*/files/
|
||||||
/plugins/tiddlywiki/codemirror-autocomplete/files/addon/hint/html-hint.js
|
|
||||||
/plugins/tiddlywiki/codemirror-autocomplete/files/addon/hint/javascript-hint.js
|
|
||||||
/plugins/tiddlywiki/codemirror-autocomplete/files/addon/hint/show-hint.js
|
|
||||||
/plugins/tiddlywiki/codemirror-autocomplete/files/addon/hint/xml-hint.js
|
|
||||||
/plugins/tiddlywiki/codemirror-closebrackets/files/addon/edit/closebrackets.js
|
|
||||||
/plugins/tiddlywiki/codemirror-closebrackets/files/addon/edit/matchbrackets.js
|
|
||||||
/plugins/tiddlywiki/codemirror-closetag/files/addon/edit/closetag.js
|
|
||||||
/plugins/tiddlywiki/codemirror-closetag/files/addon/fold/xml-fold.js
|
|
||||||
|
@ -64,7 +64,23 @@ rules:
|
|||||||
init-declarations: 'off'
|
init-declarations: 'off'
|
||||||
jsx-quotes: error
|
jsx-quotes: error
|
||||||
key-spacing: 'off'
|
key-spacing: 'off'
|
||||||
keyword-spacing: 'off'
|
keyword-spacing:
|
||||||
|
- error
|
||||||
|
- before: true
|
||||||
|
after: false
|
||||||
|
overrides:
|
||||||
|
'case':
|
||||||
|
after: true
|
||||||
|
'do':
|
||||||
|
'after': true
|
||||||
|
'else':
|
||||||
|
after: true
|
||||||
|
'return':
|
||||||
|
after: true
|
||||||
|
'throw':
|
||||||
|
after: true
|
||||||
|
'try':
|
||||||
|
after: true
|
||||||
line-comment-position: 'off'
|
line-comment-position: 'off'
|
||||||
linebreak-style: 'off'
|
linebreak-style: 'off'
|
||||||
lines-around-comment: 'off'
|
lines-around-comment: 'off'
|
||||||
|
@ -23,13 +23,16 @@
|
|||||||
"tiddlywiki5",
|
"tiddlywiki5",
|
||||||
"wiki"
|
"wiki"
|
||||||
],
|
],
|
||||||
"dependencies": {},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^7.10.0"
|
"eslint": "^7.32.0"
|
||||||
},
|
},
|
||||||
"bundleDependencies": [],
|
"bundleDependencies": [],
|
||||||
"license": "BSD",
|
"license": "BSD",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.8.2"
|
"node": ">=0.8.2"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"lint": "eslint ."
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user