mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-06 04:21:09 +00:00
Chore/configure eslint (#808)
This commit is contained in:
29
.eslintrc.yml
Normal file
29
.eslintrc.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
env:
|
||||
browser: true
|
||||
es2021: true
|
||||
node: true
|
||||
extends:
|
||||
- eslint:recommended
|
||||
- plugin:@typescript-eslint/recommended
|
||||
overrides: []
|
||||
parser: '@typescript-eslint/parser'
|
||||
parserOptions:
|
||||
ecmaVersion: latest
|
||||
sourceType: module
|
||||
plugins:
|
||||
- '@typescript-eslint'
|
||||
rules:
|
||||
'@typescript-eslint/no-unused-vars':
|
||||
- error
|
||||
- argsIgnorePattern: ^_
|
||||
varsIgnorePattern: ^_
|
||||
'@typescript-eslint/no-var-requires': off
|
||||
'@typescript-eslint/no-empty-function': off
|
||||
'@typescript-eslint/no-inferrable-types': off
|
||||
'@typescript-eslint/ban-types': warn
|
||||
no-prototype-builtins: off
|
||||
no-useless-escape: warn
|
||||
ignorePatterns:
|
||||
- '**/__tests__/'
|
||||
- 'packages/*/lib/'
|
||||
- '*.js'
|
||||
Reference in New Issue
Block a user