Skip to content

Commit

Permalink
Update eslint configuration
Browse files Browse the repository at this point in the history
- remove plugins which prevent upgrading eslint
- update the configuration based on the one from cucumber-expression
- update a piece of code to make linting happy

Note: some rules have been deactivated to make the update of eslint
possible without breaking our build. Those rules may be deactivated
later as part of dedicated pull requests.
  • Loading branch information
aurelien-reeves committed Dec 7, 2021
1 parent 5cad930 commit c28f61b
Show file tree
Hide file tree
Showing 4 changed files with 2,214 additions and 1,820 deletions.
18 changes: 16 additions & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
extends:
- standard-with-typescript
- "eslint:recommended"
- "plugin:import/typescript"
- "plugin:@typescript-eslint/eslint-recommended"
- "plugin:@typescript-eslint/recommended"
- "plugin:prettier/recommended"
parser: "@typescript-eslint/parser"
parserOptions:
project: './tsconfig.json'
plugins:
- import
- simple-import-sort
- node
- "@typescript-eslint"
rules:
prettier/prettier:
- error
- trailingComma: es5
singleQuote: true
semi: false
# requires strictNullChecks compiler option, produces many errors with messages objects
'@typescript-eslint/strict-boolean-expressions': off
"@typescript-eslint/strict-boolean-expressions": off
"@typescript-eslint/no-explicit-any": off
"@typescript-eslint/no-inferrable-types": off
"@typescript-eslint/no-empty-function": off
"@typescript-eslint/ban-types": off
"@typescript-eslint/no-unused-vars": off
Loading

0 comments on commit c28f61b

Please sign in to comment.