Skip to content

Commit 960e56d

Browse files
author
tal-rofe
committed
chore: 🤖 upgrade inflint
2 parents 8643d6a + 14ae6b0 commit 960e56d

File tree

7 files changed

+110
-145
lines changed

7 files changed

+110
-145
lines changed

‎.depcheckrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"prettier-plugin-sh",
1717
"rimraf",
1818
"cspell",
19-
"cz-vinyl"
19+
"cz-vinyl",
20+
"@exlint.io/inflint"
2021
]
2122
}

‎.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ module.exports = {
197197
},
198198
},
199199
{
200-
files: ['./inflint.config.ts'],
200+
files: ['./inflint.config.cjs'],
201201
rules: {
202202
'quotes': 'off',
203203
'no-useless-escape': 'off',

‎.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"editor.formatOnSaveMode": "file"
4141
},
4242
"terraform.experimentalFeatures.validateOnSave": true,
43-
"terraform.languageServer.rootModules": ["/terraform"],
4443
"[shellscript]": {
4544
"editor.defaultFormatter": "foxundermoon.shell-format"
4645
},

‎inflint.config.ts renamed to ‎inflint.config.cjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import type { Config } from '@exlint.io/inflint';
2-
3-
const inflintConfig: Config = {
1+
const inflintConfig = {
42
aliases: {
53
'[UIComponent]': `ED([A-Z][a-z0-9]+)((\d)|([A-Z0-9][a-z0-9]+))*([A-Z])?`,
64
},
@@ -18,4 +16,4 @@ const inflintConfig: Config = {
1816
},
1917
};
2018

21-
export default inflintConfig;
19+
module.exports = inflintConfig;

‎lint-staged.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ module.exports = {
1818
'!({apps,packages})**/*.{ts,js,cjs}': ['eslint -c ./.eslintrc.cjs --fix', () => 'tsc --noEmit'],
1919
'apps/frontend/src/**/*.scss': 'stylelint --config ./apps/frontend/stylelint.config.cjs --fix',
2020
'**/*.{ts,js,cjs,json,yaml}': 'prettier --write',
21-
'**/*': ['inflint -c ./inflint.config.ts', 'cspell lint -c ./cspell.json --no-progress --no-summary'],
21+
'**/*': 'inflint -c ./inflint.config.cjs',
2222
};

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"type-check:root": "tsc --project ./tsconfig.json",
2626
"type-check:nested": "nx run-many --target=type-check --nx-bail",
2727
"type-check:all": "run-p type-check:root type-check:nested",
28-
"inflint": "inflint -c ./inflint.config.ts",
28+
"inflint": "inflint -c ./inflint.config.cjs",
2929
"depcheck:root": "depcheck --config ./.depcheckrc.json",
3030
"depcheck:nested": "nx run-many --target=depcheck --nx-bail",
3131
"depcheck:all": "run-p depcheck:root depcheck:nested",

0 commit comments

Comments
 (0)