UNPKG

node-red-contrib-postgresql

Version:

Node-RED node for PostgreSQL, supporting parameters, split, back-pressure

62 lines (60 loc) 1.46 kB
import globals from "globals"; import html from "eslint-plugin-html"; import js from "@eslint/js"; import neostandard, { resolveIgnoresFromGitignore } from 'neostandard'; import stylistic from '@stylistic/eslint-plugin'; export default [ { files: ["**/*.js"], languageOptions: { globals: { ...globals.browser, }, sourceType: "script", }, }, { files: ["**/*.html"], plugins: { html }, settings: { "html/indent": "tab", "html/report-bad-indent": "error", }, }, { ignores: [ ...resolveIgnoresFromGitignore(), ], }, js.configs.recommended, // stylistic.configs['recommended-flat'], ...neostandard(), { plugins: { "@stylistic": stylistic, }, rules: { "camelcase": "off", "eqeqeq": "off", "no-empty": ["error", { "allowEmptyCatch": true }], "no-unused-vars": ["error", { "args": "none", "caughtErrors": "none", }], "object-shorthand": ["warn", "consistent"], "yoda": "off", "@stylistic/indent": ["warn", "tab", { "SwitchCase": 1 }], "@stylistic/linebreak-style": ["error", "unix"], "@stylistic/max-len": ["warn", 165], "@stylistic/no-tabs": "off", "@stylistic/quotes": ["off", "single", { "avoidEscape": true }], "@stylistic/quote-props": ["warn", "consistent"], "@stylistic/semi": ["warn", "always"], "@stylistic/space-before-function-paren": ["warn", { "anonymous": "always", "asyncArrow": "always", "named": "never", }], }, }, ];