Skip to content

Commit 5c24d7f

Browse files
authored
FPAD-7588: Switch all ESLint rules to error (#797)
* FPAD-7588: Switch all ESLint rules to error * FPAD-7588: Run acceptance-checks workflow for eslint config changes
1 parent 9db17a9 commit 5c24d7f

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/acceptance-checks.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- package.json
1414
- yarn.lock
1515
- tsconfig.json
16+
- eslint.config.mjs
1617
- .node-version
1718
- .github/workflows/acceptance-checks.yaml
1819
branches:

eslint.config.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ export default defineConfig(
2727
rules: {
2828
'@typescript-eslint/no-floating-promises': ['error'],
2929
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
30-
'@typescript-eslint/no-explicit-any': ['warn'],
30+
'@typescript-eslint/no-explicit-any': ['error'],
3131
'keyword-spacing': ['error', { after: true }],
3232
'space-before-blocks': ['error', 'always'],
3333
'space-before-function-paren': ['error', { anonymous: 'always', named: 'never', asyncArrow: 'always' }],
3434
'object-curly-spacing': ['error', 'always'],
3535
'unicorn/filename-case': ['error', { case: 'kebabCase' }],
36-
'unicorn/prevent-abbreviations': ['warn'],
36+
'unicorn/prevent-abbreviations': ['error'],
3737
'unicorn/prefer-string-raw': ['off'],
38-
'unicorn/error-message': ['warn'],
38+
'unicorn/error-message': ['error'],
3939
'unicorn/no-array-reduce': ['off'],
40-
'unicorn/prefer-logical-operator-over-ternary': ['warn'],
41-
'unicorn/prefer-spread': ['warn'],
42-
'tsdoc/syntax': ['warn'],
40+
'unicorn/prefer-logical-operator-over-ternary': ['error'],
41+
'unicorn/prefer-spread': ['error'],
42+
'tsdoc/syntax': ['error'],
4343
},
4444
},
4545
);

0 commit comments

Comments
 (0)