Skip to content

Commit

Permalink
feat: added eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
elenik72 committed Jun 26, 2022
1 parent a4398d2 commit 21c1f71
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 136 deletions.
16 changes: 16 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "never"]
}
}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"description": "Game analog 2048",
"main": "src/app.js",
"scripts": {
"build": "rm -rf dist; rollup -c"
"build": "rm -rf dist; rollup -c",
"lint": "eslint src/*.js",
"lint:fix": "yarn lint --fix"
},
"author": "Andreev Sergey <elenik1994@gmail.com>",
"license": "MIT",
"repository": "https://github.com/elenik72/2048.git",
"private": false,
"devDependencies": {
"eslint": "^8.18.0",
"prettier": "^2.7.1",
"rollup": "^2.75.7",
"rollup-plugin-generate-html-template": "^1.7.0",
"rollup-plugin-import-css": "^3.0.3",
Expand Down
Loading

0 comments on commit 21c1f71

Please sign in to comment.