Skip to content

Commit

Permalink
chore(deps): update dependency @taiga-ui/eslint-plugin-experience to …
Browse files Browse the repository at this point in the history
…v0.222.5 (#39)
  • Loading branch information
taiga-family-bot authored Oct 8, 2024
1 parent 61c586b commit 2a2e373
Show file tree
Hide file tree
Showing 10 changed files with 3,809 additions and 2,574 deletions.
5 changes: 5 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@
],
"parserOptions": {
"project": ["./tsconfig.json", "./tsconfig.test.json"]
},
"rules": {
"sonarjs/sonar-no-fallthrough": "off",
"import/no-useless-path-segments": "off",
"react/display-name": "off"
}
}
6,356 changes: 3,791 additions & 2,565 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"author": "Svyatoslav Zaytsev <[email protected]>",
"license": "Apache-2.0",
"devDependencies": {
"@taiga-ui/eslint-plugin-experience": "0.67.10",
"@taiga-ui/eslint-plugin-experience": "0.222.5",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/node": "20.14.13",
"eslint": "8.57.1",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
preprocess: (text, options) => {
const parentParser = getParentParser(options);

return parentParser?.preprocess(text, options) ?? text;
return parentParser?.preprocess?.(text, options) ?? text;
},
},
typescript: {
Expand Down
2 changes: 1 addition & 1 deletion src/is-directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { AstPath } from 'prettier';

export default function (path: AstPath): boolean {
if (path.key !== 'expression') {
return;
return false;
}

const { parent } = path;
Expand Down
4 changes: 2 additions & 2 deletions src/is-import-export.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { AstPath } from 'prettier';

const ignoredParents = new Set([
'ImportDeclaration',
'ImportAttribute',
'ExportAllDeclaration',
'ExportNamedDeclaration',
'ImportAttribute',
'ImportDeclaration',
]);

export default function (path: AstPath): boolean {
Expand Down
2 changes: 1 addition & 1 deletion src/print-string.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function (raw: string): string {
if (/^`.*`$/.test(raw)) {
return;
return raw;
}

const [quote] = raw;
Expand Down
4 changes: 3 additions & 1 deletion src/utils/get-parent-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Parser, ParserOptions } from 'prettier';
import { assertPlugins } from './assert-plugins.js';
import getCurrentPluginIndex from './get-current-plugin-index.js';

export default function ({ parser, plugins }: ParserOptions): Parser {
export default function ({ parser, plugins }: ParserOptions): Parser | null {
assertPlugins(plugins);

const currentPluginIndex = getCurrentPluginIndex(plugins);
Expand All @@ -15,4 +15,6 @@ export default function ({ parser, plugins }: ParserOptions): Parser {
return parentParser;
}
}

return null;
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"declaration": true,
"lib": ["ES2023"]
"lib": ["ES2023"],
"strict": true
},
"files": [
"src/index.ts"
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"declaration": true,
"noEmit": true
"noEmit": true,
"strict": true
},
"include": [
"test/**/*.ts"
Expand Down

0 comments on commit 2a2e373

Please sign in to comment.