Skip to content

Commit

Permalink
Update eslint rules & update eslint-related dependencies (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek authored Oct 14, 2023
1 parent fcd2b78 commit d0ca435
Show file tree
Hide file tree
Showing 27 changed files with 9,658 additions and 10,188 deletions.
59 changes: 35 additions & 24 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,26 +1,37 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
extends: [
'plugin:@typescript-eslint/recommended'
],
rules: {
'brace-style': ['error', 'stroustrup', { 'allowSingleLine': true }],
'quotes': ['error', 'single'],
'no-trailing-spaces': ['error'],
'eol-last': ['error', 'always'],
'curly': ['error', 'multi-line', 'consistent'],
'indent': ['error', 'tab', { 'SwitchCase': 1, 'ignoredNodes': ['TemplateLiteral *'] }],
'semi': ['error', 'always'],
'no-multiple-empty-lines': ['error', { 'max': 1}],
'comma-dangle': ['error', 'never'],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'no-console': 'error'
}
env: {
browser: true,
es2021: true,
node: false,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
ignorePatterns: ['*.json'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier'],
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
'no-console': 'error',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
useTabs: true,
singleQuote: true,
printWidth: 100,
singleAttributePerLine: true,
},
],
},
};
Loading

0 comments on commit d0ca435

Please sign in to comment.