@paratco/eslint-config 2.1.2 → 2.2.0
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/dist/configs/base.d.ts +12 -1
- package/dist/configs/base.d.ts.map +1 -1
- package/dist/configs/base.js +8 -0
- package/dist/configs/node.d.ts +12 -1
- package/dist/configs/node.d.ts.map +1 -1
- package/dist/configs/react.d.ts +12 -1
- package/dist/configs/react.d.ts.map +1 -1
- package/dist/index.d.ts +36 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/unicorn.d.ts +11 -0
- package/dist/rules/unicorn.d.ts.map +1 -0
- package/dist/rules/unicorn.js +23 -0
- package/package.json +2 -2
package/dist/configs/base.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: ({
|
|
2
2
|
readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
|
|
3
|
-
} | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
3
|
+
} | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
4
4
|
files: string[];
|
|
5
5
|
rules: {
|
|
6
6
|
readonly eqeqeq: readonly ["warn"];
|
|
@@ -119,6 +119,17 @@ declare const _default: ({
|
|
|
119
119
|
}];
|
|
120
120
|
readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
|
|
121
121
|
};
|
|
122
|
+
} | {
|
|
123
|
+
files: string[];
|
|
124
|
+
rules: {
|
|
125
|
+
"unicorn/filename-case": string[];
|
|
126
|
+
"unicorn/prevent-abbreviations": string[];
|
|
127
|
+
"unicorn/no-null": string[];
|
|
128
|
+
"unicorn/no-negated-condition": string[];
|
|
129
|
+
"unicorn/switch-case-braces": string[];
|
|
130
|
+
"unicorn/prefer-spread": string[];
|
|
131
|
+
"unicorn/prefer-at": string[];
|
|
132
|
+
};
|
|
122
133
|
})[];
|
|
123
134
|
export default _default;
|
|
124
135
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBAwBE"}
|
package/dist/configs/base.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import eslint from "@eslint/js";
|
|
2
2
|
import tsEslint from "typescript-eslint";
|
|
3
|
+
import eslintPluginUnicorn from "eslint-plugin-unicorn";
|
|
3
4
|
// Custom Rules
|
|
4
5
|
import javascriptRules from "../rules/javascript.js";
|
|
5
6
|
import typescriptRules from "../rules/typescript.js";
|
|
7
|
+
import unicornRules from "../rules/unicorn.js";
|
|
6
8
|
export default [
|
|
7
9
|
// Set predefined configs
|
|
8
10
|
eslint.configs.recommended,
|
|
9
11
|
...tsEslint.configs.strictTypeChecked,
|
|
10
12
|
...tsEslint.configs.stylisticTypeChecked,
|
|
13
|
+
eslintPluginUnicorn.configs.recommended,
|
|
11
14
|
// JavaScript Rules
|
|
12
15
|
{
|
|
13
16
|
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
|
|
@@ -17,5 +20,10 @@ export default [
|
|
|
17
20
|
{
|
|
18
21
|
files: ["**/*.{ts,tsx}"],
|
|
19
22
|
rules: typescriptRules
|
|
23
|
+
},
|
|
24
|
+
// JavaScript Rules
|
|
25
|
+
{
|
|
26
|
+
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
|
|
27
|
+
rules: unicornRules
|
|
20
28
|
}
|
|
21
29
|
];
|
package/dist/configs/node.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: ({
|
|
2
2
|
readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
|
|
3
|
-
} | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
3
|
+
} | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
4
4
|
files: string[];
|
|
5
5
|
rules: {
|
|
6
6
|
readonly eqeqeq: readonly ["warn"];
|
|
@@ -119,6 +119,17 @@ declare const _default: ({
|
|
|
119
119
|
}];
|
|
120
120
|
readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
|
|
121
121
|
};
|
|
122
|
+
} | {
|
|
123
|
+
files: string[];
|
|
124
|
+
rules: {
|
|
125
|
+
"unicorn/filename-case": string[];
|
|
126
|
+
"unicorn/prevent-abbreviations": string[];
|
|
127
|
+
"unicorn/no-null": string[];
|
|
128
|
+
"unicorn/no-negated-condition": string[];
|
|
129
|
+
"unicorn/switch-case-braces": string[];
|
|
130
|
+
"unicorn/prefer-spread": string[];
|
|
131
|
+
"unicorn/prefer-at": string[];
|
|
132
|
+
};
|
|
122
133
|
} | {
|
|
123
134
|
languageOptions: {
|
|
124
135
|
globals: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/configs/node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/configs/node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAKE"}
|
package/dist/configs/react.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import reactPlugin from "eslint-plugin-react";
|
|
|
2
2
|
import reactHooksPlugin from "eslint-plugin-react-hooks";
|
|
3
3
|
declare const _default: ({
|
|
4
4
|
readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
|
|
5
|
-
} | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
5
|
+
} | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
6
6
|
files: string[];
|
|
7
7
|
rules: {
|
|
8
8
|
readonly eqeqeq: readonly ["warn"];
|
|
@@ -121,6 +121,17 @@ declare const _default: ({
|
|
|
121
121
|
}];
|
|
122
122
|
readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
|
|
123
123
|
};
|
|
124
|
+
} | {
|
|
125
|
+
files: string[];
|
|
126
|
+
rules: {
|
|
127
|
+
"unicorn/filename-case": string[];
|
|
128
|
+
"unicorn/prevent-abbreviations": string[];
|
|
129
|
+
"unicorn/no-null": string[];
|
|
130
|
+
"unicorn/no-negated-condition": string[];
|
|
131
|
+
"unicorn/switch-case-braces": string[];
|
|
132
|
+
"unicorn/prefer-spread": string[];
|
|
133
|
+
"unicorn/prefer-at": string[];
|
|
134
|
+
};
|
|
124
135
|
} | {
|
|
125
136
|
languageOptions: {
|
|
126
137
|
globals: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/configs/react.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,gBAAgB,MAAM,2BAA2B,CAAC
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/configs/react.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMzD,wBA+CE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
base: ({
|
|
3
3
|
readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
|
|
4
|
-
} | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
4
|
+
} | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
5
5
|
files: string[];
|
|
6
6
|
rules: {
|
|
7
7
|
readonly eqeqeq: readonly ["warn"];
|
|
@@ -120,10 +120,21 @@ declare const _default: {
|
|
|
120
120
|
}];
|
|
121
121
|
readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
|
|
122
122
|
};
|
|
123
|
+
} | {
|
|
124
|
+
files: string[];
|
|
125
|
+
rules: {
|
|
126
|
+
"unicorn/filename-case": string[];
|
|
127
|
+
"unicorn/prevent-abbreviations": string[];
|
|
128
|
+
"unicorn/no-null": string[];
|
|
129
|
+
"unicorn/no-negated-condition": string[];
|
|
130
|
+
"unicorn/switch-case-braces": string[];
|
|
131
|
+
"unicorn/prefer-spread": string[];
|
|
132
|
+
"unicorn/prefer-at": string[];
|
|
133
|
+
};
|
|
123
134
|
})[];
|
|
124
135
|
react: ({
|
|
125
136
|
readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
|
|
126
|
-
} | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
137
|
+
} | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
127
138
|
files: string[];
|
|
128
139
|
rules: {
|
|
129
140
|
readonly eqeqeq: readonly ["warn"];
|
|
@@ -242,6 +253,17 @@ declare const _default: {
|
|
|
242
253
|
}];
|
|
243
254
|
readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
|
|
244
255
|
};
|
|
256
|
+
} | {
|
|
257
|
+
files: string[];
|
|
258
|
+
rules: {
|
|
259
|
+
"unicorn/filename-case": string[];
|
|
260
|
+
"unicorn/prevent-abbreviations": string[];
|
|
261
|
+
"unicorn/no-null": string[];
|
|
262
|
+
"unicorn/no-negated-condition": string[];
|
|
263
|
+
"unicorn/switch-case-braces": string[];
|
|
264
|
+
"unicorn/prefer-spread": string[];
|
|
265
|
+
"unicorn/prefer-at": string[];
|
|
266
|
+
};
|
|
245
267
|
} | {
|
|
246
268
|
languageOptions: {
|
|
247
269
|
globals: {
|
|
@@ -2982,7 +3004,7 @@ declare const _default: {
|
|
|
2982
3004
|
})[];
|
|
2983
3005
|
node: ({
|
|
2984
3006
|
readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
|
|
2985
|
-
} | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
3007
|
+
} | import("eslint").Linter.FlatConfig | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
2986
3008
|
files: string[];
|
|
2987
3009
|
rules: {
|
|
2988
3010
|
readonly eqeqeq: readonly ["warn"];
|
|
@@ -3101,6 +3123,17 @@ declare const _default: {
|
|
|
3101
3123
|
}];
|
|
3102
3124
|
readonly "@typescript-eslint/prefer-optional-chain": readonly ["off"];
|
|
3103
3125
|
};
|
|
3126
|
+
} | {
|
|
3127
|
+
files: string[];
|
|
3128
|
+
rules: {
|
|
3129
|
+
"unicorn/filename-case": string[];
|
|
3130
|
+
"unicorn/prevent-abbreviations": string[];
|
|
3131
|
+
"unicorn/no-null": string[];
|
|
3132
|
+
"unicorn/no-negated-condition": string[];
|
|
3133
|
+
"unicorn/switch-case-braces": string[];
|
|
3134
|
+
"unicorn/prefer-spread": string[];
|
|
3135
|
+
"unicorn/prefer-at": string[];
|
|
3136
|
+
};
|
|
3104
3137
|
} | {
|
|
3105
3138
|
languageOptions: {
|
|
3106
3139
|
globals: {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAOE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"unicorn/filename-case": string[];
|
|
3
|
+
"unicorn/prevent-abbreviations": string[];
|
|
4
|
+
"unicorn/no-null": string[];
|
|
5
|
+
"unicorn/no-negated-condition": string[];
|
|
6
|
+
"unicorn/switch-case-braces": string[];
|
|
7
|
+
"unicorn/prefer-spread": string[];
|
|
8
|
+
"unicorn/prefer-at": string[];
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=unicorn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/rules/unicorn.ts"],"names":[],"mappings":";;;;;;;;;AAAA,wBA4BE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/filename-case.md
|
|
3
|
+
// Enforce a case style for filenames.
|
|
4
|
+
"unicorn/filename-case": ["off"],
|
|
5
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prevent-abbreviations.md
|
|
6
|
+
// Prevent abbreviations.
|
|
7
|
+
"unicorn/prevent-abbreviations": ["off"],
|
|
8
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-null.md
|
|
9
|
+
// Disallow the use of the null literal.
|
|
10
|
+
"unicorn/no-null": ["off"],
|
|
11
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negated-condition.md
|
|
12
|
+
// Disallow negated conditions.
|
|
13
|
+
"unicorn/no-negated-condition": ["off"],
|
|
14
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/switch-case-braces.md
|
|
15
|
+
// Enforce consistent brace style for case clauses.
|
|
16
|
+
"unicorn/switch-case-braces": ["off"],
|
|
17
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-spread.md
|
|
18
|
+
// Prefer the spread operator over Array.from(…), Array#concat(…), Array#{slice,toSpliced}() and String#split('').
|
|
19
|
+
"unicorn/prefer-spread": ["off"],
|
|
20
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-at.md
|
|
21
|
+
// Prefer .at() method for index access and String#charAt().
|
|
22
|
+
"unicorn/prefer-at": ["off"]
|
|
23
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paratco/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Paratco",
|
|
6
6
|
"license": "ISC",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
".": {
|
|
15
15
|
"import": "./dist/index.js",
|
|
16
16
|
"types": "./dist/index.d.ts"
|
|
17
|
-
|
|
18
17
|
}
|
|
19
18
|
},
|
|
20
19
|
"repository": {
|
|
@@ -54,6 +53,7 @@
|
|
|
54
53
|
"eslint-plugin-react": "^7.37.5",
|
|
55
54
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
56
55
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
56
|
+
"eslint-plugin-unicorn": "^58.0.0",
|
|
57
57
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
58
58
|
"globals": "^16.0.0",
|
|
59
59
|
"typescript-eslint": "^8.31.0"
|