aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/qs/eslint.config.mjs
diff options
context:
space:
mode:
authorpack <pack@packgekko.xyz>2026-08-09 10:37:07 +0000
committerpack <pack@packgekko.xyz>2026-08-09 10:37:07 +0000
commit55a4f1fc869e41aca748c63d3018f0448b1606e0 (patch)
treed132d1d01772b6d53faee3e63c534dea5706b78a /node_modules/qs/eslint.config.mjs
downloadcrud-55a4f1fc869e41aca748c63d3018f0448b1606e0.tar.gz
first commit
Diffstat (limited to 'node_modules/qs/eslint.config.mjs')
-rw-r--r--node_modules/qs/eslint.config.mjs57
1 files changed, 57 insertions, 0 deletions
diff --git a/node_modules/qs/eslint.config.mjs b/node_modules/qs/eslint.config.mjs
new file mode 100644
index 0000000..5c9fc1f
--- /dev/null
+++ b/node_modules/qs/eslint.config.mjs
@@ -0,0 +1,57 @@
+import ljharbConfig from '@ljharb/eslint-config/flat';
+
+export default [
+ {
+ ignores: ['dist/'],
+ },
+
+ ...ljharbConfig,
+
+ {
+ rules: {
+ complexity: 'off',
+ 'consistent-return': 'warn',
+ eqeqeq: ['error', 'allow-null'],
+ 'func-name-matching': 'off',
+ 'id-length': [
+ 'error',
+ {
+ max: 25,
+ min: 1,
+ properties: 'never',
+ },
+ ],
+ indent: ['error', 4],
+ 'max-lines': 'off',
+ 'max-lines-per-function': [
+ 'error',
+ { max: 150 },
+ ],
+ 'max-params': ['error', 18],
+ 'max-statements': ['error', 100],
+ 'multiline-comment-style': 'off',
+ 'no-continue': 'warn',
+ 'no-magic-numbers': 'off',
+ 'no-restricted-syntax': [
+ 'error',
+ 'BreakStatement',
+ 'DebuggerStatement',
+ 'ForInStatement',
+ 'LabeledStatement',
+ 'WithStatement',
+ ],
+ },
+ },
+
+ {
+ files: ['test/**'],
+ rules: {
+ 'function-paren-newline': 'off',
+ 'max-lines-per-function': 'off',
+ 'max-statements': 'off',
+ 'no-buffer-constructor': 'off',
+ 'no-extend-native': 'off',
+ 'no-throw-literal': 'off',
+ },
+ },
+];