@alexlit/config-eslint 143.0.0 → 143.0.1
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.
- package/package.json +1 -1
- package/plugins/unicorn.js +10 -1
package/package.json
CHANGED
package/plugins/unicorn.js
CHANGED
|
@@ -5,10 +5,11 @@ import { FILES } from '../presets/base.js';
|
|
|
5
5
|
|
|
6
6
|
/** @see [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) */
|
|
7
7
|
export const unicorn = defineConfig([
|
|
8
|
-
{ files: FILES, ...plugin.configs.
|
|
8
|
+
{ files: FILES, ...plugin.configs.recommended },
|
|
9
9
|
{
|
|
10
10
|
files: FILES,
|
|
11
11
|
rules: {
|
|
12
|
+
'unicorn/comment-content': 'off', // not stable
|
|
12
13
|
'unicorn/consistent-function-scoping': [
|
|
13
14
|
'error',
|
|
14
15
|
{ checkArrowFunctions: false },
|
|
@@ -17,10 +18,18 @@ export const unicorn = defineConfig([
|
|
|
17
18
|
'unicorn/no-asterisk-prefix-in-documentation-comments': 'off',
|
|
18
19
|
'unicorn/no-empty-file': 'off',
|
|
19
20
|
'unicorn/no-for-each': 'off',
|
|
21
|
+
'unicorn/no-this-outside-of-class': 'off', // used in setters/getters
|
|
22
|
+
'unicorn/no-top-level-side-effects': 'off', // Vue.js specific
|
|
23
|
+
'unicorn/no-unused-properties': 'off', // don't respect local keys
|
|
24
|
+
'unicorn/prefer-dom-node-html-methods': 'off', // Safari not supports setHTML()
|
|
20
25
|
'unicorn/prefer-export-from': ['error', { checkUsedVariables: true }],
|
|
26
|
+
'unicorn/prefer-https': 'off', // SVG need HTTPS
|
|
21
27
|
'unicorn/prefer-import-meta-properties': 'warn',
|
|
28
|
+
'unicorn/prefer-iterator-concat': 'off', // ES2026 only
|
|
22
29
|
'unicorn/prefer-module': 'warn',
|
|
23
30
|
'unicorn/prefer-node-protocol': 'warn',
|
|
31
|
+
'unicorn/prefer-temporal': 'off', // ES2026 only
|
|
32
|
+
'unicorn/prefer-type-literal-last': 'off', // perfectionist/sort-intersection-types
|
|
24
33
|
'unicorn/prevent-abbreviations': [
|
|
25
34
|
'warn',
|
|
26
35
|
{
|