Skip to content

Commit

Permalink
[trivial] Configured eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ido-Barnea committed Oct 20, 2023
1 parent f5b1b08 commit e897a90
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 34 deletions.
5 changes: 0 additions & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@ dist
.parcel-cache
*.md
package-lock.json
package.json
project.json
tsconfig.spec.json
.eslintrc.json
jest.config.ts
58 changes: 58 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
module.exports = {
'env': {
'browser': true,
'es2021': true
},
'extends': [
'eslint:recommended',
'plugin:@typescript-eslint/recommended'
],
'overrides': [
{
'env': {
'node': true
},
'files': [
'.eslintrc.{js,cjs}'
],
'parserOptions': {
'sourceType': 'script'
}
}
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 'latest',
'sourceType': 'module'
},
'plugins': [
'@typescript-eslint'
],
'rules': {
'indent': [
'error',
2
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'prefer-const': [
'error'
],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
'vars': 'all',
'varsIgnorePattern': '_',
'argsIgnorePattern': '_',
'caughtErrorsIgnorePattern': '_'
}
]
}
};
29 changes: 0 additions & 29 deletions .eslintrc.json

This file was deleted.

35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e897a90

Please sign in to comment.