More eslint tweaks

This commit is contained in:
David Carley
2022-09-07 17:51:16 +00:00
parent 051e712b53
commit f91dc1d756
26 changed files with 312 additions and 301 deletions

View File

@@ -20,7 +20,12 @@ globals:
Clusterize: readonly Clusterize: readonly
SockJS: readonly SockJS: readonly
ignorePatterns: ignorePatterns:
- "**/dist/**/*" - /src/svelte-components/dist
- /src/static
- /build
- /dist
- /rpi-share
- /src/py/bbctrl/http
rules: rules:
indent: indent:
- off - off
@@ -45,6 +50,7 @@ rules:
- argsIgnorePattern: _.* - argsIgnorePattern: _.*
no-unused-vars: no-unused-vars:
- error - error
- argsIgnorePattern: _.*
no-trailing-spaces: no-trailing-spaces:
- error - error
key-spacing: key-spacing:
@@ -94,3 +100,8 @@ rules:
- error - error
space-infix-ops: space-infix-ops:
- error - error
space-before-function-paren:
- error
- anonymous: never
named: never
asyncArrow: always

View File

@@ -1,11 +1,11 @@
{ module.exports = {
pretty: true, pretty: true,
filters: { filters: {
browserify: function (text, options) { browserify: function(text, _options) {
return require('child_process').execSync( return require("child_process").execSync(
`./node_modules/.bin/browserify - --basedir src/js`, `./node_modules/.bin/browserify - --basedir src/js`,
{ input: text } { input: text }
).toString() ).toString();
}
} }
} }
};