Skip to content

Commit

Permalink
Merge pull request #2 from nickovchinnikov/nick/codeStypeEslint
Browse files Browse the repository at this point in the history
Eslint init
  • Loading branch information
nickovchinnikov committed Jun 20, 2021
2 parents 922815a + a18e133 commit 0c7ef97
Show file tree
Hide file tree
Showing 4 changed files with 4,113 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint', 'prettier'],
rules: {
'prettier/prettier': ['error', { singleQuote: true }],
},
};
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@

## Lecture 3 Project init
[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/1)

## Lecture 4 Code-style tools Eslint and Prettier
[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/2)
Loading

0 comments on commit 0c7ef97

Please sign in to comment.