Skip to content

Commit

Permalink
Update eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago Porto committed Jan 17, 2021
1 parent a41f5cb commit 678f887
Show file tree
Hide file tree
Showing 4 changed files with 830 additions and 859 deletions.
26 changes: 11 additions & 15 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const jsConfig = {
'eslint:recommended',
'plugin:unicorn/recommended',
'plugin:promise/recommended',
'plugin:node/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:testing-library/recommended',
Expand All @@ -20,17 +19,15 @@ const jsConfig = {
extendsMD: ['eslint:recommended', 'standard'],
rules: {
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
"no-alert": "error",
"no-debugger": "error",
"no-nested-ternary": "error",
'node/no-unsupported-features/es-syntax': 'off',
'node/no-missing-import': 'off',
'no-alert': 'error',
'no-debugger': 'error',
'no-nested-ternary': 'error',
'jest/prefer-expect-assertions': 'off',
"jest/lowercase-name": [
"error",
'jest/lowercase-name': [
'error',
{
"ignoreTopLevelDescribe": true
}
ignoreTopLevelDescribe: true,
},
],
'unicorn/filename-case': 'off',
'unicorn/prevent-abbreviations': [
Expand Down Expand Up @@ -110,9 +107,9 @@ const tsConfig = {
rules: {
...jsConfig.rules,
'@typescript-eslint/explicit-module-boundary-types': 'off',
"@typescript-eslint/ban-ts-comment": [
"error",
{ "ts-expect-error": "allow-with-description" }
'@typescript-eslint/ban-ts-comment': [
'error',
{ 'ts-expect-error': 'allow-with-description' },
],
},
rulesMD: {
Expand Down Expand Up @@ -147,7 +144,7 @@ const reactConfig = {
}

module.exports = {
// ignorePatterns: ['.eslintrc.js'],
ignorePatterns: [],
settings: {
react: {
version: 'detect',
Expand All @@ -169,7 +166,6 @@ module.exports = {
'promise',
'unicorn',
'import',
'node',
'jest',
'jest-dom',
'eslint-comments',
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"typescript",
"typescriptreact",
"markdown",
"mdx"
"mdx",
"json"
]
}
Loading

0 comments on commit 678f887

Please sign in to comment.