Skip to content

Commit

Permalink
Adopt @babel/eslint-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
eaviles committed Sep 30, 2021
1 parent 0ce43a4 commit 2bd806b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ module.exports = {
'jsdoc/require-jsdoc': 'off',
'radar/cognitive-complexity': 'warn',
'radar/no-duplicate-string': 'off',
'radar/no-identical-functions': 'off'
'radar/no-identical-functions': 'off',
'unicorn/consistent-function-scoping': 'off'
}
},
{
Expand All @@ -50,7 +51,9 @@ module.exports = {
}
}
],
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false,
sourceType: 'script'
},
plugins: [
Expand Down Expand Up @@ -98,6 +101,7 @@ module.exports = {
],
'jest/no-deprecated-functions': 'off',
'jsdoc/check-tag-names': ['error', { definedTags: ['fulfil', 'reject', 'typicalname'] }],
'jsdoc/no-undefined-types': ['error', { definedTypes: ['NodeJS'] }],
'jsdoc/require-hyphen-before-param-description': 'warn',
'jsdoc/require-jsdoc': 'off',
'jsdoc/require-returns-description': 'off',
Expand Down Expand Up @@ -125,14 +129,15 @@ module.exports = {
],
'no-secrets/no-secrets': 'error',
'no-use-extend-native/no-use-extend-native': 'error',

'promise/no-callback-in-promise': 'off',
'radar/cognitive-complexity': ['error', 128],
'security/detect-object-injection': 'off',
'simple-import-sort/imports': 'off',
'sort-destructure-keys/sort-destructure-keys': 'error',
'sort-keys-fix/sort-keys-fix': ['error', 'asc', { natural: true }],
strict: ['error', 'global'],
'switch-case/newline-between-switch-case': 'off',
'switch-case/no-case-curly': 'off',
'unicorn/catch-error-name': ['error', { name: 'err' }],
'unicorn/filename-case': [
'error',
Expand All @@ -152,10 +157,13 @@ module.exports = {
},
settings: {
jsdoc: {
mode: 'typescript',
mode: 'permissive',
preferredTypes: {
object: 'Object',
'object.<>': 'Object'
},
tagNamePreference: {
return: 'returns'
}
}
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"version": "auto-changelog -p && git add CHANGELOG.md"
},
"dependencies": {
"@babel/eslint-parser": "^7.15.7",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-array-func": "^3.1.7",
Expand Down

0 comments on commit 2bd806b

Please sign in to comment.