-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from lbratkovskaya/setup
Setup
- Loading branch information
Showing
14 changed files
with
11,414 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: [ | ||
'plugin:react/recommended', | ||
'airbnb', | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 12, | ||
sourceType: 'module', | ||
}, | ||
plugins: [ | ||
'react', | ||
'@typescript-eslint', | ||
], | ||
rules: { | ||
'import/extensions': 'off', | ||
'import/no-unresolved': 'off', | ||
'react-hooks/exhaustive-deps': 'off', | ||
'no-use-before-define': 'off', | ||
'@typescript-eslint/no-use-before-define': ['error'], | ||
'max-len': [ | ||
1, | ||
{ | ||
code: 100, | ||
}, | ||
], | ||
'react/jsx-filename-extension': [ | ||
2, | ||
{ | ||
extensions: [ | ||
'.js', | ||
'.jsx', | ||
'.ts', | ||
'.tsx', | ||
], | ||
}, | ||
], | ||
'react/destructuring-assignment': [ | ||
'off', | ||
'always', | ||
{ | ||
ignoreClassFields: true, | ||
}, | ||
], | ||
}, | ||
}; |
Oops, something went wrong.