mirror of
https://github.com/firecow/gitlab-ci-local.git
synced 2026-02-07 00:25:45 +01:00
* Use re2js, its faster and doesn't need the same amount of build boilerplate * Fix unit tests * Fix lockfile * Fix packages * So far so good * Fix parse * Fix flags * Fix eslint ignores * Fix null replace * Remove re2 install bin from package.json * Woops * Update src/utils.ts Co-authored-by: ANGkeith <angkeith@hotmail.sg> * Update src/global.ts Co-authored-by: ANGkeith <angkeith@hotmail.sg> --------- Co-authored-by: ANGkeith <angkeith@hotmail.sg>
56 lines
1.8 KiB
JavaScript
56 lines
1.8 KiB
JavaScript
import eslint from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
import stylisticTs from "@stylistic/eslint-plugin-ts";
|
|
import stylisticJs from "@stylistic/eslint-plugin-js";
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
tseslint.configs.recommended,
|
|
{
|
|
ignores: [
|
|
"**/*.js",
|
|
"**/*.cjs",
|
|
".gitlab-ci-local",
|
|
],
|
|
},
|
|
{
|
|
plugins: {
|
|
"@stylistic/ts": stylisticTs,
|
|
"@stylistic/js": stylisticJs,
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
"@stylistic/ts/semi": "error",
|
|
"@stylistic/ts/quotes": "error",
|
|
"@stylistic/ts/comma-dangle": [
|
|
"error",
|
|
"always-multiline",
|
|
],
|
|
"@stylistic/ts/object-curly-spacing": "error",
|
|
"@stylistic/ts/space-before-function-paren": "error",
|
|
"@stylistic/ts/space-before-blocks": "error",
|
|
"@stylistic/ts/space-infix-ops": "error",
|
|
"@stylistic/ts/member-delimiter-style": "error",
|
|
"@stylistic/ts/indent": [
|
|
"error",
|
|
4,
|
|
],
|
|
"@stylistic/js/operator-linebreak": ["error", "after"],
|
|
"@stylistic/ts/type-annotation-spacing": [ "error" ],
|
|
"@stylistic/ts/func-call-spacing": [
|
|
"error",
|
|
],
|
|
"@stylistic/ts/comma-spacing": [
|
|
"error",
|
|
],
|
|
"keyword-spacing": "error",
|
|
"space-in-parens": "error",
|
|
"no-trailing-spaces": "error",
|
|
"no-multi-spaces": "error",
|
|
"arrow-spacing": "error",
|
|
"key-spacing": "error",
|
|
},
|
|
},
|
|
);
|