@luxass/eslint-config 4.2.6 → 4.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +4 -5
  2. package/dist/index.cjs +165 -446
  3. package/dist/index.d.cts +733 -12
  4. package/dist/index.d.ts +733 -12
  5. package/dist/{configs/index.cjs → index.js} +308 -516
  6. package/package.json +51 -85
  7. package/dist/chunk-2IR43M6N.mjs +0 -48
  8. package/dist/chunk-47ISSTHW.mjs +0 -291
  9. package/dist/chunk-4YBQZLPS.mjs +0 -68
  10. package/dist/chunk-4YT54JFZ.mjs +0 -48
  11. package/dist/chunk-5NK24IKQ.mjs +0 -26
  12. package/dist/chunk-AJS3TMZE.mjs +0 -63
  13. package/dist/chunk-C6FE5KXJ.mjs +0 -104
  14. package/dist/chunk-DAJA5AV3.mjs +0 -29
  15. package/dist/chunk-DCOLHWHC.mjs +0 -269
  16. package/dist/chunk-E4RVBKZB.mjs +0 -207
  17. package/dist/chunk-HZNHG5PB.mjs +0 -45
  18. package/dist/chunk-KOXCJL3C.mjs +0 -109
  19. package/dist/chunk-PFCAWBCD.mjs +0 -93
  20. package/dist/chunk-PFYV2TWZ.mjs +0 -117
  21. package/dist/chunk-QT6FHTFU.mjs +0 -92
  22. package/dist/chunk-RDZJT36Z.mjs +0 -57
  23. package/dist/chunk-RVSUTDCE.mjs +0 -57
  24. package/dist/chunk-TWAETZPX.mjs +0 -149
  25. package/dist/chunk-WSQOWO67.mjs +0 -16
  26. package/dist/chunk-XBASVDU6.mjs +0 -215
  27. package/dist/chunk-XD3UVRU7.mjs +0 -274
  28. package/dist/chunk-XGI647GZ.mjs +0 -81
  29. package/dist/chunk-XMXYE5WC.mjs +0 -183
  30. package/dist/chunk-YNMFVYL6.mjs +0 -69
  31. package/dist/chunk-YO3IYQ2L.mjs +0 -220
  32. package/dist/chunk-YZCJUX6Z.mjs +0 -0
  33. package/dist/configs/comments.cjs +0 -63
  34. package/dist/configs/comments.d.cts +0 -15
  35. package/dist/configs/comments.d.ts +0 -15
  36. package/dist/configs/comments.mjs +0 -6
  37. package/dist/configs/css/tailwindcss.cjs +0 -148
  38. package/dist/configs/css/tailwindcss.d.cts +0 -11
  39. package/dist/configs/css/tailwindcss.d.ts +0 -11
  40. package/dist/configs/css/tailwindcss.mjs +0 -8
  41. package/dist/configs/css/unocss.cjs +0 -133
  42. package/dist/configs/css/unocss.d.cts +0 -11
  43. package/dist/configs/css/unocss.d.ts +0 -11
  44. package/dist/configs/css/unocss.mjs +0 -8
  45. package/dist/configs/data/json.cjs +0 -155
  46. package/dist/configs/data/json.d.cts +0 -11
  47. package/dist/configs/data/json.d.ts +0 -11
  48. package/dist/configs/data/json.mjs +0 -8
  49. package/dist/configs/data/toml.cjs +0 -131
  50. package/dist/configs/data/toml.d.cts +0 -11
  51. package/dist/configs/data/toml.d.ts +0 -11
  52. package/dist/configs/data/toml.mjs +0 -8
  53. package/dist/configs/data/yaml.cjs +0 -143
  54. package/dist/configs/data/yaml.d.cts +0 -11
  55. package/dist/configs/data/yaml.d.ts +0 -11
  56. package/dist/configs/data/yaml.mjs +0 -8
  57. package/dist/configs/docs/jsdoc.cjs +0 -85
  58. package/dist/configs/docs/jsdoc.d.cts +0 -27
  59. package/dist/configs/docs/jsdoc.d.ts +0 -27
  60. package/dist/configs/docs/jsdoc.mjs +0 -7
  61. package/dist/configs/docs/markdown.cjs +0 -164
  62. package/dist/configs/docs/markdown.d.cts +0 -35
  63. package/dist/configs/docs/markdown.d.ts +0 -35
  64. package/dist/configs/docs/markdown.mjs +0 -8
  65. package/dist/configs/formatters.cjs +0 -274
  66. package/dist/configs/formatters.d.cts +0 -11
  67. package/dist/configs/formatters.d.ts +0 -11
  68. package/dist/configs/formatters.mjs +0 -9
  69. package/dist/configs/frameworks/astro.cjs +0 -179
  70. package/dist/configs/frameworks/astro.d.cts +0 -11
  71. package/dist/configs/frameworks/astro.d.ts +0 -11
  72. package/dist/configs/frameworks/astro.mjs +0 -8
  73. package/dist/configs/frameworks/nextjs.cjs +0 -180
  74. package/dist/configs/frameworks/nextjs.d.cts +0 -11
  75. package/dist/configs/frameworks/nextjs.d.ts +0 -11
  76. package/dist/configs/frameworks/nextjs.mjs +0 -8
  77. package/dist/configs/frameworks/react.cjs +0 -377
  78. package/dist/configs/frameworks/react.d.cts +0 -11
  79. package/dist/configs/frameworks/react.d.ts +0 -11
  80. package/dist/configs/frameworks/react.mjs +0 -8
  81. package/dist/configs/frameworks/solid.cjs +0 -360
  82. package/dist/configs/frameworks/solid.d.cts +0 -11
  83. package/dist/configs/frameworks/solid.d.ts +0 -11
  84. package/dist/configs/frameworks/solid.mjs +0 -8
  85. package/dist/configs/frameworks/vue.cjs +0 -293
  86. package/dist/configs/frameworks/vue.d.cts +0 -11
  87. package/dist/configs/frameworks/vue.d.ts +0 -11
  88. package/dist/configs/frameworks/vue.mjs +0 -8
  89. package/dist/configs/ignores.cjs +0 -96
  90. package/dist/configs/ignores.d.cts +0 -15
  91. package/dist/configs/ignores.d.ts +0 -15
  92. package/dist/configs/ignores.mjs +0 -7
  93. package/dist/configs/imports.cjs +0 -104
  94. package/dist/configs/imports.d.cts +0 -23
  95. package/dist/configs/imports.d.ts +0 -23
  96. package/dist/configs/imports.mjs +0 -7
  97. package/dist/configs/index.d.cts +0 -19
  98. package/dist/configs/index.d.ts +0 -19
  99. package/dist/configs/index.mjs +0 -99
  100. package/dist/configs/javascript.cjs +0 -324
  101. package/dist/configs/javascript.d.cts +0 -11
  102. package/dist/configs/javascript.d.ts +0 -11
  103. package/dist/configs/javascript.mjs +0 -7
  104. package/dist/configs/node.cjs +0 -60
  105. package/dist/configs/node.d.cts +0 -15
  106. package/dist/configs/node.d.ts +0 -15
  107. package/dist/configs/node.mjs +0 -6
  108. package/dist/configs/sort.cjs +0 -240
  109. package/dist/configs/sort.d.cts +0 -26
  110. package/dist/configs/sort.d.ts +0 -26
  111. package/dist/configs/sort.mjs +0 -8
  112. package/dist/configs/stylistic.cjs +0 -98
  113. package/dist/configs/stylistic.d.cts +0 -11
  114. package/dist/configs/stylistic.d.ts +0 -11
  115. package/dist/configs/stylistic.mjs +0 -9
  116. package/dist/configs/test.cjs +0 -210
  117. package/dist/configs/test.d.cts +0 -11
  118. package/dist/configs/test.d.ts +0 -11
  119. package/dist/configs/test.mjs +0 -8
  120. package/dist/configs/typescript.cjs +0 -291
  121. package/dist/configs/typescript.d.cts +0 -11
  122. package/dist/configs/typescript.d.ts +0 -11
  123. package/dist/configs/typescript.mjs +0 -8
  124. package/dist/configs/unicorn.cjs +0 -91
  125. package/dist/configs/unicorn.d.cts +0 -15
  126. package/dist/configs/unicorn.d.ts +0 -15
  127. package/dist/configs/unicorn.mjs +0 -6
  128. package/dist/globs.cjs +0 -158
  129. package/dist/globs.d.cts +0 -28
  130. package/dist/globs.d.ts +0 -28
  131. package/dist/globs.mjs +0 -56
  132. package/dist/index.mjs +0 -278
  133. package/dist/types-HqEzZfQU.d.cts +0 -668
  134. package/dist/types-HqEzZfQU.d.ts +0 -668
@@ -1,26 +0,0 @@
1
- // src/configs/node.ts
2
- import pluginNode from "eslint-plugin-n";
3
- function node() {
4
- return [
5
- {
6
- name: "luxass:node",
7
- plugins: {
8
- node: pluginNode
9
- },
10
- rules: {
11
- "node/handle-callback-err": ["error", "^(err|error)$"],
12
- "node/no-deprecated-api": "error",
13
- "node/no-exports-assign": "error",
14
- "node/no-new-require": "error",
15
- "node/no-path-concat": "error",
16
- "node/prefer-global/buffer": ["error", "never"],
17
- "node/prefer-global/process": ["error", "never"],
18
- "node/process-exit-as-throw": "error"
19
- }
20
- }
21
- ];
22
- }
23
-
24
- export {
25
- node
26
- };
@@ -1,63 +0,0 @@
1
- import {
2
- ensure,
3
- interop
4
- } from "./chunk-4YBQZLPS.mjs";
5
- import {
6
- GLOB_SRC
7
- } from "./chunk-KOXCJL3C.mjs";
8
-
9
- // src/configs/css/tailwindcss.ts
10
- async function tailwindcss(options = {}) {
11
- const {
12
- files = [GLOB_SRC],
13
- overrides
14
- } = options;
15
- await ensure([
16
- "eslint-plugin-tailwindcss"
17
- ]);
18
- const [
19
- pluginTailwindCSS
20
- ] = await Promise.all([
21
- interop(import("eslint-plugin-tailwindcss"))
22
- ]);
23
- return [
24
- {
25
- name: "luxass:tailwindcss:setup",
26
- languageOptions: {
27
- parserOptions: {
28
- ecmaFeatures: {
29
- jsx: true
30
- }
31
- }
32
- },
33
- plugins: {
34
- tailwind: pluginTailwindCSS
35
- }
36
- },
37
- {
38
- name: "luxass:tailwindcss:rules",
39
- files,
40
- rules: {
41
- // https://github.com/francoismassart/eslint-plugin-tailwindcss/blob/master/docs/rules/classnames-order.md
42
- "tailwind/classnames-order": "warn",
43
- // https://github.com/francoismassart/eslint-plugin-tailwindcss/blob/master/docs/rules/enforces-negative-arbitrary-values.md
44
- "tailwind/enforces-negative-arbitrary-values": "warn",
45
- // https://github.com/francoismassart/eslint-plugin-tailwindcss/blob/master/docs/rules/enforces-shorthand.md
46
- "tailwind/enforces-shorthand": "warn",
47
- // https://github.com/francoismassart/eslint-plugin-tailwindcss/blob/master/docs/rules/migration-from-tailwind-2.md
48
- "tailwind/migration-from-tailwind-2": "warn",
49
- // https://github.com/francoismassart/eslint-plugin-tailwindcss/blob/master/docs/rules/no-arbitrary-value.md
50
- "tailwind/no-arbitrary-value": "off",
51
- // https://github.com/francoismassart/eslint-plugin-tailwindcss/blob/master/docs/rules/no-contradicting-classname.md
52
- "tailwind/no-contradicting-classname": "error",
53
- // https://github.com/francoismassart/eslint-plugin-tailwindcss/blob/master/docs/rules/no-custom-classname.md
54
- "tailwind/no-custom-classname": "warn",
55
- ...overrides
56
- }
57
- }
58
- ];
59
- }
60
-
61
- export {
62
- tailwindcss
63
- };
@@ -1,104 +0,0 @@
1
- import {
2
- interop
3
- } from "./chunk-4YBQZLPS.mjs";
4
- import {
5
- GLOB_MARKDOWN,
6
- GLOB_MARKDOWN_CODE,
7
- GLOB_MARKDOWN_IN_MARKDOWN
8
- } from "./chunk-KOXCJL3C.mjs";
9
-
10
- // src/configs/docs/markdown.ts
11
- import * as parserPlain from "eslint-parser-plain";
12
- import { mergeProcessors, processorPassThrough } from "eslint-merge-processors";
13
- async function markdown(options = {}) {
14
- const {
15
- exts = [],
16
- files = [GLOB_MARKDOWN],
17
- overrides = {}
18
- } = options;
19
- const markdown2 = await interop(import("eslint-plugin-markdown"));
20
- return [
21
- {
22
- name: "luxass:markdown:setup",
23
- plugins: {
24
- markdown: markdown2
25
- }
26
- },
27
- {
28
- name: "luxass:markdown:processor",
29
- files,
30
- ignores: [GLOB_MARKDOWN_IN_MARKDOWN],
31
- // `eslint-plugin-markdown` only creates virtual files for code blocks,
32
- // but not the markdown file itself. We use `eslint-merge-processors` to
33
- // add a pass-through processor for the markdown file itself.
34
- processor: mergeProcessors([
35
- markdown2.processors.markdown,
36
- processorPassThrough
37
- ])
38
- },
39
- {
40
- name: "luxass:markdown:parser",
41
- files,
42
- languageOptions: {
43
- parser: parserPlain
44
- }
45
- },
46
- {
47
- name: "luxass:markdown:disables",
48
- files: [
49
- GLOB_MARKDOWN_CODE,
50
- ...exts.map((ext) => `${GLOB_MARKDOWN}/**/*.${ext}`)
51
- ],
52
- languageOptions: {
53
- parserOptions: {
54
- ecmaFeatures: {
55
- impliedStrict: true
56
- }
57
- }
58
- },
59
- rules: {
60
- "import/newline-after-import": "off",
61
- "no-alert": "off",
62
- "no-console": "off",
63
- "no-undef": "off",
64
- "no-unused-expressions": "off",
65
- "no-unused-vars": "off",
66
- "node/prefer-global/process": "off",
67
- "style/comma-dangle": "off",
68
- "style/eol-last": "off",
69
- // Type aware rules
70
- "ts/await-thenable": "off",
71
- "ts/consistent-type-imports": "off",
72
- "ts/dot-notation": "off",
73
- "ts/no-floating-promises": "off",
74
- "ts/no-for-in-array": "off",
75
- "ts/no-implied-eval": "off",
76
- "ts/no-misused-promises": "off",
77
- "ts/no-namespace": "off",
78
- "ts/no-redeclare": "off",
79
- "ts/no-require-imports": "off",
80
- "ts/no-throw-literal": "off",
81
- "ts/no-unnecessary-type-assertion": "off",
82
- "ts/no-unsafe-argument": "off",
83
- "ts/no-unsafe-assignment": "off",
84
- "ts/no-unsafe-call": "off",
85
- "ts/no-unsafe-member-access": "off",
86
- "ts/no-unsafe-return": "off",
87
- "ts/no-unused-vars": "off",
88
- "ts/no-use-before-define": "off",
89
- "ts/no-var-requires": "off",
90
- "ts/restrict-plus-operands": "off",
91
- "ts/restrict-template-expressions": "off",
92
- "ts/unbound-method": "off",
93
- "unicode-bom": "off",
94
- "unused-imports/no-unused-imports": "off",
95
- "unused-imports/no-unused-vars": "off",
96
- ...overrides
97
- }
98
- }
99
- ];
100
- }
101
-
102
- export {
103
- markdown
104
- };
@@ -1,29 +0,0 @@
1
- // src/configs/comments.ts
2
- import eslintCommentsPlugin from "@eslint-community/eslint-plugin-eslint-comments";
3
- async function comments() {
4
- return [
5
- {
6
- name: "luxass:eslint-comments",
7
- plugins: {
8
- "eslint-comments": eslintCommentsPlugin
9
- },
10
- rules: {
11
- // https://github.com/eslint-community/eslint-plugin-eslint-comments/blob/main/docs/rules/disable-enable-pair.md
12
- "eslint-comments/disable-enable-pair": "error",
13
- // https://github.com/eslint-community/eslint-plugin-eslint-comments/blob/main/docs/rules/no-aggregating-enable.md
14
- "eslint-comments/no-aggregating-enable": "error",
15
- // https://github.com/eslint-community/eslint-plugin-eslint-comments/blob/main/docs/rules/no-duplicate-disable.md
16
- "eslint-comments/no-duplicate-disable": "error",
17
- // https://github.com/eslint-community/eslint-plugin-eslint-comments/blob/main/docs/rules/no-unlimited-disable.md
18
- "eslint-comments/no-unlimited-disable": "error",
19
- // Deprecated in favor of official reportUnusedDisableDirectives
20
- // https://github.com/eslint-community/eslint-plugin-eslint-comments/issues/133
21
- "eslint-comments/no-unused-enable": "off"
22
- }
23
- }
24
- ];
25
- }
26
-
27
- export {
28
- comments
29
- };
@@ -1,269 +0,0 @@
1
- import {
2
- GLOB_SRC,
3
- GLOB_SRC_EXT
4
- } from "./chunk-KOXCJL3C.mjs";
5
-
6
- // src/configs/javascript.ts
7
- import globals from "globals";
8
- import pluginUnusedImports from "eslint-plugin-unused-imports";
9
- import pluginAntfu from "eslint-plugin-antfu";
10
- async function javascript(options = {}) {
11
- const { editor = false, overrides = {} } = options;
12
- return [
13
- {
14
- name: "luxass:javascript",
15
- languageOptions: {
16
- ecmaVersion: 2022,
17
- globals: {
18
- ...globals.browser,
19
- ...globals.es2021,
20
- ...globals.node,
21
- document: "readonly",
22
- navigator: "readonly",
23
- window: "readonly"
24
- },
25
- parserOptions: {
26
- ecmaFeatures: {
27
- jsx: true
28
- },
29
- ecmaVersion: 2022,
30
- sourceType: "module"
31
- },
32
- sourceType: "module"
33
- },
34
- linterOptions: {
35
- reportUnusedDisableDirectives: true
36
- },
37
- plugins: {
38
- "antfu": pluginAntfu,
39
- "unused-imports": pluginUnusedImports
40
- },
41
- rules: {
42
- "accessor-pairs": [
43
- "error",
44
- { enforceForClassMembers: true, setWithoutGet: true }
45
- ],
46
- "array-callback-return": "error",
47
- "block-scoped-var": "error",
48
- "constructor-super": "error",
49
- "default-case-last": "error",
50
- "dot-notation": ["error", { allowKeywords: true }],
51
- "eqeqeq": ["error", "smart"],
52
- "new-cap": [
53
- "error",
54
- { capIsNew: false, newIsCap: true, properties: true }
55
- ],
56
- "no-alert": "error",
57
- "no-array-constructor": "error",
58
- "no-async-promise-executor": "error",
59
- "no-caller": "error",
60
- "no-case-declarations": "error",
61
- "no-class-assign": "error",
62
- "no-compare-neg-zero": "error",
63
- "no-cond-assign": ["error", "always"],
64
- "no-console": ["error", { allow: ["warn", "error"] }],
65
- "no-const-assign": "error",
66
- "no-control-regex": "error",
67
- "no-debugger": "error",
68
- "no-delete-var": "error",
69
- "no-dupe-args": "error",
70
- "no-dupe-class-members": "error",
71
- "no-dupe-keys": "error",
72
- "no-duplicate-case": "error",
73
- "no-empty": ["error", { allowEmptyCatch: true }],
74
- "no-empty-character-class": "error",
75
- "no-empty-pattern": "error",
76
- "no-eval": "error",
77
- "no-ex-assign": "error",
78
- "no-extend-native": "error",
79
- "no-extra-bind": "error",
80
- "no-extra-boolean-cast": "error",
81
- "no-fallthrough": "error",
82
- "no-func-assign": "error",
83
- "no-global-assign": "error",
84
- "no-implied-eval": "error",
85
- "no-import-assign": "error",
86
- "no-invalid-regexp": "error",
87
- "no-invalid-this": "error",
88
- "no-irregular-whitespace": "error",
89
- "no-iterator": "error",
90
- "no-labels": ["error", { allowLoop: false, allowSwitch: false }],
91
- "no-lone-blocks": "error",
92
- "no-loss-of-precision": "error",
93
- "no-misleading-character-class": "error",
94
- "no-multi-str": "error",
95
- "no-new": "error",
96
- "no-new-func": "error",
97
- "no-new-symbol": "error",
98
- "no-new-wrappers": "error",
99
- "no-obj-calls": "error",
100
- "no-octal": "error",
101
- "no-octal-escape": "error",
102
- "no-proto": "error",
103
- "no-prototype-builtins": "error",
104
- "no-redeclare": ["error", { builtinGlobals: false }],
105
- "no-regex-spaces": "error",
106
- "no-restricted-globals": [
107
- "error",
108
- { name: "global", message: "Use `globalThis` instead." },
109
- { name: "self", message: "Use `globalThis` instead." }
110
- ],
111
- "no-restricted-properties": [
112
- "error",
113
- {
114
- message: "Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",
115
- property: "__proto__"
116
- },
117
- {
118
- message: "Use `Object.defineProperty` instead.",
119
- property: "__defineGetter__"
120
- },
121
- {
122
- message: "Use `Object.defineProperty` instead.",
123
- property: "__defineSetter__"
124
- },
125
- {
126
- message: "Use `Object.getOwnPropertyDescriptor` instead.",
127
- property: "__lookupGetter__"
128
- },
129
- {
130
- message: "Use `Object.getOwnPropertyDescriptor` instead.",
131
- property: "__lookupSetter__"
132
- }
133
- ],
134
- "no-restricted-syntax": [
135
- "error",
136
- "DebuggerStatement",
137
- "LabeledStatement",
138
- "WithStatement",
139
- "TSEnumDeclaration[const=true]",
140
- "TSExportAssignment"
141
- ],
142
- "no-self-assign": ["error", { props: true }],
143
- "no-self-compare": "error",
144
- "no-sequences": "error",
145
- "no-shadow-restricted-names": "error",
146
- "no-sparse-arrays": "error",
147
- "no-template-curly-in-string": "error",
148
- "no-this-before-super": "error",
149
- "no-throw-literal": "error",
150
- "no-undef": "error",
151
- "no-undef-init": "error",
152
- "no-unexpected-multiline": "error",
153
- "no-unmodified-loop-condition": "error",
154
- "no-unneeded-ternary": ["error", { defaultAssignment: false }],
155
- "no-unreachable": "error",
156
- "no-unreachable-loop": "error",
157
- "no-unsafe-finally": "error",
158
- "no-unsafe-negation": "error",
159
- "no-unused-expressions": [
160
- "error",
161
- {
162
- allowShortCircuit: true,
163
- allowTaggedTemplates: true,
164
- allowTernary: true
165
- }
166
- ],
167
- "no-unused-vars": [
168
- "error",
169
- {
170
- args: "none",
171
- caughtErrors: "none",
172
- ignoreRestSiblings: true,
173
- vars: "all"
174
- }
175
- ],
176
- "no-use-before-define": [
177
- "error",
178
- { classes: false, functions: false, variables: true }
179
- ],
180
- "no-useless-backreference": "error",
181
- "no-useless-call": "error",
182
- "no-useless-catch": "error",
183
- "no-useless-computed-key": "error",
184
- "no-useless-constructor": "error",
185
- "no-useless-rename": "error",
186
- "no-useless-return": "error",
187
- "no-var": "error",
188
- "no-with": "error",
189
- "object-shorthand": [
190
- "error",
191
- "always",
192
- {
193
- avoidQuotes: true,
194
- ignoreConstructors: false
195
- }
196
- ],
197
- "one-var": ["error", { initialized: "never" }],
198
- "prefer-arrow-callback": [
199
- "error",
200
- {
201
- allowNamedFunctions: false,
202
- allowUnboundThis: true
203
- }
204
- ],
205
- "prefer-const": [
206
- "error",
207
- {
208
- destructuring: "all",
209
- ignoreReadBeforeAssign: true
210
- }
211
- ],
212
- "prefer-exponentiation-operator": "error",
213
- "prefer-promise-reject-errors": "error",
214
- "prefer-regex-literals": ["error", { disallowRedundantWrapping: true }],
215
- "prefer-rest-params": "error",
216
- "prefer-spread": "error",
217
- "prefer-template": "error",
218
- "sort-imports": [
219
- "error",
220
- {
221
- allowSeparatedGroups: false,
222
- ignoreCase: false,
223
- ignoreDeclarationSort: true,
224
- ignoreMemberSort: false,
225
- memberSyntaxSortOrder: ["none", "all", "multiple", "single"]
226
- }
227
- ],
228
- "symbol-description": "error",
229
- "unicode-bom": ["error", "never"],
230
- "unused-imports/no-unused-imports": editor ? "off" : "error",
231
- "unused-imports/no-unused-vars": [
232
- "error",
233
- {
234
- args: "after-used",
235
- argsIgnorePattern: "^_",
236
- vars: "all",
237
- varsIgnorePattern: "^_"
238
- }
239
- ],
240
- "use-isnan": [
241
- "error",
242
- { enforceForIndexOf: true, enforceForSwitchCase: true }
243
- ],
244
- "valid-typeof": ["error", { requireStringLiterals: true }],
245
- "vars-on-top": "error",
246
- "yoda": ["error", "never"],
247
- ...overrides
248
- }
249
- },
250
- {
251
- name: "luxass:scripts-overrides",
252
- files: [`scripts/${GLOB_SRC}`, `cli.${GLOB_SRC_EXT}`],
253
- rules: {
254
- "no-console": "off"
255
- }
256
- },
257
- {
258
- name: "luxass:playground-overrides",
259
- files: [`**/playground.${GLOB_SRC_EXT}`],
260
- rules: {
261
- "no-console": "off"
262
- }
263
- }
264
- ];
265
- }
266
-
267
- export {
268
- javascript
269
- };