inline-assets
Version:
Inline External Assets of HTML/CSS Files
86 lines (80 loc) • 4.06 kB
JavaScript
/*
** node-inline-assets -- Inline External Assets of HTML/CSS Files
** Copyright (c) 2014-2023 Dr. Ralf S. Engelschall <http://engelschall.com>
**
** Permission is hereby granted, free of charge, to any person obtaining
** a copy of this software and associated documentation files (the
** "Software"), to deal in the Software without restriction, including
** without limitation the rights to use, copy, modify, merge, publish,
** distribute, sublicense, and/or sell copies of the Software, and to
** permit persons to whom the Software is furnished to do so, subject to
** the following conditions:
**
** The above copyright notice and this permission notice shall be included
** in all copies or substantial portions of the Software.
**
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
import pluginJs from "@eslint/js"
import pluginStd from "neostandard"
import pluginN from "eslint-plugin-n"
import globals from "globals"
export default [
pluginJs.configs.recommended,
...pluginStd({
ignores: pluginStd.resolveIgnoresFromGitignore()
}),
{
plugins: {
"n": pluginN
},
files: [ "bin/*.js", "lib/*.js", "tasks/*.js" ],
languageOptions: {
ecmaVersion: 2024,
sourceType: "module",
parserOptions: {
ecmaFeatures: {
jsx: false
}
},
globals: {
...globals.node,
...globals.browser,
...globals.commonjs
}
},
rules: {
"curly": "off",
"require-atomic-updates": "off",
"dot-notation": "off",
"no-labels": "off",
"no-useless-constructor": "off",
"no-unused-vars": "off",
"no-var": "off",
"camelcase": "off",
"new-cap": "off",
"@stylistic/indent": "off",
"@stylistic/linebreak-style": [ "error", "unix" ],
"@stylistic/semi": [ "error", "never" ],
"@stylistic/operator-linebreak": [ "error", "after", { overrides: { "&&": "before", "||": "before", ":": "after" } } ],
"@stylistic/brace-style": [ "error", "stroustrup", { allowSingleLine: true } ],
"@stylistic/quotes": [ "error", "double" ],
"@stylistic/no-multi-spaces": "off",
"@stylistic/no-multiple-empty-lines": "off",
"@stylistic/key-spacing": "off",
"@stylistic/object-property-newline": "off",
"@stylistic/space-in-parens": "off",
"@stylistic/array-bracket-spacing": "off",
"@stylistic/lines-between-class-members": "off",
"@stylistic/multiline-ternary": "off",
"@stylistic/quote-props": "off",
"@stylistic/object-curly-newline": "off"
}
}
]