mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
chore: 🤖 Updating eslint configuration
Removed confusing configuration in the linting process
This commit is contained in:
parent
d88f87652a
commit
f5f92ccb62
@ -12,9 +12,12 @@ extends:
|
||||
|
||||
parser: '@typescript-eslint/parser'
|
||||
|
||||
parserOptions:
|
||||
project: tsconfig.eslint.json
|
||||
sourceType: module
|
||||
ignorePatterns:
|
||||
- node_modules/
|
||||
- dist/
|
||||
- '**/rollup.config.js'
|
||||
- '**/scripts/*.ts'
|
||||
- '*d.ts'
|
||||
|
||||
plugins:
|
||||
- '@typescript-eslint'
|
||||
@ -24,18 +27,18 @@ rules:
|
||||
import/no-default-export: error
|
||||
import/prefer-default-export: off
|
||||
'@typescript-eslint/explicit-function-return-type': off
|
||||
|
||||
overrides:
|
||||
- files:
|
||||
- 'test/**/*.ts'
|
||||
rules:
|
||||
import/no-unresolved: 0
|
||||
import/no-extraneous-dependencies:
|
||||
- error
|
||||
- devDependencies:
|
||||
- '**/test/**/*.ts'
|
||||
import/extensions:
|
||||
- error
|
||||
- never
|
||||
- json: always
|
||||
|
||||
settings:
|
||||
import/resolver:
|
||||
node:
|
||||
extensions:
|
||||
- .js
|
||||
- .jsx
|
||||
- .ts
|
||||
- .tsx
|
||||
|
||||
@ -1,7 +1,4 @@
|
||||
'*.{ts, !(generate).ts}':
|
||||
'*.{ts,js,json,md,yml}':
|
||||
- 'prettier --write'
|
||||
'*.{ts,js}':
|
||||
- 'eslint --fix'
|
||||
- 'git add'
|
||||
'*.{json, md, yml, js}':
|
||||
- 'prettier --write'
|
||||
- 'git add'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user