Skip to content

Commit

Permalink
chore: config and fix lint w standard
Browse files Browse the repository at this point in the history
  • Loading branch information
gularsson committed Nov 3, 2023
1 parent a54944b commit c02a4c6
Show file tree
Hide file tree
Showing 25 changed files with 1,567 additions and 210 deletions.
28 changes: 26 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
module.exports = {
settings: {
react: {
version: 'detect'
}
},
root: true,
env: { browser: true, es2020: true },
env: {
browser: true,
es2021: true,
jest: true
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'standard-with-typescript'
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
Expand All @@ -14,5 +24,19 @@ module.exports = {
'warn',
{ allowConstantExport: true },
],
},
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"no-multiple-empty-lines": ["warn", { max: 2, maxEOF: 1 }],
"@typescript-eslint/no-confusing-void-expression": ["error", { ignoreArrowShorthand: true }],
"@typescript-eslint/space-before-function-paren": ["warn", {
"asyncArrow": "always",
"anonymous": "never",
"named": "never",
}],
"space-before-function-paren": ["warn", {
"asyncArrow": "always",
"anonymous": "never",
"named": "never",
}]
}
}
Loading

0 comments on commit c02a4c6

Please sign in to comment.