Skip to content

Commit

Permalink
fix: 🐞 remove redundant logs
Browse files Browse the repository at this point in the history
remove redundant logs
  • Loading branch information
Tal Rofe committed Apr 22, 2022
1 parent 04934a1 commit 955bf62
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 6 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ release.config.js
jest.config.js
czvinyl.config.js
webpack.config.js
inflint.config.js
dist
scripts
bin
3 changes: 3 additions & 0 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ jobs:
- name: Check ESLint
run: yarn run lint

- name: Check Inflint
run: yarn run inflint

- name: Check dist command
run: yarn run dist
6 changes: 6 additions & 0 deletions inflint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
rules: {
'src/**/*': [2, 'kebab-case.point'],
'assets/**/*': [2, 'kebab-case'],
},
};
1 change: 1 addition & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
'src/**/*.ts': 'eslint --fix',
'**/*.{ts,js,json}': 'prettier --write',
'**/*': 'inflint',
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"lint:fix": "eslint src/**/* --fix",
"format": "prettier --write \"**/*.{ts,js,json}\"",
"type-check": "tsc --project ./tsconfig.json",
"depcheck": "depcheck"
"depcheck": "depcheck",
"inflint": "inflint"
},
"dependencies": {
"@expo/spawn-async": "1.6.0",
Expand Down Expand Up @@ -77,6 +78,7 @@
"eslint-plugin-unused-imports": "2.0.0",
"figlet": "1.5.2",
"husky": "7.0.4",
"inflint": "1.1.1",
"is-ci": "3.0.1",
"lint-staged": "12.4.0",
"npm-run-all": "4.1.5",
Expand Down
2 changes: 0 additions & 2 deletions src/modules/app/functions/lint-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ export const lintFiles = async (
const fileAbsolutePath = path.resolve(file);
const filePathToCheck = path.relative(process.cwd(), file).split(path.sep).join('/');

CLILoggerModule.service.bold(filePathToCheck);

if (ignorePatterns && ignorePatterns.length !== 0) {
const isMatchedByIgnore = micromatch.isMatch(filePathToCheck, ignorePatterns);

Expand Down
3 changes: 0 additions & 3 deletions src/modules/app/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IBaseConfiguration } from '@/interfaces/configuration';
import CLILoggerModule from '@/shared/modules/cli-logger';
import { getCLIArgv } from '@/utils/argv';

import StartCLI from '../cli';
Expand Down Expand Up @@ -55,8 +54,6 @@ const Bootstrap = async () => {
process.exit(exitCode);
}

CLILoggerModule.service.default('$ inflint\n');

await StartLinting(lintingConfiguration, aliases);
};

Expand Down
14 changes: 14 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2241,6 +2241,20 @@ inflight@^1.0.4:
once "^1.3.0"
wrappy "1"

[email protected]:
version "1.1.1"
resolved "https://registry.yarnpkg.com/inflint/-/inflint-1.1.1.tgz#69b908fafd48a142a8e9ce73310b419230f542ea"
integrity sha512-4R1Ia0EwSsT2CTu8q/2/4TAM9IoVlWGVYPRdPILlE8B1AzUWX2SVSfis01tAUPr5GezWwsgcVkMZh6gkJe7+9w==
dependencies:
"@expo/spawn-async" "1.6.0"
cosmiconfig "7.0.1"
fast-glob "3.2.11"
inquirer "8.2.2"
micromatch "4.0.5"
minimist "1.2.6"
v8-compile-cache "2.3.0"
yaml "2.0.1"

inherits@2, inherits@^2.0.3, inherits@^2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
Expand Down

0 comments on commit 955bf62

Please sign in to comment.