@anolilab/eslint-config 9.0.0 → 9.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/CHANGELOG.md +14 -0
- package/dist/chunk-57IVUTVM.js +9 -0
- package/dist/chunk-57IVUTVM.js.map +1 -0
- package/dist/{chunk-ZEBBNF2R.js → chunk-F5CTGWCD.js} +3 -3
- package/dist/{chunk-PTQ3FFI5.js → chunk-X3W6J3PZ.js} +2 -2
- package/dist/{chunk-PTQ3FFI5.js.map → chunk-X3W6J3PZ.js.map} +1 -1
- package/dist/{chunk-H7VQP3ZD.js → chunk-YRRY5AGG.js} +1 -1
- package/dist/chunk-YRRY5AGG.js.map +1 -0
- package/dist/config/plugins/antfu.js +2 -2
- package/dist/config/plugins/array-func.js +2 -2
- package/dist/config/plugins/babel.js +5 -5
- package/dist/config/plugins/es.js +2 -2
- package/dist/config/plugins/etc.js +2 -2
- package/dist/config/plugins/html.js +3 -3
- package/dist/config/plugins/jsonc.js +2 -2
- package/dist/config/plugins/jsonc.js.map +1 -1
- package/dist/config/plugins/node.js +1 -1
- package/dist/config/plugins/node.js.map +1 -1
- package/dist/config/plugins/perfectionist.js +2 -2
- package/dist/config/plugins/react-hooks.js +2 -2
- package/dist/config/plugins/react-redux.js +2 -2
- package/dist/config/plugins/react-usememo.js +2 -2
- package/dist/config/plugins/react.js +6 -6
- package/dist/config/plugins/react.js.map +1 -1
- package/dist/config/plugins/regexp.js +2 -2
- package/dist/config/plugins/sonarjs.js +2 -2
- package/dist/config/plugins/tailwindcss.js +2 -2
- package/dist/config/plugins/tanstack-query.js +2 -2
- package/dist/config/plugins/testing-library.js +3 -3
- package/dist/config/plugins/testing-library.js.map +1 -1
- package/dist/config/plugins/tsdoc.js +2 -2
- package/dist/config/plugins/typescript.js +4 -4
- package/dist/config/plugins/typescript.js.map +1 -1
- package/dist/config/plugins/unicorn.js +3 -3
- package/dist/config/plugins/yml.js +3 -3
- package/dist/config/plugins/you-dont-need-lodash-underscore.js +2 -2
- package/dist/config/plugins/you-dont-need-momentjs.js +2 -2
- package/dist/config/plugins/zod.js +2 -2
- package/dist/config/style.js +4 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +6 -6
- package/dist/postinstall.js.map +1 -1
- package/dist/typescript-type-checking.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-H7VQP3ZD.js.map +0 -1
- package/dist/chunk-PW4WCSOE.js +0 -9
- package/dist/chunk-PW4WCSOE.js.map +0 -1
- /package/dist/{chunk-ZEBBNF2R.js.map → chunk-F5CTGWCD.js.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkMQFZFF2T_js = require('./chunk-MQFZFF2T.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkYRRY5AGG_js = require('./chunk-YRRY5AGG.js');
|
|
5
5
|
require('./chunk-3NVDJZNH.js');
|
|
6
6
|
|
|
7
|
-
var e=chunkMQFZFF2T_js.a.rules,i=
|
|
7
|
+
var e=chunkMQFZFF2T_js.a.rules,i=chunkYRRY5AGG_js.a("typescript",{rules:{"@typescript-eslint/await-thenable":"error","@typescript-eslint/consistent-type-exports":["error",{fixMixedExportsWithInlineTypeSpecifier:!0}],"@typescript-eslint/dot-notation":["error",{allowKeywords:!0}],"@typescript-eslint/no-base-to-string":["error",{ignoredTypeNames:["RegExp"]}],"@typescript-eslint/no-confusing-void-expression":["error",{ignoreArrowShorthand:!0,ignoreVoidOperator:!1}],"@typescript-eslint/no-floating-promises":["error",{ignoreIIFE:!0,ignoreVoid:!0}],"@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-implied-eval":e["no-implied-eval"],"@typescript-eslint/no-meaningless-void-operator":["error",{checkNever:!0}],"@typescript-eslint/no-misused-promises":["error",{checksConditionals:!0,checksVoidReturn:{arguments:!0,attributes:!1,properties:!0,returns:!0,variables:!0}}],"@typescript-eslint/no-throw-literal":e["no-throw-literal"],"@typescript-eslint/no-unnecessary-condition":"error","@typescript-eslint/no-unnecessary-qualifier":"error","@typescript-eslint/no-unnecessary-type-arguments":"error","@typescript-eslint/no-unnecessary-type-assertion":"off","@typescript-eslint/prefer-includes":"error","@typescript-eslint/prefer-nullish-coalescing":["error",{ignoreConditionalTests:!0,ignoreMixedLogicalExpressions:!0}],"@typescript-eslint/prefer-readonly":["error",{onlyInlineLambdas:!1}],"@typescript-eslint/prefer-reduce-type-parameter":"error","@typescript-eslint/prefer-regexp-exec":"error","@typescript-eslint/prefer-return-this-type":"error","@typescript-eslint/prefer-string-starts-ends-with":"error","@typescript-eslint/promise-function-async":"error","@typescript-eslint/require-array-sort-compare":["error",{ignoreStringArrays:!1}],"@typescript-eslint/require-await":e["require-await"],"@typescript-eslint/restrict-plus-operands":"error","@typescript-eslint/return-await":["error","always"],"@typescript-eslint/switch-exhaustiveness-check":"error","@typescript-eslint/unbound-method":["error",{ignoreStatic:!1}],"dot-notation":"off","no-implied-eval":"off","no-new-func":"off","no-throw-literal":"off","require-await":"off"}}),o=i;
|
|
8
8
|
|
|
9
9
|
module.exports = o;
|
|
10
10
|
//# sourceMappingURL=out.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anolilab/eslint-config",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"description": "ESLint shareable config for the Anolilab JavaScript style guide.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"postinstall": "node ./skip.js || node ./dist/postinstall.js"
|
|
116
116
|
},
|
|
117
117
|
"dependencies": {
|
|
118
|
-
"@anolilab/package-json-utils": "2.0.
|
|
118
|
+
"@anolilab/package-json-utils": "2.0.1",
|
|
119
119
|
"@html-eslint/eslint-plugin": "^0.19.0",
|
|
120
120
|
"@html-eslint/parser": "^0.19.0",
|
|
121
121
|
"@rushstack/eslint-patch": "^1.3.2",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"yaml-eslint-parser": "^1.2.2"
|
|
157
157
|
},
|
|
158
158
|
"devDependencies": {
|
|
159
|
-
"@anolilab/semantic-release-preset": "5.0.
|
|
159
|
+
"@anolilab/semantic-release-preset": "5.0.1",
|
|
160
160
|
"@testing-library/dom": "^9.3.1",
|
|
161
161
|
"@total-typescript/ts-reset": "^0.4.2",
|
|
162
162
|
"@types/confusing-browser-globals": "^1.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/create-config.ts"],"names":["getType","type","createConfig","config","environment","createConfigs","rules"],"mappings":"AAIA,IAAMA,EAAWC,GAAmB,CAChC,OAAQA,EAAM,CACV,IAAK,aAED,MAAO,CAAC,OAAQ,QAAS,QAAS,QAAS,OAAO,EAEtD,IAAK,cACD,MAAO,CAAC,QAAS,QAAS,UAAU,EAExC,IAAK,YACD,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAQ,QAAS,QAAS,OAAO,EAEvE,IAAK,aACD,MAAO,CAAC,OAAQ,QAAS,OAAO,EAEpC,IAAK,MACD,MAAO,CAAC,OAAQ,QAAS,QAAS,QAAS,OAAQ,QAAS,QAAS,QAAS,OAAO,EAEzF,IAAK,OACD,MAAO,CAEH,wBACA,wBACA,wBAGA,6BACA,4BACJ,EAEJ,IAAK,MACD,MAAO,CACH,UACA,cACA,iBACA,eACA,eACA,eACA,kBACA,mBACA,sBACJ,EAEJ,IAAK,SACD,MAAO,CAAC,oCAAqC,qCAAqC,EAEtF,IAAK,QACD,MAAO,CAEH,UACA,cACA,iBACA,eACA,eACA,eACA,kBACA,mBACA,uBAGA,wBACA,wBACA,wBACA,6BACA,6BACA,oCACA,qCACJ,EAEJ,QACI,MAAM,IAAI,MAAM,iBAAiBA,CAAI,EAAE,CAE/C,CACJ,EAEaC,EAAe,CACxBD,EACAE,EACAC,KAEO,CACH,IAAKA,EACL,UAAW,CACP,CACI,MAAOJ,EAAQC,CAAI,EACnB,GAAGE,CACP,CACJ,CACJ,GAESE,EACTC,IAKO,CACH,UAAWA,EAAM,IAAI,CAAC,CAAE,OAAAH,EAAQ,KAAAF,CAAK,KAC1B,CACH,MAAOD,EAAQC,CAAI,EACnB,GAAGE,CACP,EACH,CACL","sourcesContent":["import type { Linter } from \"eslint\";\n\ntype FileType = \"all\" | \"ava\" | \"javascript\" | \"jest\" | \"js_and_ts\" | \"jsx_and_tsx\" | \"tests\" | \"typescript\" | \"vitest\";\n\nconst getType = (type: FileType) => {\n switch (type) {\n case \"typescript\": {\n // @see https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#new-file-extensions\n return [\"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\", \"*.mdx\"];\n }\n case \"jsx_and_tsx\": {\n return [\"*.jsx\", \"*.tsx\", \"*.md{,x}\"];\n }\n case \"js_and_ts\": {\n return [\"*.js\", \"*.mjs\", \"*.cjs\", \"*.ts\", \"*.mts\", \"*.cts\", \"*.mdx\"];\n }\n case \"javascript\": {\n return [\"*.js\", \"*.mjs\", \"*.cjs\"];\n }\n case \"all\": {\n return [\"*.js\", \"*.jsx\", \"*.mjs\", \"*.cjs\", \"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\", \"*.mdx\"];\n }\n case \"jest\": {\n return [\n // Test files\n \"**/*.spec.{js,ts,tsx}\",\n \"**/*.test.{js,ts,tsx}\",\n \"**/test/*.{js,ts,tsx}\",\n\n // Facebook convention\n \"**/__mocks__/*.{js,ts,tsx}\",\n \"**/__tests__/*.{js,ts,tsx}\",\n ];\n }\n case \"ava\": {\n return [\n \"test.js\",\n \"src/test.js\",\n \"source/test.js\",\n \"**/test-*.js\",\n \"**/*.spec.js\",\n \"**/*.test.js\",\n \"**/test/**/*.js\",\n \"**/tests/**/*.js\",\n \"**/__tests__/**/*.js\",\n ];\n }\n case \"vitest\": {\n return [\"**/__tests__/**/*.?(c|m)[jt]s?(x)\", \"**/?(*.){test,spec}.?(c|m)[jt]s?(x)\"];\n }\n case \"tests\": {\n return [\n // ava\n \"test.js\",\n \"src/test.js\",\n \"source/test.js\",\n \"**/test-*.js\",\n \"**/*.spec.js\",\n \"**/*.test.js\",\n \"**/test/**/*.js\",\n \"**/tests/**/*.js\",\n \"**/__tests__/**/*.js\",\n\n // jest\n \"**/*.spec.{js,ts,tsx}\",\n \"**/*.test.{js,ts,tsx}\",\n \"**/test/*.{js,ts,tsx}\",\n \"**/__mocks__/*.{js,ts,tsx}\",\n \"**/__tests__/*.{js,ts,tsx}\",\n \"**/__tests__/**/*.?(c|m)[jt]s?(x)\",\n \"**/?(*.){test,spec}.?(c|m)[jt]s?(x)\",\n ];\n }\n default: {\n throw new Error(`Unknown type: ${type}`);\n }\n }\n};\n\nexport const createConfig = (\n type: FileType,\n config: Omit<Linter.ConfigOverride<Linter.RulesRecord>, \"files\">,\n environment?: { [name: string]: boolean },\n): Linter.Config => {\n return {\n env: environment,\n overrides: [\n {\n files: getType(type),\n ...config,\n },\n ],\n };\n};\nexport const createConfigs = (\n rules: {\n config: Omit<Linter.ConfigOverride<Linter.RulesRecord>, \"files\">;\n type: FileType;\n }[],\n): Linter.Config => {\n return {\n overrides: rules.map(({ config, type }) => {\n return {\n files: getType(type),\n ...config,\n };\n }),\n };\n};\n"]}
|
package/dist/chunk-PW4WCSOE.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkPTQ3FFI5_js = require('./chunk-PTQ3FFI5.js');
|
|
4
|
-
|
|
5
|
-
if(global.anolilabEslintIndent===void 0&&chunkPTQ3FFI5_js.a?.indent){if(Number.isNaN(chunkPTQ3FFI5_js.a.indent))throw new TypeError("Indent must be a number");global.anolilabEslintIndent=Number(chunkPTQ3FFI5_js.a.indent);}else global.anolilabEslintIndent=4;var l=global.anolilabEslintIndent,i=l;
|
|
6
|
-
|
|
7
|
-
exports.a = i;
|
|
8
|
-
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=chunk-PW4WCSOE.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/indent.ts"],"names":["eslint_config_default","indent","indent_default"],"mappings":"wCAEA,GAAI,OAAO,uBAAyB,QAAaA,GAAuB,OAAW,CAC/E,GAAI,OAAO,MAAMA,EAAqB,MAAS,EAC3C,MAAM,IAAI,UAAU,yBAAyB,EAGjD,OAAO,qBAAuB,OAAOA,EAAqB,MAAS,CACvE,MACI,OAAO,qBAAuB,EAGlC,IAAMC,EAAS,OAAO,qBAEfC,EAAQD","sourcesContent":["import anolilabEslintConfig from \"./eslint-config\";\n\nif (global.anolilabEslintIndent === undefined && anolilabEslintConfig?.[\"indent\"]) {\n if (Number.isNaN(anolilabEslintConfig[\"indent\"])) {\n throw new TypeError(\"Indent must be a number\");\n }\n\n global.anolilabEslintIndent = Number(anolilabEslintConfig[\"indent\"]);\n} else {\n global.anolilabEslintIndent = 4;\n}\n\nconst indent = global.anolilabEslintIndent;\n\nexport default indent;\n"]}
|
|
File without changes
|