More eslint tweaks
This commit is contained in:
@@ -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
|
||||||
|
|||||||
10
pug-opts.js
10
pug-opts.js
@@ -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();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user