oswee / api

Oswee API
0 stars 0 forks source link

✖ eslint --fix [FAILED] #6

Open dzintars opened 4 years ago

dzintars commented 4 years ago

Missing ESLint config file

As i generate more complex type definitions, ESLint failed. Most likely i will need to exclude .d.ts file linting as they will not comply with common linting rules.

» git commit -m "fix(modules): add req/res example messages"
husky > pre-commit (node v14.9.0)
⚠ Some of your tasks use `git add` command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index.

✔ Preparing...
⚠ Running tasks...
  ✔ Running tasks for *.{ts,html,md}
  ❯ Running tasks for *.ts
    ✖ eslint --fix [FAILED]
    ◼ git add
  ↓ No staged files match .*{rc,.json} [SKIPPED]
↓ Skipped because of errors from tasks. [SKIPPED]
✔ Reverting to original state because of errors...
✔ Cleaning up... 

✖ eslint --fix:

Oops! Something went wrong! :(

ESLint: 7.7.0

ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:

    eslint --init

ESLint looked for configuration files in /home/dzintars/code/github.com/oswee/api/oswee/module/stubs/v1 and its ancestors. If it found none, it then looked in your home directory.

If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://eslint.org/chat/help

husky > pre-commit hook failed (add --no-verify to bypass)