Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
set a more prescriptive eslint for better consistency (#187)
Browse files Browse the repository at this point in the history
* set a more prescriptive eslint for better consistency

* update eslint to better reflect project needs

* update code according to new ESLint rules

* lint file
  • Loading branch information
kad-busses authored Aug 6, 2021
1 parent 42f4251 commit d7df6d9
Show file tree
Hide file tree
Showing 73 changed files with 6,660 additions and 4,473 deletions.
19 changes: 0 additions & 19 deletions .editorconfig

This file was deleted.

39 changes: 39 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig/*.json',
sourceType: 'node',
ecmaVersion: 2020,
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:prettier/recommended',
'prettier',
],
root: true,
env: {
node: true,
jest: true,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions', 'constructors'] }],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'import/order': [
'error',
{
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
},
};
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"parser": "typescript",
"printWidth": 120,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "all"
}
Loading

0 comments on commit d7df6d9

Please sign in to comment.