Skip to content

Commit

Permalink
Merge pull request #26 from frmscoe/feat/eslint-deps-upgrades
Browse files Browse the repository at this point in the history
build: Eslint and deps
  • Loading branch information
Justus-at-Tazama authored Jun 14, 2024
2 parents cc1aab8 + b798754 commit 19bfe2f
Show file tree
Hide file tree
Showing 28 changed files with 9,106 additions and 8,478 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# SPDX-License-Identifier: Apache-2.0

root = true

[*]
Expand All @@ -8,6 +7,7 @@ indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

[*.md]
trim_trailing_whitespace = false
trim_trailing_whitespace = false
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

33 changes: 0 additions & 33 deletions .eslintrc.js

This file was deleted.

4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
10 changes: 7 additions & 3 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"printWidth": 140,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"bracketSpacing": true,
"quoteProps": "as-needed",
"trailingComma": "all",
"tabWidth": 2,
"semi": true
"bracketSpacing": true,
"arrowParens": "always"
}
57 changes: 57 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// SPDX-License-Identifier: Apache-2.0
import stylistic from '@stylistic/eslint-plugin';
import tsEslint from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import eslintStandard from 'eslint-config-love';
import eslintPluginEslintComments from 'eslint-plugin-eslint-comments';

export default [
{
files: ['**/*.ts'],
plugins: {
...eslintStandard.plugins,
['eslint-comments']: eslintPluginEslintComments,
['@typescript-eslint']: tsEslint,
['@stylistic']: stylistic,
},
languageOptions: {
...eslintStandard.languageOptions,
parser: tsParser,
ecmaVersion: 2022,
sourceType: 'module',
parserOptions: {
project: ['./tsconfig.json'],
},
},
rules: {
...eslintStandard.rules,
...eslintPluginEslintComments.configs.recommended.rules,
'eslint-comments/require-description': ['warn', {'ignore': []}],
'eslint-comments/disable-enable-pair': 'warn',
'no-console': 'warn',
'@typescript-eslint/restrict-template-expressions': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/prefer-optional-chain': 'off',
'@stylistic/indent': ['error', 2],
'@stylistic/semi': ['warn', 'always'],
'@stylistic/quotes': ['error', 'single'],
'@stylistic/quote-props': ['warn', 'as-needed'],
'@stylistic/arrow-parens': ["warn", "always"],
},
ignores: [
'**/coverage/**',
'**/templates/**',
'**/build/**',
'**/node_modules/**',
'**/docs/**',
'**/__tests__/**',
'**/jest.config.ts',
'**/jest.testEnv.ts',
],
}
];
198 changes: 0 additions & 198 deletions jest.config.ts

This file was deleted.

20 changes: 0 additions & 20 deletions nodemon.json

This file was deleted.

Loading

0 comments on commit 19bfe2f

Please sign in to comment.