Skip to content

Commit

Permalink
feat(plugin-eslint): configure bin entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk committed Oct 12, 2023
1 parent 0ad5445 commit b34ecb2
Show file tree
Hide file tree
Showing 12 changed files with 811 additions and 19 deletions.
46 changes: 46 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@
"inquirer": "^8.2.6",
"lighthouse": "^11.0.0",
"memfs": "^4.5.0",
"moment": "^2.29.4",
"nx": "16.7.4",
"prettier": "^2.6.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"type-fest": "^4.3.1",
"typescript": "~5.1.3",
"verdaccio": "^5.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-eslint/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"main": "packages/plugin-eslint/src/index.ts",
"tsConfig": "packages/plugin-eslint/tsconfig.lib.json",
"assets": ["packages/plugin-eslint/*.md"],
"additionalEntryPoints": ["packages/plugin-eslint/src/bin.ts"],
"esbuildConfig": "esbuild.config.js"
}
},
Expand Down
3 changes: 3 additions & 0 deletions packages/plugin-eslint/src/bin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { executeRunner } from './lib/runner';

executeRunner().catch(console.error);
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ Custom options:
"packageName": "@code-pushup/eslint-plugin",
"runner": {
"args": [
"bin.js",
"<dirname>/bin.js",
"typescript-eslint-adjacent-overload-signatures,typescript-eslint-ban-ts-comment,typescript-eslint-ban-types,typescript-eslint-no-array-constructor,typescript-eslint-no-empty-function,typescript-eslint-no-empty-interface,typescript-eslint-no-explicit-any,typescript-eslint-no-extra-non-null-assertion,typescript-eslint-no-extra-semi,typescript-eslint-no-inferrable-types,typescript-eslint-no-loss-of-precision,typescript-eslint-no-misused-new,typescript-eslint-no-namespace,typescript-eslint-no-non-null-asserted-optional-chain,typescript-eslint-no-non-null-assertion,typescript-eslint-no-this-alias,typescript-eslint-no-unnecessary-type-constraint,typescript-eslint-no-unused-vars,typescript-eslint-no-var-requires,typescript-eslint-prefer-as-const,typescript-eslint-prefer-namespace-keyword,typescript-eslint-triple-slash-reference,no-var,prefer-const,prefer-rest-params,prefer-spread,for-direction,no-async-promise-executor,no-case-declarations,no-class-assign,no-compare-neg-zero,no-cond-assign,no-constant-condition,no-control-regex,no-debugger,no-delete-var,no-dupe-else-if,no-duplicate-case,no-empty,no-empty-character-class,no-empty-pattern,no-ex-assign,no-extra-boolean-cast,no-fallthrough,no-global-assign,no-inner-declarations,no-invalid-regexp,no-irregular-whitespace,no-misleading-character-class,no-mixed-spaces-and-tabs,no-nonoctal-decimal-escape,no-octal,no-prototype-builtins,no-regex-spaces,no-self-assign,no-shadow-restricted-names,no-sparse-arrays,no-unexpected-multiline,no-unsafe-finally,no-unsafe-optional-chaining,no-unused-labels,no-useless-backreference,no-useless-catch,no-useless-escape,no-with,require-yield,use-isnan,nx-enforce-module-boundaries-9dba9763586d15c6,nx-dependency-checks",
"./packages/utils/.eslintrc.json",
"packages/utils/**/*.ts",
Expand Down Expand Up @@ -746,7 +746,7 @@ exports[`eslintPlugin > should initialize ESLint plugin for React application 1`
"packageName": "@code-pushup/eslint-plugin",
"runner": {
"args": [
"bin.js",
"<dirname>/bin.js",
"no-cond-assign,no-const-assign,no-debugger,no-invalid-regexp,no-undef,no-unreachable-loop,no-unsafe-negation,no-unsafe-optional-chaining,no-unused-vars,use-isnan,valid-typeof,arrow-body-style,camelcase,curly,eqeqeq,max-lines-per-function,max-lines,no-shadow,no-var,object-shorthand,prefer-arrow-callback,prefer-const,prefer-object-spread,yoda,react-jsx-key,react-prop-types,react-react-in-jsx-scope,react-hooks-rules-of-hooks,react-hooks-exhaustive-deps,react-display-name,react-jsx-no-comment-textnodes,react-jsx-no-duplicate-props,react-jsx-no-target-blank,react-jsx-no-undef,react-jsx-uses-react,react-jsx-uses-vars,react-no-children-prop,react-no-danger-with-children,react-no-deprecated,react-no-direct-mutation-state,react-no-find-dom-node,react-no-is-mounted,react-no-render-return-value,react-no-string-refs,react-no-unescaped-entities,react-no-unknown-property,react-require-render-return",
".eslintrc.js",
"src/**/*.js",
Expand Down
Loading

0 comments on commit b34ecb2

Please sign in to comment.